2026-07-28 08:39:42,539 - 124840 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124840 - __SPLIT__ 2026-07-28 08:39:42,855 - 124840 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124840 - __SPLIT__ 2026-07-28 08:39:42,855 - 124840 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-28 08:39:42,855 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:44,949 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:44,950 - 124840 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-28 08:39:44,950 - 124840 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-28 08:39:44,951 - 124840 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-28 08:39:44,951 - 124840 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124840;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:46,823 - 124840 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 08:39:46,823 - 124840 - 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 = 124840), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124840), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124840 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:47,133 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:47,133 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124840;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:47,397 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:47,400 - 124840 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-28 08:39:47,400 - 124840 - 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 = 14532... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:47,671 - 124840 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 08:39:47,671 - 124840 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-28 08:39:47,674 - 124840 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-28 08:39:47,674 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:47,937 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:47,938 - 124840 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-28 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150498 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:48,206 - 124840 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 08:39:48,752 - 124840 - src.utils.log - INFO - Generating work orders for setup: 150498 - __SPLIT__ 2026-07-28 08:39:48,779 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1127;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:49,041 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:49,088 - 124840 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-28 08:39:49,096 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:49,366 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:49,368 - 124840 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-28 08:39:49,368 - 124840 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-28 08:39:49,368 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:50,166 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:50,166 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:50,626 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:50,626 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:50,902 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:50,902 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:51,554 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:51,554 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:51,939 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:51,940 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:52,293 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:52,293 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:52,566 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:52,566 - 124840 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:53,342 - 124840 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 08:39:53,343 - 124840 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 08:39:53,343 - 124840 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:53,660 - 124840 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-28 08:39:54,781 - 124840 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-28 08:39:54,782 - 124840 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-23 12:09:41.917' and ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:55,082 - 124840 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 08:39:55,083 - 124840 - src.utils.log - INFO - Id's of work order inserted to DB: [3686015 3686016 3686017 3686018] - __SPLIT__ 2026-07-28 08:39:55,083 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:55,344 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:55,344 - 124840 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-28 08:39:55,345 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:55,608 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:55,608 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:55,871 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:55,875 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:56,145 - 124840 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-28 08:39:56,146 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:56,409 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:56,411 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:56,672 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:56,672 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:56,934 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:56,935 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:57,196 - 124840 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 08:39:57,197 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:57,708 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:57,708 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:57,971 - 124840 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 08:39:57,986 - 124840 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-28 08:39:57,986 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-28 08:39:57,986 - 124840 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-28 08:39:57,986 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-28 08:39:57,986 - 124840 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-28 08:39:57,986 - 124840 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 08:39:57,987 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3686018', '3686015', '3686016', '3686017') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:58,248 - 124840 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 08:39:58,249 - 124840 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:58,530 - 124840 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-28 08:39:58,530 - 124840 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-28 08:39:58,530 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 08:39:58,531 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686016, 3686017, 3686018, 3686015) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:58,792 - 124840 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 08:39:58,793 - 124840 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:39:59,078 - 124840 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-28 08:40:00,009 - 124840 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-28 08:40:00,010 - 124840 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-28 08:40:00,010 - 124840 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-28 08:40:00,010 - 124840 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 08:40:00,010 - 124840 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 08:40:00,011 - 124840 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686016, 3686017, 3686018, 3686015) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:40:00,272 - 124840 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 08:40:00,274 - 124840 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:40:00,561 - 124840 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 08:40:01,488 - 124840 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 08:40:01,489 - 124840 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 08:40:01,489 - 124840 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124840;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 08:40:01,751 - 124840 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 08:40:01,751 - 124840 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-28 08:40:01,751 - 124840 - src.utils.log - INFO - Time took to perform operation: 18.9 - __SPLIT__ 2026-07-28 09:46:57,024 - 12750 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12750 - __SPLIT__ 2026-07-28 09:46:57,025 - 12750 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12750 - __SPLIT__ 2026-07-28 09:46:57,025 - 12750 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-28 09:46:57,025 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:46:59,135 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:46:59,135 - 12750 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-28 09:46:59,135 - 12750 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12750;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:46:59,437 - 12750 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 09:46:59,437 - 12750 - 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 = 12750), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12750), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12750 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:46:59,780 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:46:59,780 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12750;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:00,090 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:00,096 - 12750 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-28 09:47:00,097 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:00,404 - 12750 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-28 09:47:00,404 - 12750 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-28 09:47:00,407 - 12750 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-28 09:47:00,408 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:00,712 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:00,712 - 12750 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-28 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 34484 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:01,018 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:01,646 - 12750 - src.utils.log - INFO - Generating work orders for setup: 34484 - __SPLIT__ 2026-07-28 09:47:01,667 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1424;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:01,970 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:01,977 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:02,278 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:02,318 - 12750 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-28 09:47:02,324 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:02,625 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:02,628 - 12750 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-28 09:47:02,629 - 12750 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-28 09:47:02,629 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:02,940 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:02,940 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:03,250 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:03,251 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:03,561 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:03,562 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:03,872 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:03,873 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:04,183 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:04,183 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:04,494 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:04,494 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:04,799 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:04,799 - 12750 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34484 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:05,122 - 12750 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:05,122 - 12750 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:05,122 - 12750 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:05,478 - 12750 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-28 09:47:06,723 - 12750 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-28 09:47:06,724 - 12750 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-23 12:09:41.917' and ServiceSetupId = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:07,032 - 12750 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-28 09:47:07,033 - 12750 - src.utils.log - INFO - Id's of work order inserted to DB: [2739574 2739575 2739576] - __SPLIT__ 2026-07-28 09:47:07,033 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:07,335 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:07,335 - 12750 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-28 09:47:07,336 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:07,639 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:07,640 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:07,943 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:07,951 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:08,255 - 12750 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 09:47:08,256 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:08,558 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:08,559 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:08,861 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:08,862 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:09,164 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:09,164 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:09,464 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:09,465 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:09,783 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:09,783 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:10,086 - 12750 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:10,098 - 12750 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-28 09:47:10,098 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-28 09:47:10,099 - 12750 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-28 09:47:10,100 - 12750 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:10,100 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739576, 2739574, 2739575) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:10,401 - 12750 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-28 09:47:10,403 - 12750 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:10,726 - 12750 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-28 09:47:11,790 - 12750 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-28 09:47:11,790 - 12750 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-28 09:47:11,790 - 12750 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:11,791 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2739574 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:12,091 - 12750 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:12,092 - 12750 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:12,418 - 12750 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 09:47:13,481 - 12750 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 09:47:13,481 - 12750 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 09:47:13,481 - 12750 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:13,482 - 12750 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739576, 2739575) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:13,782 - 12750 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:13,783 - 12750 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:14,092 - 12750 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 09:47:15,159 - 12750 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 09:47:15,159 - 12750 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 09:47:15,159 - 12750 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12750;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:15,460 - 12750 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 09:47:15,460 - 12750 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-28 09:47:15,460 - 12750 - src.utils.log - INFO - Time took to perform operation: 18.43 - __SPLIT__ 2026-07-28 09:47:31,065 - [12750] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2739574, 2739576] user_id=122885 company_id=135 project_id=[12750] publish_all=False - __SPLIT__ 2026-07-28 09:47:31,066 - [12750] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2739574, 2739576] user_id=122885 company_id=135 project_id=[12750] publish_all=False - __SPLIT__ 2026-07-28 09:47:31,066 - [12750] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12750] - __SPLIT__ 2026-07-28 09:47:31,067 - [12750] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-28 09:47:31,067 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:33,156 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:33,157 - [12750] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-28 09:47:33,157 - [12750] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12750;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:33,456 - [12750] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 09:47:33,456 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:33,760 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:33,761 - [12750] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-28 09:47:33,761 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34484 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:34,068 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:34,068 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34484 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:34,373 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:34,373 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34484 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:34,682 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:34,686 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:34,985 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:34,985 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:35,284 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:35,284 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:35,586 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:35,587 - [12750] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:35,887 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:35,891 - [12750] - 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 = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:36,195 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:36,197 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:36,497 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:36,497 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8940' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:36,797 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:36,800 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169599R', '169600R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:37,100 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:37,101 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:37,604 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-28 09:47:38,716 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-28 09:47:38,865 - [12750] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-28 09:47:38,866 - [12750] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:39,168 - [12750] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 09:47:39,169 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169599R', '169600R') AND wo.AccountNumber = '8940' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-28 09:47:39,471 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:39,472 - [12750] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-28 09:47:39,472 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:39,779 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:39,779 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:40,081 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:40,081 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:40,384 - [12750] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 09:47:40,384 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:40,684 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:40,684 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:40,987 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:40,988 - [12750] - 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 (2739574, 2739576)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:41,302 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:41,302 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2739574, 2739576) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:41,603 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:41,603 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2739574, 2739576);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:41,903 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:41,906 - [12750] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-28 09:47:41,918 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:42,218 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:42,218 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:42,519 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:42,523 - [12750] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:42,523 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:42,864 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-28 09:47:43,934 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-28 09:47:43,936 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34484 AND WorkOrderNo IN ('663716', '7691633') AND GenerateWorkOrderHistoryId = 12750;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-28 09:47:44,257 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:44,257 - [12750] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-28 09:47:44,263 - [12750] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-28 09:47:44,263 - [12750] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:44,263 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:44,586 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-28 09:47:45,645 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-28 09:47:45,646 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-28 09:47:45,646 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-28 09:47:45,646 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-28 09:47:45,646 - [12750] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:45,646 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:45,966 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-28 09:47:47,020 - [12750] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-28 09:47:47,021 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-28 09:47:47,021 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-28 09:47:47,021 - [12750] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:47,021 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:47,343 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-28 09:47:48,426 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-28 09:47:48,427 - [12750] - 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 = 34484... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:48,727 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:48,733 - [12750] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-28 09:47:48,734 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:49,205 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-28 09:47:50,262 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-28 09:47:50,410 - [12750] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-28 09:47:50,410 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-28 05:47:48.728';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:50,735 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:50,738 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:51,038 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:51,047 - [12750] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-28 05:47:48.728'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-28 09:47:51,371 - [12750] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 09:47:51,376 - [12750] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:51,376 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:51,701 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-28 09:47:52,757 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-28 09:47:52,757 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('169599R', '169600R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:53,086 - [12750] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 09:47:53,095 - [12750] - 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 = 34484 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:53,397 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:53,397 - [12750] - 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 = 34484 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:53,700 - [12750] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 09:47:53,700 - [12750] - 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 = 34484 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:54,002 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:54,003 - [12750] - 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 = 34484 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:54,305 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:54,318 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:54,618 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:54,624 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:54,925 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:54,929 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34484;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:55,228 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:55,229 - [12750] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-28 09:47:55,229 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-28 09:47:55,229 - [12750] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 09:47:55,229 - [12750] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:55,553 - [12750] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-28 09:47:56,608 - [12750] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-28 09:47:56,608 - [12750] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-28 09:47:56,608 - [12750] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-28 09:47:56,609 - [12750] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-28 09:47:56,609 - [12750] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12750 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:56,909 - [12750] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 09:47:56,916 - [12750] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-28 09:47:57,067 - [12750] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_db6944a64b - __SPLIT__ 2026-07-28 09:47:57,367 - [12750] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_db6944a64b - __SPLIT__ 2026-07-28 09:47:57,665 - [12750] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-28 09:47:57,820 - [12750] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-28 09:47:57,973 - [12750] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_db6944a64b - __SPLIT__ 2026-07-28 09:47:57,973 - [12750] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_db6944a64b - __SPLIT__ 2026-07-28 09:47:57,973 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12750 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:58,272 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:58,272 - [12750] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-28 09:47:58,272 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:58,588 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:58,588 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:58,899 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:58,899 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:59,200 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:59,201 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:59,537 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:59,537 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:47:59,854 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:47:59,854 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:48:00,161 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:48:00,161 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:48:00,460 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:48:00,460 - [12750] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2739574, 2739576) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:48:00,776 - [12750] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 09:48:00,777 - [12750] - src.utils.log - INFO - Work order published ids: (2739574, 2739576) - __SPLIT__ 2026-07-28 09:48:00,777 - [12750] - src.utils.log - INFO - Time took to perform operation in publishing [12750]: 29.71 - __SPLIT__ 2026-07-28 09:48:00,777 - [12750] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12750] - __SPLIT__ 2026-07-28 09:48:00,777 - [12750] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-28 05:48:00.777' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12750;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 09:48:01,075 - [12750] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 10:30:52,029 - 124843 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124843 - __SPLIT__ 2026-07-28 10:30:52,030 - 124843 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124843 - __SPLIT__ 2026-07-28 10:30:52,031 - 124843 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-28 10:30:52,031 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:54,142 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:30:54,143 - 124843 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-28 10:30:54,143 - 124843 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-28 10:30:54,144 - 124843 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-28 10:30:54,144 - 124843 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124843;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:55,984 - 124843 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 10:30:55,984 - 124843 - 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 = 124843), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124843), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124843 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:56,289 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:30:56,289 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124843;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:56,553 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:30:56,556 - 124843 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-28 10:30:56,556 - 124843 - 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 = 14532... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:56,824 - 124843 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-28 10:30:56,824 - 124843 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-28 10:30:56,827 - 124843 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-28 10:30:56,828 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:57,090 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:30:57,091 - 124843 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-28 00:00:00' and ServiceDate <= '2027-06-30 00:00:00' and ServiceSetupId = 150498 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:57,360 - 124843 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-28 10:30:57,905 - 124843 - src.utils.log - INFO - Generating work orders for setup: 150498 - __SPLIT__ 2026-07-28 10:30:57,914 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1127;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:58,176 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:30:58,300 - 124843 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-28 10:30:58,305 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:58,566 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:30:58,568 - 124843 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-28 10:30:58,568 - 124843 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-28 10:30:58,569 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:58,894 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:30:58,894 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:59,209 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:30:59,209 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:59,473 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:30:59,473 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:30:59,799 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:30:59,799 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:00,102 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:31:00,103 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:00,372 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:31:00,372 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:00,634 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:31:00,635 - 124843 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150498 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:01,414 - 124843 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:31:01,415 - 124843 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 10:31:01,415 - 124843 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:01,715 - 124843 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-28 10:31:02,658 - 124843 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-28 10:31:02,659 - 124843 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-23 12:09:41.917' and ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:02,960 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:02,960 - 124843 - src.utils.log - INFO - Id's of work order inserted to DB: [3686021] - __SPLIT__ 2026-07-28 10:31:02,961 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:03,223 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:31:03,223 - 124843 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-28 10:31:03,224 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:03,487 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:03,487 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:03,750 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:31:03,754 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:04,024 - 124843 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-28 10:31:04,026 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:04,289 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:04,291 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150498... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:04,553 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:31:04,553 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:04,815 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:31:04,816 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:05,078 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:05,079 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:05,429 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:31:05,430 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150498;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:05,692 - 124843 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:31:05,705 - 124843 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-28 10:31:05,706 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-28 10:31:05,706 - 124843 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-28 10:31:05,706 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-28 10:31:05,706 - 124843 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-28 10:31:05,706 - 124843 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 10:31:05,706 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686021 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:05,969 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:05,970 - 124843 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:06,234 - 124843 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-28 10:31:06,235 - 124843 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-28 10:31:06,236 - 124843 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 10:31:06,236 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686021 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:06,498 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:06,499 - 124843 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:06,766 - 124843 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-28 10:31:07,694 - 124843 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-28 10:31:07,695 - 124843 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-28 10:31:07,695 - 124843 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-28 10:31:07,695 - 124843 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 10:31:07,695 - 124843 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 10:31:07,695 - 124843 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686021 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:07,957 - 124843 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:31:07,958 - 124843 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:08,228 - 124843 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 10:31:09,156 - 124843 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 10:31:09,157 - 124843 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 10:31:09,157 - 124843 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124843;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:31:09,419 - 124843 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 10:31:09,419 - 124843 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-28 10:31:09,419 - 124843 - src.utils.log - INFO - Time took to perform operation: 17.39 - __SPLIT__ 2026-07-28 10:59:47,239 - 12751 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12751 - __SPLIT__ 2026-07-28 10:59:47,240 - 12751 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12751 - __SPLIT__ 2026-07-28 10:59:47,240 - 12751 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-28 10:59:47,240 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:49,330 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:59:49,331 - 12751 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-28 10:59:49,331 - 12751 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:49,629 - 12751 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 10:59:49,629 - 12751 - 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 = 12751), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12751), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12751 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:49,963 - 12751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:59:49,963 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:50,264 - 12751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:59:50,266 - 12751 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-28 10:59:50,267 - 12751 - 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 = 13159... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:50,571 - 12751 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-28 10:59:50,572 - 12751 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-28 10:59:50,575 - 12751 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-28 10:59:50,575 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:50,875 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:59:50,876 - 12751 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-28 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 34459 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:51,179 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:59:51,806 - 12751 - src.utils.log - INFO - Generating work orders for setup: 34459 - __SPLIT__ 2026-07-28 10:59:52,316 - 12751 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-28 10:59:52,327 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:52,625 - 12751 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 10:59:52,626 - 12751 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-28 10:59:52,627 - 12751 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-28 10:59:52,627 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:52,941 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:52,941 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:53,254 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:53,254 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:53,562 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:53,563 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:53,882 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:53,883 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:54,194 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:54,194 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:54,505 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:54,506 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:54,806 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:54,807 - 12751 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34459 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:55,684 - 12751 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 10:59:55,685 - 12751 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 10:59:55,685 - 12751 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 59 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:56,020 - 12751 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 59) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-28 10:59:59,065 - 12751 - src.utils.log - INFO - βœ… All 59 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-28 10:59:59,066 - 12751 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 59 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-23 12:09:41.917' and ServiceSetupId = 34459... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:59,371 - 12751 - src.utils.log - INFO - βœ… Fetched 59 rows - __SPLIT__ 2026-07-28 10:59:59,372 - 12751 - src.utils.log - INFO - Id's of work order inserted to DB: [2739577 2739578 2739579 2739580 2739581 2739582 2739583 2739584 2739585 2739586 2739587 2739588 2739589 2739590 2739591 2739592 2739593 2739594 2739595 2739596 2739597 2739598 2739599 2739600 2739601 2739602 2739603 2739604 2739605 2739606 2739607 2739608 2739609 2739610 2739611 2739612 2739613 2739614 2739615 2739616 2739617 2739618 2739619 2739620 2739621 2739622 2739623 2739624 2739625 2739626 2739627 2739628 2739629 2739630 2739631 2739632 2739633 2739634 2739635] - __SPLIT__ 2026-07-28 10:59:59,372 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:59,669 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 10:59:59,670 - 12751 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-28 10:59:59,670 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34459... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 10:59:59,971 - 12751 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-28 10:59:59,971 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34459... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:00,274 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:00,283 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34459... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:00,586 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:00,586 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34459... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:00,886 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:00,886 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34459... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:01,185 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:01,186 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:01,485 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:01,486 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:01,822 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:01,830 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:02,147 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:02,148 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34459;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:02,446 - 12751 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,452 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 11:00:02,453 - 12751 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739584, 2739585, 2739586, 2739587, 2739588, 2739589, 2739590, 2739591, 2739592, 2739593, 2739594, 2739595, 2739596, 2739597, 2739598, 2739599, 2739600, 2739601, 2739602, 2739603, 2739604, 2739605, 2739606, 2739607, 2739608, 2739609, 2739610, 2739611, 2739612, 2739613, 2739614, 2739615, 2739616, 2739617, 2739618, 2739619, 2739620, 2739621, 2739622, 2739623, 2739624, 2739625, 2739626, 2739627, 2739628, 2739629, 2739630, 2739631, 2739632, 2739633, 2739634, 2739635, 2739577, 2739578, 2739579, 2739580, 2739581, 2739582, 2739583) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:02,754 - 12751 - src.utils.log - INFO - βœ… Fetched 59 rows - __SPLIT__ 2026-07-28 11:00:02,755 - 12751 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 118 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:03,061 - 12751 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 118) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 11:00:04,473 - 12751 - src.utils.log - INFO - βœ… All 118 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 11:00:04,474 - 12751 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 11:00:04,474 - 12751 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12751;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 11:00:04,772 - 12751 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 11:00:04,772 - 12751 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-28 11:00:04,772 - 12751 - src.utils.log - INFO - Time took to perform operation: 17.53 - __SPLIT__ 2026-07-28 13:09:03,127 - 12753 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12753 - __SPLIT__ 2026-07-28 13:09:03,128 - 12753 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12753 - __SPLIT__ 2026-07-28 13:09:03,128 - 12753 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-28 13:09:03,129 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:05,186 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:05,186 - 12753 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-28 13:09:05,186 - 12753 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:05,482 - 12753 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 13:09:05,482 - 12753 - 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 = 12753), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12753), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12753 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:05,811 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:05,812 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:06,105 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:06,108 - 12753 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-28 13:09:06,109 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:06,408 - 12753 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-28 13:09:06,409 - 12753 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-28 13:09:06,412 - 12753 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-28 13:09:06,413 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:06,708 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:06,709 - 12753 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-28 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 34475 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:07,008 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:07,630 - 12753 - src.utils.log - INFO - Generating work orders for setup: 34475 - __SPLIT__ 2026-07-28 13:09:08,067 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:08,363 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:08,370 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:08,665 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:08,712 - 12753 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-28 13:09:08,718 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:09,012 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:09,014 - 12753 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-28 13:09:09,014 - 12753 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-28 13:09:09,014 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:09,318 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:09,318 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:09,621 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:09,621 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:09,924 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:09,924 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:10,226 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:10,226 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:10,528 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:10,528 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:10,832 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:10,832 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:11,129 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:11,129 - 12753 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:11,444 - 12753 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-28 13:09:11,445 - 12753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 13:09:11,445 - 12753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 59 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:11,775 - 12753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 59) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-28 13:09:14,773 - 12753 - src.utils.log - INFO - βœ… All 59 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-28 13:09:14,774 - 12753 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 59 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-23 12:09:41.917' and ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:15,075 - 12753 - src.utils.log - INFO - βœ… Fetched 59 rows - __SPLIT__ 2026-07-28 13:09:15,076 - 12753 - src.utils.log - INFO - Id's of work order inserted to DB: [2739637 2739638 2739639 2739640 2739641 2739642 2739643 2739644 2739645 2739646 2739647 2739648 2739649 2739650 2739651 2739652 2739653 2739654 2739655 2739656 2739657 2739658 2739659 2739660 2739661 2739662 2739663 2739664 2739665 2739666 2739667 2739668 2739669 2739670 2739671 2739672 2739673 2739674 2739675 2739676 2739677 2739678 2739679 2739680 2739681 2739682 2739683 2739684 2739685 2739686 2739687 2739688 2739689 2739690 2739691 2739692 2739693 2739694 2739695] - __SPLIT__ 2026-07-28 13:09:15,076 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:15,371 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:15,372 - 12753 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-28 13:09:15,372 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:15,669 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:15,669 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:15,963 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:15,971 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:16,267 - 12753 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-28 13:09:16,269 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:16,562 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:16,563 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:16,857 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:16,858 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:17,152 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:17,153 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:17,448 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:17,448 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:17,761 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:17,761 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:18,056 - 12753 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-28 13:09:18,070 - 12753 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-28 13:09:18,070 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-28 13:09:18,070 - 12753 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,070 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-28 13:09:18,070 - 12753 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,070 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 13:09:18,071 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739637, 2739638, 2739639, 2739640, 2739641, 2739642, 2739643, 2739644, 2739645, 2739646, 2739647, 2739648, 2739649, 2739650, 2739651, 2739652, 2739653, 2739654, 2739655, 2739656, 2739657, 2739658, 2739659, 2739660, 2739661, 2739662, 2739663, 2739664, 2739665, 2739666, 2739667, 2739668, 2739669, 2739670, 2739671, 2739672, 2739673, 2739674, 2739675, 2739676, 2739677, 2739678, 2739679, 2739680, 2739681, 2739682, 2739683, 2739684, 2739685, 2739686, 2739687, 2739688, 2739689, 2739690, 2739691, 2739692, 2739693, 2739694, 2739695) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:18,369 - 12753 - src.utils.log - INFO - βœ… Fetched 59 rows - __SPLIT__ 2026-07-28 13:09:18,370 - 12753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 117 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:18,671 - 12753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 117) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-28 13:09:19,798 - 12753 - src.utils.log - INFO - βœ… All 117 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-28 13:09:19,799 - 12753 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-28 13:09:19,799 - 12753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 13:09:19,799 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2739637 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:20,093 - 12753 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-28 13:09:20,094 - 12753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:20,398 - 12753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 13:09:21,434 - 12753 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 13:09:21,435 - 12753 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 13:09:21,435 - 12753 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-28 13:09:21,435 - 12753 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739638, 2739639, 2739640, 2739641, 2739642, 2739643, 2739644, 2739645, 2739646, 2739647, 2739648, 2739649, 2739650, 2739651, 2739652, 2739653, 2739654, 2739655, 2739656, 2739657, 2739658, 2739659, 2739660, 2739661, 2739662, 2739663, 2739664, 2739665, 2739666, 2739667, 2739668, 2739669, 2739670, 2739671, 2739672, 2739673, 2739674, 2739675, 2739676, 2739677, 2739678, 2739679, 2739680, 2739681, 2739682, 2739683, 2739684, 2739685, 2739686, 2739687, 2739688, 2739689, 2739690, 2739691, 2739692, 2739693, 2739694, 2739695) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:21,734 - 12753 - src.utils.log - INFO - βœ… Fetched 58 rows - __SPLIT__ 2026-07-28 13:09:21,735 - 12753 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 58 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:22,036 - 12753 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 58) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-28 13:09:23,147 - 12753 - src.utils.log - INFO - βœ… All 58 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-28 13:09:23,148 - 12753 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-28 13:09:23,148 - 12753 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12753;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-28 13:09:23,441 - 12753 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-28 13:09:23,442 - 12753 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-28 13:09:23,442 - 12753 - src.utils.log - INFO - Time took to perform operation: 20.31 - __SPLIT__ 2026-07-29 06:41:23,355 - 12756 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12756 - __SPLIT__ 2026-07-29 06:41:23,357 - 12756 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12756 - __SPLIT__ 2026-07-29 06:41:23,375 - 12756 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 06:41:23,376 - 12756 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:41:26,027 - 12756 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:41:26,027 - 12756 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-29 06:41:26,027 - 12756 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:41:26,321 - 12756 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:41:26,321 - 12756 - 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 = 12756), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12756), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12756 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:41:26,647 - 12756 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:41:26,648 - 12756 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:41:26,944 - 12756 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 06:41:26,946 - 12756 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-29 02:41:26.945' WHERE GenerateWorkOrderHistoryId = 12756;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:41:27,238 - 12756 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:41:27,238 - 12756 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12756 - __SPLIT__ 2026-07-29 06:41:57,050 - 12757 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12757 - __SPLIT__ 2026-07-29 06:41:57,052 - 12757 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12757 - __SPLIT__ 2026-07-29 06:41:57,066 - 12757 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 06:41:57,066 - 12757 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:41:59,715 - 12757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:41:59,716 - 12757 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-29 06:41:59,716 - 12757 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:42:00,018 - 12757 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:42:00,018 - 12757 - 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 = 12757), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12757), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12757 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:42:00,345 - 12757 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:42:00,345 - 12757 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:42:00,641 - 12757 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 06:42:00,642 - 12757 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-29 02:42:00.642' WHERE GenerateWorkOrderHistoryId = 12757;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:42:00,990 - 12757 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:42:00,990 - 12757 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12757 - __SPLIT__ 2026-07-29 06:52:28,718 - 12758 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12758 - __SPLIT__ 2026-07-29 06:52:28,718 - 12758 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12758 - __SPLIT__ 2026-07-29 06:52:28,719 - 12758 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 06:52:28,719 - 12758 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:52:30,783 - 12758 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:52:30,784 - 12758 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-29 06:52:30,784 - 12758 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12758;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:52:31,077 - 12758 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:52:31,077 - 12758 - 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 = 12758), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12758), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12758 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:52:31,403 - 12758 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:52:31,404 - 12758 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12758;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:52:31,700 - 12758 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 06:52:31,701 - 12758 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-29 02:52:31.701' WHERE GenerateWorkOrderHistoryId = 12758;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:52:31,994 - 12758 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:52:31,994 - 12758 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12758 - __SPLIT__ 2026-07-29 06:58:03,515 - 12759 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12759 - __SPLIT__ 2026-07-29 06:58:03,515 - 12759 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12759 - __SPLIT__ 2026-07-29 06:58:03,516 - 12759 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 06:58:03,516 - 12759 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:58:05,593 - 12759 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:58:05,593 - 12759 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-29 06:58:05,593 - 12759 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12759;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:58:05,889 - 12759 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:58:05,889 - 12759 - 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 = 12759), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12759), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12759 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:58:06,219 - 12759 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 06:58:06,220 - 12759 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12759;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:58:06,517 - 12759 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 06:58:06,518 - 12759 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-29 02:58:06.518' WHERE GenerateWorkOrderHistoryId = 12759;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 06:58:06,814 - 12759 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 06:58:06,814 - 12759 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12759 - __SPLIT__ 2026-07-29 07:07:01,636 - 12760 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12760 - __SPLIT__ 2026-07-29 07:07:01,637 - 12760 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12760 - __SPLIT__ 2026-07-29 07:07:01,651 - 12760 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 07:07:01,652 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:04,312 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:04,312 - 12760 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-29 07:07:04,312 - 12760 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:04,607 - 12760 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 07:07:04,607 - 12760 - 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 = 12760), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12760), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12760 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:04,938 - 12760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:07:04,938 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:05,235 - 12760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:07:05,238 - 12760 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-29 07:07:05,239 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:05,537 - 12760 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-29 07:07:05,537 - 12760 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-29 07:07:05,541 - 12760 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-29 07:07:05,541 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:05,837 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:05,837 - 12760 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-29 00:00:00' and ServiceDate <= '2032-04-30 00:00:00' and ServiceSetupId = 34487 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:06,137 - 12760 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:07:06,761 - 12760 - src.utils.log - INFO - Generating work orders for setup: 34487 - __SPLIT__ 2026-07-29 07:07:07,437 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1364;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:07,730 - 12760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:07:07,782 - 12760 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-29 07:07:07,790 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:08,083 - 12760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:07:08,085 - 12760 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-29 07:07:08,085 - 12760 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-29 07:07:08,085 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:08,388 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:08,388 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:08,690 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:08,690 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:08,991 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:08,991 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:09,291 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:09,291 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:09,592 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:09,592 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:09,894 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:09,895 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:10,188 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:10,188 - 12760 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34487 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:10,501 - 12760 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:07:10,501 - 12760 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:07:10,501 - 12760 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 56 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:10,830 - 12760 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 56) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-29 07:07:13,826 - 12760 - src.utils.log - INFO - βœ… All 56 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-29 07:07:13,826 - 12760 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 56 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-29 12:09:48.565' and ServiceSetupId = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:14,130 - 12760 - src.utils.log - INFO - βœ… Fetched 56 rows - __SPLIT__ 2026-07-29 07:07:14,130 - 12760 - src.utils.log - INFO - Id's of work order inserted to DB: [2739780 2739781 2739782 2739783 2739784 2739785 2739786 2739787 2739788 2739789 2739790 2739791 2739792 2739793 2739794 2739795 2739796 2739797 2739798 2739799 2739800 2739801 2739802 2739803 2739804 2739805 2739806 2739807 2739808 2739809 2739810 2739811 2739812 2739813 2739814 2739815 2739816 2739817 2739818 2739819 2739820 2739821 2739822 2739823 2739824 2739825 2739826 2739827 2739828 2739829 2739830 2739831 2739832 2739833 2739834 2739835] - __SPLIT__ 2026-07-29 07:07:14,131 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:14,426 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:14,426 - 12760 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-29 07:07:14,427 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:14,721 - 12760 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:07:14,721 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:15,018 - 12760 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:07:15,027 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:15,324 - 12760 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:07:15,326 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:15,619 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:15,619 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:15,913 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:15,913 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:16,207 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:16,208 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:16,502 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:16,502 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:16,815 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:16,815 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:17,107 - 12760 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:07:17,120 - 12760 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-29 07:07:17,120 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-29 07:07:17,120 - 12760 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,120 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-29 07:07:17,120 - 12760 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,120 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:07:17,121 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739780, 2739781, 2739782, 2739783, 2739784, 2739785, 2739786, 2739787, 2739788, 2739789, 2739790, 2739791, 2739792, 2739793, 2739794, 2739795, 2739796, 2739797, 2739798, 2739799, 2739800, 2739801, 2739802, 2739803, 2739804, 2739805, 2739806, 2739807, 2739808, 2739809, 2739810, 2739811, 2739812, 2739813, 2739814, 2739815, 2739816, 2739817, 2739818, 2739819, 2739820, 2739821, 2739822, 2739823, 2739824, 2739825, 2739826, 2739827, 2739828, 2739829, 2739830, 2739831, 2739832, 2739833, 2739834, 2739835) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:17,418 - 12760 - src.utils.log - INFO - βœ… Fetched 56 rows - __SPLIT__ 2026-07-29 07:07:17,419 - 12760 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 56 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:17,720 - 12760 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 56) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-29 07:07:18,792 - 12760 - src.utils.log - INFO - βœ… All 56 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-29 07:07:18,793 - 12760 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-29 07:07:18,793 - 12760 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-29 07:07:18,793 - 12760 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-29 07:07:18,793 - 12760 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:07:18,793 - 12760 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2739780, 2739781, 2739782, 2739783, 2739784, 2739785, 2739786, 2739787, 2739788, 2739789, 2739790, 2739791, 2739792, 2739793, 2739794, 2739795, 2739796, 2739797, 2739798, 2739799, 2739800, 2739801, 2739802, 2739803, 2739804, 2739805, 2739806, 2739807, 2739808, 2739809, 2739810, 2739811, 2739812, 2739813, 2739814, 2739815, 2739816, 2739817, 2739818, 2739819, 2739820, 2739821, 2739822, 2739823, 2739824, 2739825, 2739826, 2739827, 2739828, 2739829, 2739830, 2739831, 2739832, 2739833, 2739834, 2739835) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:19,085 - 12760 - src.utils.log - INFO - βœ… Fetched 56 rows - __SPLIT__ 2026-07-29 07:07:19,087 - 12760 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 112 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:19,390 - 12760 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 112) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-29 07:07:20,787 - 12760 - src.utils.log - INFO - βœ… All 112 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-29 07:07:20,788 - 12760 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-29 07:07:20,788 - 12760 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:07:21,080 - 12760 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 07:07:21,080 - 12760 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-29 07:07:21,081 - 12760 - src.utils.log - INFO - Time took to perform operation: 19.44 - __SPLIT__ 2026-07-29 07:08:26,011 - [12760] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2739781, 2739782] user_id=122885 company_id=135 project_id=[12760] publish_all=False - __SPLIT__ 2026-07-29 07:08:26,012 - [12760] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2739781, 2739782] user_id=122885 company_id=135 project_id=[12760] publish_all=False - __SPLIT__ 2026-07-29 07:08:26,013 - [12760] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12760] - __SPLIT__ 2026-07-29 07:08:26,013 - [12760] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 07:08:26,013 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:28,086 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:28,086 - [12760] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-29 07:08:28,086 - [12760] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:28,382 - [12760] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 07:08:28,382 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:28,684 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:28,684 - [12760] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-29 07:08:28,685 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34487 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:28,982 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:28,982 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34487 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:29,278 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:29,279 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34487 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:29,575 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:29,579 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:29,876 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:29,876 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:30,172 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:30,173 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:30,469 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:30,469 - [12760] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 2 OUTPUT INSERTED.NextNumber - 2 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:30,770 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:30,773 - [12760] - 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 = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:31,073 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:31,075 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:31,371 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:31,372 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = 'tues' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:31,667 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:31,669 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169610R', '169611R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:31,968 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:31,969 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:32,450 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-29 07:08:33,598 - [12760] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-29 07:08:33,745 - [12760] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-29 07:08:33,747 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169610R', '169611R') AND wo.AccountNumber = 'tues' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-29 07:08:34,049 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:34,050 - [12760] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-29 07:08:34,050 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:34,355 - [12760] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-29 07:08:34,355 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:34,656 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:34,657 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:34,958 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:34,958 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:35,254 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:35,254 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:35,556 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:35,557 - [12760] - 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 (2739781, 2739782)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:35,871 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:35,871 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2739781, 2739782) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:36,170 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:36,170 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2739781, 2739782);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:36,467 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:36,470 - [12760] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-29 07:08:36,482 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:36,778 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:36,778 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:37,075 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:37,079 - [12760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:08:37,079 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:37,401 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-29 07:08:38,463 - [12760] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-29 07:08:38,465 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34487 AND WorkOrderNo IN ('9576806', '9258806') AND GenerateWorkOrderHistoryId = 12760;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-29 07:08:38,787 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:38,788 - [12760] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-29 07:08:38,794 - [12760] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-29 07:08:38,794 - [12760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:08:38,794 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:39,097 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-29 07:08:40,257 - [12760] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-29 07:08:40,258 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-29 07:08:40,258 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-29 07:08:40,258 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-29 07:08:40,258 - [12760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:08:40,258 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:40,561 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-29 07:08:41,605 - [12760] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-29 07:08:41,605 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-29 07:08:41,605 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-29 07:08:41,605 - [12760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:08:41,605 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:41,909 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-29 07:08:42,957 - [12760] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-29 07:08:42,958 - [12760] - 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 = 34487... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:43,256 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:43,262 - [12760] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-29 07:08:43,263 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:43,714 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-29 07:08:44,762 - [12760] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-29 07:08:44,910 - [12760] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-29 07:08:44,911 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-29 03:08:43.257';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:45,238 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:45,240 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:45,536 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:45,545 - [12760] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-29 03:08:43.257'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-29 07:08:45,863 - [12760] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 07:08:45,869 - [12760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:08:45,869 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:46,175 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-29 07:08:47,298 - [12760] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-29 07:08:47,299 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('169611R', '169610R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:47,625 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:47,635 - [12760] - 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 = 34487 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:47,934 - [12760] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 07:08:47,934 - [12760] - 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 = 34487 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:48,231 - [12760] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 07:08:48,231 - [12760] - 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 = 34487 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:48,528 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:48,529 - [12760] - 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 = 34487 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:48,824 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:48,837 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:49,133 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:49,139 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:49,434 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:49,438 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34487;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:49,734 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:49,735 - [12760] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-29 07:08:49,735 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-29 07:08:49,735 - [12760] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 07:08:49,735 - [12760] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:50,039 - [12760] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-07-29 07:08:51,087 - [12760] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-29 07:08:51,088 - [12760] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-29 07:08:51,088 - [12760] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-29 07:08:51,088 - [12760] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-29 07:08:51,088 - [12760] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12760 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:51,386 - [12760] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 07:08:51,393 - [12760] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-29 07:08:51,541 - [12760] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_ffe6c66e40 - __SPLIT__ 2026-07-29 07:08:51,839 - [12760] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_ffe6c66e40 - __SPLIT__ 2026-07-29 07:08:52,133 - [12760] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-29 07:08:52,288 - [12760] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-29 07:08:52,441 - [12760] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_ffe6c66e40 - __SPLIT__ 2026-07-29 07:08:52,441 - [12760] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_ffe6c66e40 - __SPLIT__ 2026-07-29 07:08:52,441 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12760 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:52,737 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:52,737 - [12760] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-29 07:08:52,737 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:53,053 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:53,053 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:53,361 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:53,361 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:53,659 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:53,660 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:53,997 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:53,997 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:54,312 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:54,312 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:54,610 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:54,611 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:54,907 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:54,907 - [12760] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2739781, 2739782) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:55,224 - [12760] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 07:08:55,224 - [12760] - src.utils.log - INFO - Work order published ids: (2739781, 2739782) - __SPLIT__ 2026-07-29 07:08:55,224 - [12760] - src.utils.log - INFO - Time took to perform operation in publishing [12760]: 29.21 - __SPLIT__ 2026-07-29 07:08:55,224 - [12760] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12760] - __SPLIT__ 2026-07-29 07:08:55,224 - [12760] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-29 03:08:55.224' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12760;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 07:08:55,529 - [12760] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 10:51:41,349 - 124844 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124844 - __SPLIT__ 2026-07-29 10:51:41,350 - 124844 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124844 - __SPLIT__ 2026-07-29 10:51:41,351 - 124844 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 10:51:41,351 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:43,429 - 124844 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 10:51:43,430 - 124844 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-29 10:51:43,430 - 124844 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-29 10:51:43,431 - 124844 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-29 10:51:43,431 - 124844 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:45,899 - 124844 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 10:51:45,900 - 124844 - 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 = 124844), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124844), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124844 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:46,236 - 124844 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-29 10:51:46,236 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:46,504 - 124844 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 10:51:46,507 - 124844 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-29 10:51:46,508 - 124844 - 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 (14586, 14580, 14572, 14462)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:46,863 - 124844 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-07-29 10:51:46,863 - 124844 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-29 10:51:46,866 - 124844 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-29 10:51:46,867 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:47,187 - 124844 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:51:47,188 - 124844 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-29 00:00:00' and ServiceDate <= '2039-12-31 00:00:00' and ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:47,465 - 124844 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-29 10:51:48,074 - 124844 - src.utils.log - INFO - Generating work orders for setup: 150644 - __SPLIT__ 2026-07-29 10:51:48,425 - 124844 - src.utils.log - INFO - Generating work orders for setup: 150655 - __SPLIT__ 2026-07-29 10:51:48,804 - 124844 - src.utils.log - INFO - Generating work orders for setup: 150656 - __SPLIT__ 2026-07-29 10:51:49,238 - 124844 - src.utils.log - INFO - Generating work orders for setup: 150657 - __SPLIT__ 2026-07-29 10:51:49,735 - 124844 - src.utils.log - INFO - Generating work orders for setup: 150661 - __SPLIT__ 2026-07-29 10:51:50,200 - 124844 - src.utils.log - INFO - Generating work orders for setup: 150698 - __SPLIT__ 2026-07-29 10:51:50,981 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428.0, 11437.0, 1127.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:51,247 - 124844 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-29 10:51:51,336 - 124844 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-29 10:51:51,347 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:51,613 - 124844 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 10:51:51,616 - 124844 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-29 10:51:51,617 - 124844 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-29 10:51:51,617 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:52,494 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:52,495 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:53,028 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:53,028 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:53,313 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:53,313 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:53,972 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:53,972 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:54,334 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:54,335 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:54,698 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:54,698 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:54,987 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:54,987 - 124844 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:56,697 - 124844 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-29 10:51:56,698 - 124844 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 10:51:56,698 - 124844 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 331 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:51:57,024 - 124844 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 331) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-29 10:52:06,952 - 124844 - src.utils.log - INFO - βœ… All 331 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-29 10:52:06,953 - 124844 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 331 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-29 12:09:48.565' and ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:07,290 - 124844 - src.utils.log - INFO - βœ… Fetched 331 rows - __SPLIT__ 2026-07-29 10:52:07,292 - 124844 - src.utils.log - INFO - Id's of work order inserted to DB: [3686022 3686023 3686024 3686025 3686026 3686027 3686028 3686029 3686030 3686031 3686032 3686033 3686034 3686035 3686036 3686037 3686038 3686039 3686040 3686041 3686042 3686043 3686044 3686045 3686046 3686047 3686048 3686049 3686050 3686051 3686052 3686053 3686054 3686055 3686056 3686057 3686058 3686059 3686060 3686061 3686062 3686063 3686064 3686065 3686066 3686067 3686068 3686069 3686070 3686071 3686072 3686073 3686074 3686075 3686076 3686077 3686078 3686079 3686080 3686081 3686082 3686083 3686084 3686085 3686086 3686087 3686088 3686089 3686090 3686091 3686092 3686093 3686094 3686095 3686096 3686097 3686098 3686099 3686100 3686101 3686102 3686103 3686104 3686105 3686106 3686107 3686108 3686109 3686110 3686111 3686112 3686113 3686114 3686115 3686116 3686117 3686118 3686119 3686120 3686121 3686122 3686123 3686124 3686125 3686126 3686127 3686128 3686129 3686130 3686131 3686132 3686133 3686134 3686135 3686136 3686137 3686138 3686139 3686140 3686141 3686142 3686143 3686144 3686145 3686146 3686147 3686148 3686149 3686150 3686151 3686152 3686153 3686154 3686155 3686156 3686157 3686158 3686159 3686160 3686161 3686162 3686163 3686164 3686165 3686166 3686167 3686168 3686169 3686170 3686171 3686172 3686173 3686174 3686175 3686176 3686177 3686178 3686179 3686180 3686181 3686182 3686183 3686184 3686185 3686186 3686187 3686188 3686189 3686190 3686191 3686192 3686193 3686194 3686195 3686196 3686197 3686198 3686199 3686200 3686201 3686202 3686203 3686204 3686205 3686206 3686207 3686208 3686209 3686210 3686211 3686212 3686213 3686214 3686215 3686216 3686217 3686218 3686219 3686220 3686221 3686222 3686223 3686224 3686225 3686226 3686227 3686228 3686229 3686230 3686231 3686232 3686233 3686234 3686235 3686236 3686237 3686238 3686239 3686240 3686241 3686242 3686243 3686244 3686245 3686246 3686247 3686248 3686249 3686250 3686251 3686252 3686253 3686254 3686255 3686256 3686257 3686258 3686259 3686260 3686261 3686262 3686263 3686264 3686265 3686266 3686267 3686268 3686269 3686270 3686271 3686272 3686273 3686274 3686275 3686276 3686277 3686278 3686279 3686280 3686281 3686282 3686283 3686284 3686285 3686286 3686287 3686288 3686289 3686290 3686291 3686292 3686293 3686294 3686295 3686296 3686297 3686298 3686299 3686300 3686301 3686302 3686303 3686304 3686305 3686306 3686307 3686308 3686309 3686310 3686311 3686312 3686313 3686314 3686315 3686316 3686317 3686318 3686319 3686320 3686321 3686322 3686323 3686324 3686325 3686326 3686327 3686328 3686329 3686330 3686331 3686332 3686333 3686334 3686335 3686336 3686337 3686338 3686339 3686340 3686341 3686342 3686343 3686344 3686345 3686346 3686347 3686348 3686349 3686350 3686351 3686352] - __SPLIT__ 2026-07-29 10:52:07,292 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:07,559 - 124844 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:52:07,559 - 124844 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-29 10:52:07,559 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:07,828 - 124844 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-07-29 10:52:07,828 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:08,097 - 124844 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-07-29 10:52:08,104 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:08,479 - 124844 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-29 10:52:08,480 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:08,767 - 124844 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:52:08,768 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:09,038 - 124844 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:52:09,039 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:09,307 - 124844 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-29 10:52:09,308 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:09,587 - 124844 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-29 10:52:09,589 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150656, 150657, 150661, 150698, 150644, 150655);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:10,877 - 124844 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:52:10,877 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150656, 150657, 150661, 150698, 150644, 150655);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:11,159 - 124844 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:52:11,178 - 124844 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-29 10:52:11,178 - 124844 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-29 10:52:11,179 - 124844 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-29 10:52:11,179 - 124844 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-29 10:52:11,179 - 124844 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-29 10:52:11,179 - 124844 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 10:52:11,179 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3686088', '3686244', '3686149', '3686234', '3686276', '3686209', '3686156', '3686199', '3686043', '3686330', '3686037', '3686188', '3686225', '3686093', '3686205', '3686034', '3686296', '3686319', '3686202', '3686025', '3686114', '3686137', '3686107', '3686238', '3686174', '3686271', '3686076', '3686075', '3686067', '3686120', '3686210', '3686118', '3686042', '3686331', '3686142', '3686048', '3686184', '3686292', '3686208', '3686038', '3686342', '3686091', '3686311', '3686176', '3686346', '3686336', '3686022', '3686041', '3686061', '3686214', '3686230', '3686099', '3686343', '3686233', '3686350', '3686083', '3686027', '3686237', '3686265', '3686047', '3686187', '3686250', '3686191', '3686324', '3686309', '3686111', '3686274', '3686293', '3686280', '3686267', '3686218', '3686195', '3686334', '3686183', '3686101', '3686062', '3686217', '3686123', '3686249', '3686286', '3686172', '3686159', '3686300', '3686128', '3686166', '3686211', '3686081', '3686069', '3686127', '3686303', '3686121', '3686229', '3686257', '3686040', '3686059', '3686141', '3686349', '3686153', '3686341', '3686194', '3686316', '3686169', '3686163', '3686177', '3686284', '3686150', '3686307', '3686179', '3686051', '3686283', '3686297', '3686302', '3686100', '3686261', '3686065', '3686270', '3686031', '3686146', '3686326', '3686145', '3686072', '3686186', '3686095', '3686213', '3686117', '3686029', '3686085', '3686104', '3686260', '3686315', '3686247', '3686162', '3686337', '3686204', '3686256', '3686143', '3686050', '3686306', '3686231', '3686275', '3686053', '3686108', '3686078', '3686221', '3686321', '3686327', '3686132', '3686290', '3686253', '3686264', '3686134', '3686131', '3686242') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:11,456 - 124844 - src.utils.log - INFO - βœ… Fetched 153 rows - __SPLIT__ 2026-07-29 10:52:11,457 - 124844 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:11,751 - 124844 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-29 10:52:11,751 - 124844 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-29 10:52:11,751 - 124844 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 10:52:11,751 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686146, 3686276, 3686022, 3686156, 3686029, 3686286, 3686034, 3686290, 3686166, 3686040, 3686169, 3686043, 3686300, 3686176, 3686179, 3686053, 3686309, 3686188, 3686062, 3686319, 3686324, 3686069, 3686199, 3686202, 3686078, 3686334, 3686208, 3686081, 3686337, 3686211, 3686343, 3686088, 3686346, 3686091, 3686221, 3686225, 3686101, 3686231, 3686234, 3686111, 3686114, 3686244, 3686120, 3686123, 3686253, 3686257, 3686134, 3686264, 3686137, 3686267, 3686143) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:12,019 - 124844 - src.utils.log - INFO - βœ… Fetched 51 rows - __SPLIT__ 2026-07-29 10:52:12,020 - 124844 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 102 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:12,318 - 124844 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 102) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-29 10:52:13,693 - 124844 - src.utils.log - INFO - βœ… All 102 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-29 10:52:13,694 - 124844 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 10:52:13,695 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686022, 3686023, 3686024, 3686026, 3686027, 3686028, 3686029, 3686030, 3686032, 3686033, 3686034, 3686035, 3686036, 3686038, 3686039, 3686040, 3686042, 3686043, 3686044, 3686045, 3686046, 3686047, 3686049, 3686050, 3686052, 3686053, 3686054, 3686055, 3686056, 3686057, 3686058, 3686060, 3686061, 3686062, 3686063, 3686064, 3686065, 3686066, 3686068, 3686069, 3686070, 3686071, 3686072, 3686073, 3686074, 3686075, 3686077, 3686078, 3686079, 3686080, 3686081, 3686082, 3686084, 3686085, 3686086, 3686087, 3686088, 3686089, 3686090, 3686091, 3686092, 3686094, 3686095, 3686096, 3686097, 3686098, 3686100, 3686101, 3686102, 3686103, 3686104, 3686105, 3686106, 3686108, 3686109, 3686110, 3686111, 3686112, 3686113, 3686114, 3686115, 3686116, 3686118, 3686119, 3686120, 3686122, 3686123, 3686124, 3686125, 3686126, 3686128, 3686129, 3686130, 3686132, 3686133, 3686134, 3686135, 3686136, 3686137, 3686138, 3686139, 3686140, 3686142, 3686143, 3686144, 3686146, 3686147, 3686148, 3686150, 3686151, 3686152, 3686154, 3686155, 3686156, 3686157, 3686158, 3686159, 3686160, 3686161, 3686162, 3686164, 3686165, 3686166, 3686167, 3686168, 3686169, 3686170, 3686171, 3686172, 3686173, 3686175, 3686176, 3686177, 3686178, 3686179, 3686180, 3686181, 3686182, 3686184, 3686185, 3686187, 3686188, 3686189, 3686190, 3686192, 3686193, 3686195, 3686196, 3686197, 3686198, 3686199, 3686200, 3686201, 3686202, 3686203, 3686204, 3686206, 3686207, 3686208, 3686209, 3686211, 3686212, 3686213, 3686215, 3686216, 3686218, 3686219, 3686220, 3686221, 3686222, 3686223, 3686224, 3686225, 3686226, 3686227, 3686228, 3686229, 3686231, 3686232, 3686233, 3686234, 3686235, 3686236, 3686237, 3686239, 3686240, 3686241, 3686242, 3686243, 3686244, 3686245, 3686246, 3686248, 3686250, 3686251, 3686252, 3686253, 3686254, 3686255, 3686257, 3686258, 3686259, 3686260, 3686262, 3686263, 3686264, 3686266, 3686267, 3686268, 3686269, 3686270, 3686272, 3686273, 3686274, 3686276, 3686277, 3686278, 3686279, 3686280, 3686281, 3686282, 3686283, 3686285, 3686286, 3686287, 3686288, 3686289, 3686290, 3686291, 3686293, 3686294, 3686295, 3686296, 3686298, 3686299, 3686300, 3686301, 3686303, 3686304, 3686305, 3686306, 3686308, 3686309, 3686310, 3686311, 3686312, 3686313, 3686314, 3686316, 3686317, 3686318, 3686319, 3686320, 3686321, 3686322, 3686323, 3686324, 3686325, 3686327, 3686328, 3686329, 3686331, 3686332, 3686333, 3686334, 3686335, 3686337, 3686338, 3686339, 3686340, 3686342, 3686343, 3686344, 3686345, 3686346, 3686347, 3686348, 3686350, 3686351, 3686352) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:13,976 - 124844 - src.utils.log - INFO - βœ… Fetched 280 rows - __SPLIT__ 2026-07-29 10:52:13,977 - 124844 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 484 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:14,270 - 124844 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 484) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-29 10:52:16,415 - 124844 - src.utils.log - INFO - βœ… All 484 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-29 10:52:16,415 - 124844 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-29 10:52:16,415 - 124844 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-29 10:52:16,415 - 124844 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-29 10:52:16,415 - 124844 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-29 10:52:16,416 - 124844 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686022, 3686023, 3686024, 3686025, 3686026, 3686027, 3686028, 3686029, 3686030, 3686031, 3686032, 3686033, 3686034, 3686035, 3686036, 3686037, 3686038, 3686039, 3686040, 3686041, 3686042, 3686043, 3686044, 3686045, 3686046, 3686047, 3686048, 3686049, 3686050, 3686051, 3686052, 3686053, 3686054, 3686055, 3686056, 3686057, 3686058, 3686059, 3686060, 3686061, 3686062, 3686063, 3686064, 3686065, 3686066, 3686067, 3686068, 3686069, 3686070, 3686071, 3686072, 3686073, 3686074, 3686075, 3686076, 3686077, 3686078, 3686079, 3686080, 3686081, 3686082, 3686083, 3686084, 3686085, 3686086, 3686087, 3686088, 3686089, 3686090, 3686091, 3686092, 3686093, 3686094, 3686095, 3686096, 3686097, 3686098, 3686099, 3686100, 3686101, 3686102, 3686103, 3686104, 3686105, 3686106, 3686107, 3686108, 3686109, 3686110, 3686111, 3686112, 3686113, 3686114, 3686115, 3686116, 3686117, 3686118, 3686119, 3686120, 3686121, 3686122, 3686123, 3686124, 3686125, 3686126, 3686127, 3686128, 3686129, 3686130, 3686131, 3686132, 3686133, 3686134, 3686135, 3686136, 3686137, 3686138, 3686139, 3686140, 3686141, 3686142, 3686143, 3686144, 3686145, 3686146, 3686147, 3686148, 3686149, 3686150, 3686151, 3686152, 3686153, 3686154, 3686155, 3686156, 3686157, 3686158, 3686159, 3686160, 3686161, 3686162, 3686163, 3686164, 3686165, 3686166, 3686167, 3686168, 3686169, 3686170, 3686171, 3686172, 3686173, 3686174, 3686175, 3686176, 3686177, 3686178, 3686179, 3686180, 3686181, 3686182, 3686183, 3686184, 3686185, 3686186, 3686187, 3686188, 3686189, 3686190, 3686191, 3686192, 3686193, 3686194, 3686195, 3686196, 3686197, 3686198, 3686199, 3686200, 3686201, 3686202, 3686203, 3686204, 3686205, 3686206, 3686207, 3686208, 3686209, 3686210, 3686211, 3686212, 3686213, 3686214, 3686215, 3686216, 3686217, 3686218, 3686219, 3686220, 3686221, 3686222, 3686223, 3686224, 3686225, 3686226, 3686227, 3686228, 3686229, 3686230, 3686231, 3686232, 3686233, 3686234, 3686235, 3686236, 3686237, 3686238, 3686239, 3686240, 3686241, 3686242, 3686243, 3686244, 3686245, 3686246, 3686247, 3686248, 3686249, 3686250, 3686251, 3686252, 3686253, 3686254, 3686255, 3686256, 3686257, 3686258, 3686259, 3686260, 3686261, 3686262, 3686263, 3686264, 3686265, 3686266, 3686267, 3686268, 3686269, 3686270, 3686271, 3686272, 3686273, 3686274, 3686275, 3686276, 3686277, 3686278, 3686279, 3686280, 3686281, 3686282, 3686283, 3686284, 3686285, 3686286, 3686287, 3686288, 3686289, 3686290, 3686291, 3686292, 3686293, 3686294, 3686295, 3686296, 3686297, 3686298, 3686299, 3686300, 3686301, 3686302, 3686303, 3686304, 3686305, 3686306, 3686307, 3686308, 3686309, 3686310, 3686311, 3686312, 3686313, 3686314, 3686315, 3686316, 3686317, 3686318, 3686319, 3686320, 3686321, 3686322, 3686323, 3686324, 3686325, 3686326, 3686327, 3686328, 3686329, 3686330, 3686331, 3686332, 3686333, 3686334, 3686335, 3686336, 3686337, 3686338, 3686339, 3686340, 3686341, 3686342, 3686343, 3686344, 3686345, 3686346, 3686347, 3686348, 3686349, 3686350, 3686351, 3686352) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:16,701 - 124844 - src.utils.log - INFO - βœ… Fetched 331 rows - __SPLIT__ 2026-07-29 10:52:16,702 - 124844 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 433 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:16,999 - 124844 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 433) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-29 10:52:17,335 - 42502 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42502 - __SPLIT__ 2026-07-29 10:52:17,350 - 42502 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-29 10:52:17,350 - 42502 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:19,297 - 124844 - src.utils.log - INFO - βœ… All 433 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-29 10:52:19,297 - 124844 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-29 10:52:19,298 - 124844 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124844;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:19,567 - 124844 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 10:52:19,567 - 124844 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-29 10:52:19,567 - 124844 - src.utils.log - INFO - Time took to perform operation: 38.22 - __SPLIT__ 2026-07-29 10:52:20,028 - 42502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 10:52:20,029 - 42502 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-29 10:52:20,029 - 42502 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-29 10:52:20,030 - 42502 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-29 10:52:20,030 - 42502 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42502 - __SPLIT__ 2026-07-29 10:52:20,030 - 42502 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:22,412 - 42502 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 10:52:22,413 - 42502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:22,681 - 42502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-29 10:52:22,682 - 42502 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '15000' and ss.ServiceSetupId = 150644 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:22,958 - 42502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-29 10:52:22,959 - 42502 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-07-29 06:52:22.959' WHERE GenerateInvoiceHistoryId = 42502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-29 10:52:23,228 - 42502 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-29 10:52:23,229 - 42502 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-29 10:52:23,229 - 42502 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:42502 - Time took: 5.89 - Error:No setups found for GenerateWorkOrderHistoryid: 42502 - __SPLIT__ 2026-07-30 09:43:17,507 - 124849 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124849 - __SPLIT__ 2026-07-30 09:43:17,508 - 124849 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124849 - __SPLIT__ 2026-07-30 09:43:17,509 - 124849 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-30 09:43:17,509 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:19,672 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:19,672 - 124849 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-30 09:43:19,673 - 124849 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-30 09:43:19,673 - 124849 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-30 09:43:19,673 - 124849 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:22,052 - 124849 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:43:22,052 - 124849 - 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 = 124849), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124849), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124849 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:22,377 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:22,377 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:22,640 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:22,643 - 124849 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-30 09:43:22,644 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14667... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:22,918 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:22,918 - 124849 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-30 09:43:22,921 - 124849 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-30 09:43:22,922 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:23,186 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:23,186 - 124849 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-30 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150771 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:23,458 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:24,006 - 124849 - src.utils.log - INFO - Generating work orders for setup: 150771 - __SPLIT__ 2026-07-30 09:43:24,023 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:24,286 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:24,295 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:24,556 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:24,592 - 124849 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-30 09:43:24,597 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:24,858 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:24,860 - 124849 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-30 09:43:24,860 - 124849 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-30 09:43:24,861 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:29,925 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:29,925 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:30,256 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:30,257 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:30,535 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:30,535 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:30,862 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:30,862 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:31,186 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:31,186 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:31,682 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:31,682 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:31,957 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:31,957 - 124849 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150771 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:32,373 - 124849 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:43:32,373 - 124849 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:43:32,374 - 124849 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:32,677 - 124849 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-30 09:43:33,656 - 124849 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-30 09:43:33,656 - 124849 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-29 12:09:48.964' and ServiceSetupId = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:33,983 - 124849 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-30 09:43:33,984 - 124849 - src.utils.log - INFO - Id's of work order inserted to DB: [3686364 3686365] - __SPLIT__ 2026-07-30 09:43:33,984 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:34,247 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:34,247 - 124849 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-30 09:43:34,247 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:34,512 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:34,513 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:34,776 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:34,784 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:35,056 - 124849 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-30 09:43:35,057 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:35,322 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:35,322 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:35,589 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:35,589 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:35,852 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:35,853 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:36,116 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:36,117 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:37,784 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:37,785 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:38,048 - 124849 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-30 09:43:38,134 - 124849 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,135 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-30 09:43:38,135 - 124849 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,135 - 124849 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-30 09:43:38,135 - 124849 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-30 09:43:38,135 - 124849 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:43:38,135 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686364, 3686365) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:38,396 - 124849 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-30 09:43:38,397 - 124849 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:38,664 - 124849 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-30 09:43:39,594 - 124849 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-30 09:43:39,594 - 124849 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-30 09:43:39,594 - 124849 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:43:39,595 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686364 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:39,857 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:39,858 - 124849 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:40,126 - 124849 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-30 09:43:41,099 - 124849 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-30 09:43:41,099 - 124849 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-30 09:43:41,100 - 124849 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:43:41,100 - 124849 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686365 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:41,360 - 124849 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:41,361 - 124849 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:41,630 - 124849 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-30 09:43:42,556 - 124849 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-30 09:43:42,556 - 124849 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-30 09:43:42,557 - 124849 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:42,819 - 124849 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:43:42,819 - 124849 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-30 09:43:42,819 - 124849 - src.utils.log - INFO - Time took to perform operation: 25.31 - __SPLIT__ 2026-07-30 09:43:53,441 - [124849] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124849] publish_all=True - __SPLIT__ 2026-07-30 09:43:53,442 - [124849] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124849] publish_all=True - __SPLIT__ 2026-07-30 09:43:53,442 - [124849] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124849] - __SPLIT__ 2026-07-30 09:43:53,443 - [124849] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-30 09:43:53,443 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:55,527 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:43:55,528 - [124849] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-30 09:43:55,528 - [124849] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-30 09:43:55,529 - [124849] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-30 09:43:55,529 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:43:56,637 - [124849] - src.utils.log - ERROR - ❌ Error executing command: (pyodbc.OperationalError) ('08S01', '[08S01] [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLExecDirectW)') [SQL: SELECT schema_name()] (Background on this error at: https://sqlalche.me/e/20/e3q8) - __SPLIT__ 2026-07-30 09:43:56,637 - [124849] - src.utils.log - ERROR - ❌ set_status failed after 1 attempts: (pyodbc.OperationalError) ('08S01', '[08S01] [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLExecDirectW)') [SQL: SELECT schema_name()] (Background on this error at: https://sqlalche.me/e/20/e3q8) - __SPLIT__ 2026-07-30 09:43:56,637 - [124849] - src.utils.log - INFO - Error: (pyodbc.OperationalError) ('08S01', '[08S01] [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLExecDirectW)') [SQL: SELECT schema_name()] (Background on this error at: https://sqlalche.me/e/20/e3q8) - __SPLIT__ 2026-07-30 09:43:56,637 - [124849] - src.utils.log - INFO - Time took to perform operation in publishing [124849]: 3.2 - __SPLIT__ 2026-07-30 09:43:56,637 - [124849] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124849] - __SPLIT__ 2026-07-30 09:43:56,638 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-30 05:43:56.637' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:44:03,281 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:51:01,853 - [124849] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686364] user_id=43135 company_id=133 project_id=[124849] publish_all=False - __SPLIT__ 2026-07-30 09:51:01,854 - [124849] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686364] user_id=43135 company_id=133 project_id=[124849] publish_all=False - __SPLIT__ 2026-07-30 09:51:01,854 - [124849] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124849] - __SPLIT__ 2026-07-30 09:51:01,855 - [124849] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-30 09:51:01,855 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:03,921 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:03,922 - [124849] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-30 09:51:03,922 - [124849] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-30 09:51:03,923 - [124849] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-30 09:51:03,923 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:05,865 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:51:05,865 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:06,147 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:06,148 - [124849] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-30 09:51:06,148 - [124849] - 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 = 150771 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:06,443 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:06,443 - [124849] - 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 = 150771 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:06,730 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:06,731 - [124849] - 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 = 150771 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:07,023 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:07,027 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:07,307 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:07,307 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:07,595 - [124849] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-30 09:51:07,595 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:07,877 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:07,878 - [124849] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:08,158 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:08,159 - [124849] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:08,440 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:08,444 - [124849] - 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 = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:08,768 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:08,770 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:09,048 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:09,048 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15039' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:09,326 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:09,329 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1431172' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:09,608 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:09,608 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:10,096 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-30 09:51:11,234 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-30 09:51:11,373 - [124849] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-30 09:51:11,374 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:11,686 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:51:11,687 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1431172' AND wo.AccountNumber = '15039' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-30 09:51:11,972 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:11,973 - [124849] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-30 09:51:11,973 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:12,808 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:12,809 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:13,141 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:13,141 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:13,605 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:13,606 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:13,898 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:13,898 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:14,195 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:14,195 - [124849] - 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 = 3686364... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:14,836 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:14,836 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3686364 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:15,150 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:15,150 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3686364;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:15,450 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:15,452 - [124849] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-30 09:51:15,464 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:15,741 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:15,742 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:16,020 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:16,024 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:51:16,024 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:16,352 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-30 09:51:17,348 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-30 09:51:17,349 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150771 AND WorkOrderNo = '607471' AND GenerateWorkOrderHistoryId = 124849; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:18,842 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:18,849 - [124849] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-30 09:51:18,849 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:51:18,849 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:19,161 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-30 09:51:20,215 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-30 09:51:20,216 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-30 09:51:20,216 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-30 09:51:20,216 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-30 09:51:20,216 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:51:20,216 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:20,525 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-30 09:51:21,514 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-30 09:51:21,515 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-30 09:51:21,515 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-30 09:51:21,515 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:51:21,515 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:21,824 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-30 09:51:22,821 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-30 09:51:22,822 - [124849] - 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 = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:23,099 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:23,106 - [124849] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-30 09:51:23,108 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:23,559 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-30 09:51:24,608 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-30 09:51:24,747 - [124849] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-30 09:51:24,747 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-30 05:51:23.101';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:30,500 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:30,503 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:30,797 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:30,805 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-30 05:51:23.101'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-30 09:51:31,913 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:51:31,918 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:51:31,918 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:32,230 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-30 09:51:33,286 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-30 09:51:33,286 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1431172'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:34,348 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:34,357 - [124849] - 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 = 150771 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:34,652 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:34,652 - [124849] - 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 = 150771 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:34,945 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:51:34,946 - [124849] - 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 = 150771 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:35,227 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:35,228 - [124849] - 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 = 150771 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:35,508 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:35,522 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:35,800 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:35,804 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:36,106 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:36,109 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:36,388 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:36,389 - [124849] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-30 09:51:36,389 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-30 09:51:36,389 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:51:36,389 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:36,699 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-30 09:51:37,760 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-30 09:51:37,761 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-30 09:51:37,761 - [124849] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-30 09:51:37,761 - [124849] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-30 09:51:37,761 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124849 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:38,054 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:51:38,061 - [124849] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-30 09:51:38,201 - [124849] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_18726e9b52 - __SPLIT__ 2026-07-30 09:51:38,480 - [124849] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_18726e9b52 - __SPLIT__ 2026-07-30 09:51:38,757 - [124849] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-30 09:51:38,906 - [124849] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-30 09:51:39,051 - [124849] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_18726e9b52 - __SPLIT__ 2026-07-30 09:51:39,051 - [124849] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_18726e9b52 - __SPLIT__ 2026-07-30 09:51:39,051 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124849 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:39,329 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:39,330 - [124849] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-30 09:51:39,330 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:39,747 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:39,748 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:40,116 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:40,116 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:40,395 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:40,395 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:40,755 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:40,756 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:41,039 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:41,039 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:41,321 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:41,322 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:41,600 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:41,600 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686364 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:41,935 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:51:41,936 - [124849] - src.utils.log - INFO - Work order published ids: (3686364,) - __SPLIT__ 2026-07-30 09:51:41,936 - [124849] - src.utils.log - INFO - Time took to perform operation in publishing [124849]: 40.08 - __SPLIT__ 2026-07-30 09:51:41,936 - [124849] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124849] - __SPLIT__ 2026-07-30 09:51:41,936 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-30 05:51:41.935' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:51:42,214 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:52:38,143 - [124849] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686365] user_id=43135 company_id=133 project_id=[124849] publish_all=False - __SPLIT__ 2026-07-30 09:52:38,144 - [124849] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686365] user_id=43135 company_id=133 project_id=[124849] publish_all=False - __SPLIT__ 2026-07-30 09:52:38,144 - [124849] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124849] - __SPLIT__ 2026-07-30 09:52:38,145 - [124849] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-30 09:52:38,145 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:40,223 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:40,224 - [124849] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-30 09:52:40,224 - [124849] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-30 09:52:40,225 - [124849] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-30 09:52:40,225 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:42,643 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:52:42,643 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:42,908 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:42,909 - [124849] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-30 09:52:42,909 - [124849] - 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 = 150771 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:43,173 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:43,173 - [124849] - 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 = 150771 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:43,435 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:43,436 - [124849] - 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 = 150771 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:43,699 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:43,704 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:43,966 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:43,966 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:44,229 - [124849] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-30 09:52:44,229 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:44,491 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:44,492 - [124849] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:44,757 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:44,757 - [124849] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:45,022 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:45,029 - [124849] - 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 = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:45,300 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:45,301 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:45,563 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:45,564 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15039' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:45,826 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:45,829 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1431173' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:46,091 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:46,091 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:46,520 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-30 09:52:47,478 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-30 09:52:47,609 - [124849] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-30 09:52:47,611 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1431173' AND wo.AccountNumber = '15039' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-30 09:52:47,874 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:47,875 - [124849] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-30 09:52:47,875 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:48,178 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:48,178 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:48,443 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:48,443 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:48,726 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:48,726 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:48,989 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:48,989 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:49,252 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:49,253 - [124849] - 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 = 3686365... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:49,547 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:49,547 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3686365 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:49,813 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:49,813 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3686365;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:50,076 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:50,078 - [124849] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-30 09:52:50,090 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:50,352 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:50,353 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:50,615 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:50,619 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:52:50,619 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:50,907 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-30 09:52:51,847 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-30 09:52:51,848 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150771 AND WorkOrderNo = '7112396' AND GenerateWorkOrderHistoryId = 124849; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:52,331 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:52,337 - [124849] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-30 09:52:52,337 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:52:52,337 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:52,607 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-30 09:52:53,534 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-30 09:52:53,534 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-30 09:52:53,534 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-30 09:52:53,534 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-30 09:52:53,534 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:52:53,535 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:53,803 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-30 09:52:54,728 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-30 09:52:54,728 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-30 09:52:54,728 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-30 09:52:54,729 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:52:54,729 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:54,999 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-30 09:52:55,927 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-30 09:52:55,928 - [124849] - 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 = 150771... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:56,191 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:56,197 - [124849] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-30 09:52:56,198 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:56,597 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-30 09:52:57,524 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-30 09:52:57,655 - [124849] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-30 09:52:57,656 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-30 05:52:56.192';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:58,053 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:52:58,055 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:58,320 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:52:58,328 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-30 05:52:56.192'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-30 09:52:59,401 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-30 09:52:59,406 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:52:59,406 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:52:59,678 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-30 09:53:00,617 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-30 09:53:00,618 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1431173'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:01,537 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:53:01,546 - [124849] - 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 = 150771 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:01,809 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:53:01,809 - [124849] - 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 = 150771 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:02,074 - [124849] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-30 09:53:02,074 - [124849] - 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 = 150771 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:02,336 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:53:02,337 - [124849] - 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 = 150771 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:02,599 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:53:02,612 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:02,875 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:53:02,881 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:03,143 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:53:03,146 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150771;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:03,408 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:53:03,409 - [124849] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-30 09:53:03,409 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-30 09:53:03,409 - [124849] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-30 09:53:03,409 - [124849] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:03,680 - [124849] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-30 09:53:04,730 - [124849] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-30 09:53:04,731 - [124849] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-30 09:53:04,731 - [124849] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-30 09:53:04,731 - [124849] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-30 09:53:04,731 - [124849] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124849 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:04,994 - [124849] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-30 09:53:05,001 - [124849] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-30 09:53:05,133 - [124849] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_77bb3957a6 - __SPLIT__ 2026-07-30 09:53:05,403 - [124849] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_77bb3957a6 - __SPLIT__ 2026-07-30 09:53:05,665 - [124849] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-30 09:53:05,806 - [124849] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-30 09:53:05,943 - [124849] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_77bb3957a6 - __SPLIT__ 2026-07-30 09:53:05,944 - [124849] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_77bb3957a6 - __SPLIT__ 2026-07-30 09:53:05,944 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124849 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:06,206 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:06,207 - [124849] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-30 09:53:06,207 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:06,605 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:06,605 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:06,954 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:06,954 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:07,217 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:07,217 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:07,561 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:07,561 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:07,831 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:07,831 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:08,097 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:08,097 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:08,360 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:08,360 - [124849] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686365 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:08,676 - [124849] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-30 09:53:08,677 - [124849] - src.utils.log - INFO - Work order published ids: (3686365,) - __SPLIT__ 2026-07-30 09:53:08,677 - [124849] - src.utils.log - INFO - Time took to perform operation in publishing [124849]: 30.53 - __SPLIT__ 2026-07-30 09:53:08,677 - [124849] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124849] - __SPLIT__ 2026-07-30 09:53:08,677 - [124849] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-30 05:53:08.677' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124849;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-30 09:53:08,941 - [124849] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:04:55,950 - 12763 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12763 - __SPLIT__ 2026-07-31 08:04:55,951 - 12763 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12763 - __SPLIT__ 2026-07-31 08:04:55,966 - 12763 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 08:04:55,966 - 12763 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:04:58,878 - 12763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:04:58,878 - 12763 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 08:04:58,878 - 12763 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12763;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:04:59,181 - 12763 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:04:59,181 - 12763 - 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 = 12763), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12763), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12763 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:04:59,507 - 12763 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:04:59,508 - 12763 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12763;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:04:59,805 - 12763 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:04:59,806 - 12763 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-31 04:04:59.806' WHERE GenerateWorkOrderHistoryId = 12763;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:05:00,110 - 12763 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:05:00,111 - 12763 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12763 - __SPLIT__ 2026-07-31 08:05:29,107 - 12764 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12764 - __SPLIT__ 2026-07-31 08:05:29,108 - 12764 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12764 - __SPLIT__ 2026-07-31 08:05:29,108 - 12764 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 08:05:29,108 - 12764 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:05:31,186 - 12764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:05:31,186 - 12764 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 08:05:31,187 - 12764 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:05:31,490 - 12764 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:05:31,491 - 12764 - 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 = 12764), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12764), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12764 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:05:31,824 - 12764 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:05:31,824 - 12764 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:05:32,123 - 12764 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:05:32,124 - 12764 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-31 04:05:32.124' WHERE GenerateWorkOrderHistoryId = 12764;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:05:32,419 - 12764 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:05:32,419 - 12764 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12764 - __SPLIT__ 2026-07-31 08:06:01,219 - 12765 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12765 - __SPLIT__ 2026-07-31 08:06:01,221 - 12765 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12765 - __SPLIT__ 2026-07-31 08:06:01,240 - 12765 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 08:06:01,241 - 12765 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:03,936 - 12765 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:06:03,936 - 12765 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 08:06:03,937 - 12765 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12765;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:04,232 - 12765 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:06:04,232 - 12765 - 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 = 12765), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12765), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12765 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:04,558 - 12765 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:06:04,558 - 12765 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12765;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:04,853 - 12765 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:06:04,854 - 12765 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-31 04:06:04.854' WHERE GenerateWorkOrderHistoryId = 12765;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:05,283 - 12765 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:06:05,283 - 12765 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12765 - __SPLIT__ 2026-07-31 08:06:34,623 - 12766 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12766 - __SPLIT__ 2026-07-31 08:06:34,624 - 12766 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12766 - __SPLIT__ 2026-07-31 08:06:34,625 - 12766 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 08:06:34,625 - 12766 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:36,684 - 12766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:06:36,685 - 12766 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 08:06:36,685 - 12766 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12766;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:36,978 - 12766 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:06:36,978 - 12766 - 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 = 12766), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12766), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12766 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:37,304 - 12766 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:06:37,304 - 12766 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12766;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:37,599 - 12766 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:06:37,600 - 12766 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-31 04:06:37.600' WHERE GenerateWorkOrderHistoryId = 12766;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:06:37,892 - 12766 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:06:37,892 - 12766 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12766 - __SPLIT__ 2026-07-31 08:07:30,413 - 12767 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12767 - __SPLIT__ 2026-07-31 08:07:30,414 - 12767 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12767 - __SPLIT__ 2026-07-31 08:07:30,414 - 12767 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 08:07:30,414 - 12767 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:07:32,500 - 12767 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:07:32,500 - 12767 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 08:07:32,500 - 12767 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12767;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:07:32,796 - 12767 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:07:32,796 - 12767 - 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 = 12767), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12767), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12767 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:07:33,125 - 12767 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:07:33,126 - 12767 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12767;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:07:33,424 - 12767 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:07:33,425 - 12767 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-31 04:07:33.425' WHERE GenerateWorkOrderHistoryId = 12767;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:07:33,720 - 12767 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:07:33,720 - 12767 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12767 - __SPLIT__ 2026-07-31 08:08:25,995 - 12768 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12768 - __SPLIT__ 2026-07-31 08:08:25,996 - 12768 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12768 - __SPLIT__ 2026-07-31 08:08:25,997 - 12768 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 08:08:25,997 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:28,060 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:28,060 - 12768 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 08:08:28,060 - 12768 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:28,353 - 12768 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:08:28,353 - 12768 - 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 = 12768), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12768), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12768 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:28,687 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:28,687 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:28,983 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:28,986 - 12768 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-31 08:08:28,987 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:29,679 - 12768 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-31 08:08:29,679 - 12768 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-31 08:08:29,683 - 12768 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-31 08:08:29,683 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:29,980 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:29,981 - 12768 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-31 00:00:00' and ServiceDate <= '2040-03-31 00:00:00' and ServiceSetupId = 34475 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:30,280 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:30,924 - 12768 - src.utils.log - INFO - Generating work orders for setup: 34475 - __SPLIT__ 2026-07-31 08:08:36,255 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1388;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:36,550 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:36,558 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:36,852 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:36,949 - 12768 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-31 08:08:36,960 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:37,254 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:37,257 - 12768 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-31 08:08:37,257 - 12768 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-31 08:08:37,258 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:37,814 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:37,814 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:38,634 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:38,634 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:39,132 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:39,132 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:40,269 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:40,270 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:40,868 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:40,869 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:41,414 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:41,415 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:41,787 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:41,787 - 12768 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34475 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:42,224 - 12768 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 08:08:42,225 - 12768 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 08:08:42,225 - 12768 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 329 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:42,575 - 12768 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 329) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-31 08:08:50,389 - 12768 - src.utils.log - INFO - βœ… All 329 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-31 08:08:50,389 - 12768 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 329 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.733' and ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:50,696 - 12768 - src.utils.log - INFO - βœ… Fetched 329 rows - __SPLIT__ 2026-07-31 08:08:50,697 - 12768 - src.utils.log - INFO - Id's of work order inserted to DB: [2740021 2740022 2740023 2740024 2740025 2740026 2740027 2740028 2740029 2740030 2740031 2740032 2740033 2740034 2740035 2740036 2740037 2740038 2740039 2740040 2740041 2740042 2740043 2740044 2740045 2740046 2740047 2740048 2740049 2740050 2740051 2740052 2740053 2740054 2740055 2740056 2740057 2740058 2740059 2740060 2740061 2740062 2740063 2740064 2740065 2740066 2740067 2740068 2740069 2740070 2740071 2740072 2740073 2740074 2740075 2740076 2740077 2740078 2740079 2740080 2740081 2740082 2740083 2740084 2740085 2740086 2740087 2740088 2740089 2740090 2740091 2740092 2740093 2740094 2740095 2740096 2740097 2740098 2740099 2740100 2740101 2740102 2740103 2740104 2740105 2740106 2740107 2740108 2740109 2740110 2740111 2740112 2740113 2740114 2740115 2740116 2740117 2740118 2740119 2740120 2740121 2740122 2740123 2740124 2740125 2740126 2740127 2740128 2740129 2740130 2740131 2740132 2740133 2740134 2740135 2740136 2740137 2740138 2740139 2740140 2740141 2740142 2740143 2740144 2740145 2740146 2740147 2740148 2740149 2740150 2740151 2740152 2740153 2740154 2740155 2740156 2740157 2740158 2740159 2740160 2740161 2740162 2740163 2740164 2740165 2740166 2740167 2740168 2740169 2740170 2740171 2740172 2740173 2740174 2740175 2740176 2740177 2740178 2740179 2740180 2740181 2740182 2740183 2740184 2740185 2740186 2740187 2740188 2740189 2740190 2740191 2740192 2740193 2740194 2740195 2740196 2740197 2740198 2740199 2740200 2740201 2740202 2740203 2740204 2740205 2740206 2740207 2740208 2740209 2740210 2740211 2740212 2740213 2740214 2740215 2740216 2740217 2740218 2740219 2740220 2740221 2740222 2740223 2740224 2740225 2740226 2740227 2740228 2740229 2740230 2740231 2740232 2740233 2740234 2740235 2740236 2740237 2740238 2740239 2740240 2740241 2740242 2740243 2740244 2740245 2740246 2740247 2740248 2740249 2740250 2740251 2740252 2740253 2740254 2740255 2740256 2740257 2740258 2740259 2740260 2740261 2740262 2740263 2740264 2740265 2740266 2740267 2740268 2740269 2740270 2740271 2740272 2740273 2740274 2740275 2740276 2740277 2740278 2740279 2740280 2740281 2740282 2740283 2740284 2740285 2740286 2740287 2740288 2740289 2740290 2740291 2740292 2740293 2740294 2740295 2740296 2740297 2740298 2740299 2740300 2740301 2740302 2740303 2740304 2740305 2740306 2740307 2740308 2740309 2740310 2740311 2740312 2740313 2740314 2740315 2740316 2740317 2740318 2740319 2740320 2740321 2740322 2740323 2740324 2740325 2740326 2740327 2740328 2740329 2740330 2740331 2740332 2740333 2740334 2740335 2740336 2740337 2740338 2740339 2740340 2740341 2740342 2740343 2740344 2740345 2740346 2740347 2740348 2740349] - __SPLIT__ 2026-07-31 08:08:50,697 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:50,992 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:50,992 - 12768 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-31 08:08:50,992 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:51,290 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:51,290 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:51,586 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:51,593 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:51,892 - 12768 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-31 08:08:51,893 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:52,189 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:52,189 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34475... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:52,485 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:52,486 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:52,781 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:52,781 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:53,151 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:53,151 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:53,796 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:53,796 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34475;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:54,092 - 12768 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,107 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 08:08:54,108 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2740224, 2740225, 2740226, 2740227, 2740228, 2740229, 2740230, 2740231, 2740232, 2740233, 2740234, 2740235, 2740236, 2740237, 2740238, 2740239, 2740240, 2740241, 2740242, 2740243, 2740244, 2740245, 2740246, 2740247, 2740248, 2740249, 2740250, 2740251, 2740252, 2740253, 2740254, 2740255, 2740256, 2740257, 2740258, 2740259, 2740260, 2740261, 2740262, 2740263, 2740264, 2740265, 2740266, 2740267, 2740268, 2740269, 2740270, 2740271, 2740272, 2740273, 2740274, 2740275, 2740276, 2740277, 2740278, 2740279, 2740280, 2740281, 2740282, 2740283, 2740284, 2740285, 2740286, 2740287, 2740288, 2740289, 2740290, 2740291, 2740292, 2740293, 2740294, 2740295, 2740296, 2740297, 2740298, 2740299, 2740300, 2740301, 2740302, 2740303, 2740304, 2740305, 2740306, 2740307, 2740308, 2740309, 2740310, 2740311, 2740312, 2740313, 2740314, 2740315, 2740316, 2740317, 2740318, 2740319, 2740320, 2740321, 2740322, 2740323, 2740324, 2740325, 2740326, 2740327, 2740328, 2740329, 2740330, 2740331, 2740332, 2740333, 2740334, 2740335, 2740336, 2740337, 2740338, 2740339, 2740340, 2740341, 2740342, 2740343, 2740344, 2740345, 2740346, 2740347, 2740348, 2740349, 2740021, 2740022, 2740023, 2740024, 2740025, 2740026, 2740027, 2740028, 2740029, 2740030, 2740031, 2740032, 2740033, 2740034, 2740035, 2740036, 2740037, 2740038, 2740039, 2740040, 2740041, 2740042, 2740043, 2740044, 2740045, 2740046, 2740047, 2740048, 2740049, 2740050, 2740051, 2740052, 2740053, 2740054, 2740055, 2740056, 2740057, 2740058, 2740059, 2740060, 2740061, 2740062, 2740063, 2740064, 2740065, 2740066, 2740067, 2740068, 2740069, 2740070, 2740071, 2740072, 2740073, 2740074, 2740075, 2740076, 2740077, 2740078, 2740079, 2740080, 2740081, 2740082, 2740083, 2740084, 2740085, 2740086, 2740087, 2740088, 2740089, 2740090, 2740091, 2740092, 2740093, 2740094, 2740095, 2740096, 2740097, 2740098, 2740099, 2740100, 2740101, 2740102, 2740103, 2740104, 2740105, 2740106, 2740107, 2740108, 2740109, 2740110, 2740111, 2740112, 2740113, 2740114, 2740115, 2740116, 2740117, 2740118, 2740119, 2740120, 2740121, 2740122, 2740123, 2740124, 2740125, 2740126, 2740127, 2740128, 2740129, 2740130, 2740131, 2740132, 2740133, 2740134, 2740135, 2740136, 2740137, 2740138, 2740139, 2740140, 2740141, 2740142, 2740143, 2740144, 2740145, 2740146, 2740147, 2740148, 2740149, 2740150, 2740151, 2740152, 2740153, 2740154, 2740155, 2740156, 2740157, 2740158, 2740159, 2740160, 2740161, 2740162, 2740163, 2740164, 2740165, 2740166, 2740167, 2740168, 2740169, 2740170, 2740171, 2740172, 2740173, 2740174, 2740175, 2740176, 2740177, 2740178, 2740179, 2740180, 2740181, 2740182, 2740183, 2740184, 2740185, 2740186, 2740187, 2740188, 2740189, 2740190, 2740191, 2740192, 2740193, 2740194, 2740195, 2740196, 2740197, 2740198, 2740199, 2740200, 2740201, 2740202, 2740203, 2740204, 2740205, 2740206, 2740207, 2740208, 2740209, 2740210, 2740211, 2740212, 2740213, 2740214, 2740215, 2740216, 2740217, 2740218, 2740219, 2740220, 2740221, 2740222, 2740223) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:54,419 - 12768 - src.utils.log - INFO - βœ… Fetched 329 rows - __SPLIT__ 2026-07-31 08:08:54,420 - 12768 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 657 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:54,736 - 12768 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 657) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-31 08:08:57,291 - 12768 - src.utils.log - INFO - βœ… All 657 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-31 08:08:57,292 - 12768 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-31 08:08:57,292 - 12768 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 08:08:57,292 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2740021 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:57,586 - 12768 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 08:08:57,587 - 12768 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:57,908 - 12768 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-31 08:08:58,946 - 12768 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-31 08:08:58,947 - 12768 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-31 08:08:58,947 - 12768 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 08:08:58,947 - 12768 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2740224, 2740225, 2740226, 2740227, 2740228, 2740229, 2740230, 2740231, 2740232, 2740233, 2740234, 2740235, 2740236, 2740237, 2740238, 2740239, 2740240, 2740241, 2740242, 2740243, 2740244, 2740245, 2740246, 2740247, 2740248, 2740249, 2740250, 2740251, 2740252, 2740253, 2740254, 2740255, 2740256, 2740257, 2740258, 2740259, 2740260, 2740261, 2740262, 2740263, 2740264, 2740265, 2740266, 2740267, 2740268, 2740269, 2740270, 2740271, 2740272, 2740273, 2740274, 2740275, 2740276, 2740277, 2740278, 2740279, 2740280, 2740281, 2740282, 2740283, 2740284, 2740285, 2740286, 2740287, 2740288, 2740289, 2740290, 2740291, 2740292, 2740293, 2740294, 2740295, 2740296, 2740297, 2740298, 2740299, 2740300, 2740301, 2740302, 2740303, 2740304, 2740305, 2740306, 2740307, 2740308, 2740309, 2740310, 2740311, 2740312, 2740313, 2740314, 2740315, 2740316, 2740317, 2740318, 2740319, 2740320, 2740321, 2740322, 2740323, 2740324, 2740325, 2740326, 2740327, 2740328, 2740329, 2740330, 2740331, 2740332, 2740333, 2740334, 2740335, 2740336, 2740337, 2740338, 2740339, 2740340, 2740341, 2740342, 2740343, 2740344, 2740345, 2740346, 2740347, 2740348, 2740349, 2740022, 2740023, 2740024, 2740025, 2740026, 2740027, 2740028, 2740029, 2740030, 2740031, 2740032, 2740033, 2740034, 2740035, 2740036, 2740037, 2740038, 2740039, 2740040, 2740041, 2740042, 2740043, 2740044, 2740045, 2740046, 2740047, 2740048, 2740049, 2740050, 2740051, 2740052, 2740053, 2740054, 2740055, 2740056, 2740057, 2740058, 2740059, 2740060, 2740061, 2740062, 2740063, 2740064, 2740065, 2740066, 2740067, 2740068, 2740069, 2740070, 2740071, 2740072, 2740073, 2740074, 2740075, 2740076, 2740077, 2740078, 2740079, 2740080, 2740081, 2740082, 2740083, 2740084, 2740085, 2740086, 2740087, 2740088, 2740089, 2740090, 2740091, 2740092, 2740093, 2740094, 2740095, 2740096, 2740097, 2740098, 2740099, 2740100, 2740101, 2740102, 2740103, 2740104, 2740105, 2740106, 2740107, 2740108, 2740109, 2740110, 2740111, 2740112, 2740113, 2740114, 2740115, 2740116, 2740117, 2740118, 2740119, 2740120, 2740121, 2740122, 2740123, 2740124, 2740125, 2740126, 2740127, 2740128, 2740129, 2740130, 2740131, 2740132, 2740133, 2740134, 2740135, 2740136, 2740137, 2740138, 2740139, 2740140, 2740141, 2740142, 2740143, 2740144, 2740145, 2740146, 2740147, 2740148, 2740149, 2740150, 2740151, 2740152, 2740153, 2740154, 2740155, 2740156, 2740157, 2740158, 2740159, 2740160, 2740161, 2740162, 2740163, 2740164, 2740165, 2740166, 2740167, 2740168, 2740169, 2740170, 2740171, 2740172, 2740173, 2740174, 2740175, 2740176, 2740177, 2740178, 2740179, 2740180, 2740181, 2740182, 2740183, 2740184, 2740185, 2740186, 2740187, 2740188, 2740189, 2740190, 2740191, 2740192, 2740193, 2740194, 2740195, 2740196, 2740197, 2740198, 2740199, 2740200, 2740201, 2740202, 2740203, 2740204, 2740205, 2740206, 2740207, 2740208, 2740209, 2740210, 2740211, 2740212, 2740213, 2740214, 2740215, 2740216, 2740217, 2740218, 2740219, 2740220, 2740221, 2740222, 2740223) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:59,257 - 12768 - src.utils.log - INFO - βœ… Fetched 328 rows - __SPLIT__ 2026-07-31 08:08:59,259 - 12768 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 328 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:08:59,561 - 12768 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 328) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-31 08:09:01,645 - 12768 - src.utils.log - INFO - βœ… All 328 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-31 08:09:01,646 - 12768 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-31 08:09:01,646 - 12768 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12768;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 08:09:01,938 - 12768 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 08:09:01,938 - 12768 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-31 08:09:01,938 - 12768 - src.utils.log - INFO - Time took to perform operation: 35.94 - __SPLIT__ 2026-07-31 09:32:48,737 - 124850 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124850 - __SPLIT__ 2026-07-31 09:32:48,738 - 124850 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124850 - __SPLIT__ 2026-07-31 09:32:48,738 - 124850 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 09:32:48,738 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:50,803 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:32:50,803 - 124850 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-31 09:32:50,804 - 124850 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-31 09:32:50,804 - 124850 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-31 09:32:50,804 - 124850 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124850;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:53,168 - 124850 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 09:32:53,168 - 124850 - 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 = 124850), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124850), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124850 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:53,488 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:32:53,488 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124850;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:53,754 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:32:53,757 - 124850 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-31 09:32:53,758 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:54,032 - 124850 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-31 09:32:54,032 - 124850 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-31 09:32:54,036 - 124850 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-31 09:32:54,036 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:54,298 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:32:54,299 - 124850 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-31 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150772 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:54,568 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:32:55,126 - 124850 - src.utils.log - INFO - Generating work orders for setup: 150772 - __SPLIT__ 2026-07-31 09:32:55,265 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:55,527 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:32:55,536 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:55,797 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:32:55,837 - 124850 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-31 09:32:55,842 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:56,105 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:32:56,107 - 124850 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-31 09:32:56,108 - 124850 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-31 09:32:56,108 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:56,439 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:56,439 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:56,774 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:56,774 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:57,042 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:57,043 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:57,372 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:57,373 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:57,704 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:57,704 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:57,981 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:57,982 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:58,247 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:58,247 - 124850 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150772 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:58,659 - 124850 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:32:58,659 - 124850 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:32:58,659 - 124850 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:32:58,982 - 124850 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-31 09:33:00,783 - 124850 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-31 09:33:00,783 - 124850 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 22 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.734' and ServiceSetupId = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:01,112 - 124850 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-31 09:33:01,113 - 124850 - src.utils.log - INFO - Id's of work order inserted to DB: [3686366 3686367 3686368 3686369 3686370 3686371 3686372 3686373 3686374 3686375 3686376 3686377 3686378 3686379 3686380 3686381 3686382 3686383 3686384 3686385 3686386 3686387] - __SPLIT__ 2026-07-31 09:33:01,113 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:01,375 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:01,375 - 124850 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-31 09:33:01,376 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:01,640 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:01,640 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:01,904 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:01,912 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:02,184 - 124850 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-31 09:33:02,185 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:02,447 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:02,448 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:02,717 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:02,717 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:02,981 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:02,981 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:03,244 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:03,244 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:04,046 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:04,046 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:04,309 - 124850 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-31 09:33:04,323 - 124850 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,324 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-31 09:33:04,324 - 124850 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,324 - 124850 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-31 09:33:04,324 - 124850 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-31 09:33:04,324 - 124850 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:04,324 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686366, 3686367, 3686368, 3686369, 3686370, 3686371, 3686372, 3686373, 3686374, 3686375, 3686376, 3686377, 3686378, 3686379, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:04,588 - 124850 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-31 09:33:04,589 - 124850 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:04,878 - 124850 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-31 09:33:05,817 - 124850 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-31 09:33:05,818 - 124850 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-31 09:33:05,818 - 124850 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:05,818 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686366 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:06,080 - 124850 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:06,081 - 124850 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:06,374 - 124850 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-31 09:33:07,373 - 124850 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-31 09:33:07,374 - 124850 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-31 09:33:07,374 - 124850 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:07,374 - 124850 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686367, 3686368, 3686369, 3686370, 3686371, 3686372, 3686373, 3686374, 3686375, 3686376, 3686377, 3686378, 3686379, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:07,637 - 124850 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-31 09:33:07,638 - 124850 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:07,908 - 124850 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-31 09:33:08,856 - 124850 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-31 09:33:08,856 - 124850 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-31 09:33:08,856 - 124850 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124850;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:09,119 - 124850 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 09:33:09,120 - 124850 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-31 09:33:09,120 - 124850 - src.utils.log - INFO - Time took to perform operation: 20.38 - __SPLIT__ 2026-07-31 09:33:38,275 - [124850] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686366, 3686387, 3686386, 3686385, 3686384, 3686382, 3686383, 3686381, 3686380, 3686378] user_id=43135 company_id=133 project_id=[124850] publish_all=False - __SPLIT__ 2026-07-31 09:33:38,276 - [124850] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686366, 3686387, 3686386, 3686385, 3686384, 3686382, 3686383, 3686381, 3686380, 3686378] user_id=43135 company_id=133 project_id=[124850] publish_all=False - __SPLIT__ 2026-07-31 09:33:38,277 - [124850] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124850] - __SPLIT__ 2026-07-31 09:33:38,277 - [124850] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 09:33:38,277 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:40,363 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:40,363 - [124850] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-31 09:33:40,364 - [124850] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-31 09:33:40,364 - [124850] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-31 09:33:40,364 - [124850] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124850;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:42,725 - [124850] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 09:33:42,725 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686366, 3686387, 3686386, 3686385, 3686384, 3686382, 3686383, 3686381, 3686380, 3686378)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:42,993 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:33:42,993 - [124850] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-31 09:33:42,994 - [124850] - 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 = 150772 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:43,268 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:43,268 - [124850] - 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 = 150772 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:43,540 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:43,541 - [124850] - 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 = 150772 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:43,817 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:43,821 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:44,087 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:44,088 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:44,349 - [124850] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-31 09:33:44,350 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:44,615 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:44,616 - [124850] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 10 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:44,891 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:44,892 - [124850] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 10 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:45,158 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:45,163 - [124850] - 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 = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:45,432 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:45,438 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:45,699 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:45,699 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15044' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:45,961 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:45,963 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431176', '1431177', '1431178', '1431179', '1431180', '1431181', '1431182', '1431183', '1431184', '1431185') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:46,234 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:46,235 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:46,662 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-31 09:33:47,940 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-31 09:33:48,071 - [124850] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-31 09:33:48,072 - [124850] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:48,336 - [124850] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 09:33:48,337 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431176', '1431177', '1431178', '1431179', '1431180', '1431181', '1431182', '1431183', '1431184', '1431185') AND wo.AccountNumber = '15044' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-31 09:33:48,608 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:33:48,609 - [124850] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-31 09:33:48,609 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:48,933 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:33:48,933 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:49,200 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:49,200 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:49,501 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:33:49,501 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:49,765 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:49,766 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:50,034 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:50,034 - [124850] - 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 (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:50,339 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:50,339 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:50,603 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:50,604 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:50,867 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:50,870 - [124850] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-31 09:33:50,883 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:51,144 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:51,144 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:51,406 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:51,410 - [124850] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:51,410 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:51,698 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-31 09:33:52,671 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-31 09:33:52,672 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150772 AND WorkOrderNo IN ('345361', '3141334', '9381831', '7988232', '1150615', '8277369', '4383099', '8575630', '8958676', '1060494') AND GenerateWorkOrderHistoryId = 124850;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-31 09:33:53,184 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:33:53,185 - [124850] - src.utils.log - INFO - 🏁 Final merged rows: 10 - __SPLIT__ 2026-07-31 09:33:53,191 - [124850] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-31 09:33:53,191 - [124850] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:53,191 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:53,460 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-31 09:33:54,403 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-31 09:33:54,404 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-31 09:33:54,404 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-31 09:33:54,404 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-31 09:33:54,404 - [124850] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:54,404 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:54,671 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-31 09:33:55,605 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-31 09:33:55,605 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-31 09:33:55,605 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-31 09:33:55,605 - [124850] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:55,605 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:55,876 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-31 09:33:56,816 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-31 09:33:56,816 - [124850] - 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 = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:57,079 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:33:57,086 - [124850] - src.utils.log - INFO - Size of Transaction: 10 - __SPLIT__ 2026-07-31 09:33:57,087 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:57,485 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-31 09:33:58,416 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-31 09:33:58,547 - [124850] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-31 09:33:58,547 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-31 05:33:57.081';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:58,979 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:33:58,982 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:59,244 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:33:59,253 - [124850] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919) AND CreatedDate = '2026-07-31 05:33:57.081'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-31 09:33:59,702 - [124850] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 09:33:59,708 - [124850] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:33:59,708 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:33:59,979 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Invoice - __SPLIT__ 2026-07-31 09:34:00,946 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-31 09:34:00,947 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431176', '1431185', '1431184', '1431183', '1431182', '1431180', '1431181', '1431179', '1431178', '1431177')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:02,339 - [124850] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 09:34:02,349 - [124850] - 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 = 150772 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:02,615 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:34:02,616 - [124850] - 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 = 150772 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:02,882 - [124850] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 09:34:02,882 - [124850] - 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 = 150772 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:03,148 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:34:03,149 - [124850] - 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 = 150772 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:03,414 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:34:03,428 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:03,691 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:34:03,696 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:03,960 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:34:03,963 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:04,228 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:34:04,229 - [124850] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-31 09:34:04,229 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-31 09:34:04,229 - [124850] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 09:34:04,229 - [124850] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:04,500 - [124850] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.InvoiceCharges - __SPLIT__ 2026-07-31 09:34:05,567 - [124850] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-31 09:34:05,567 - [124850] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-31 09:34:05,567 - [124850] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-31 09:34:05,568 - [124850] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-31 09:34:05,568 - [124850] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124850 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:05,832 - [124850] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 09:34:05,839 - [124850] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-31 09:34:05,970 - [124850] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c586c4f018 - __SPLIT__ 2026-07-31 09:34:06,235 - [124850] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c586c4f018 - __SPLIT__ 2026-07-31 09:34:06,496 - [124850] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-31 09:34:06,636 - [124850] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-31 09:34:06,773 - [124850] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_c586c4f018 - __SPLIT__ 2026-07-31 09:34:06,773 - [124850] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c586c4f018 - __SPLIT__ 2026-07-31 09:34:06,773 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124850 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:07,035 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:07,035 - [124850] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-31 09:34:07,036 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:07,474 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:07,474 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:07,844 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:07,844 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:08,111 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:08,111 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:08,477 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:08,477 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:08,748 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:08,748 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:09,016 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:09,016 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:09,280 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:09,280 - [124850] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:10,102 - [124850] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 09:34:10,102 - [124850] - src.utils.log - INFO - Work order published ids: (3686366, 3686378, 3686380, 3686381, 3686382, 3686383, 3686384, 3686385, 3686386, 3686387) - __SPLIT__ 2026-07-31 09:34:10,102 - [124850] - src.utils.log - INFO - Time took to perform operation in publishing [124850]: 31.83 - __SPLIT__ 2026-07-31 09:34:10,102 - [124850] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124850] - __SPLIT__ 2026-07-31 09:34:10,103 - [124850] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-31 05:34:10.102' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124850;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 09:34:10,365 - [124850] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 10:34:32,884 - 12769 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12769 - __SPLIT__ 2026-07-31 10:34:32,885 - 12769 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12769 - __SPLIT__ 2026-07-31 10:34:32,885 - 12769 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-31 10:34:32,885 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:34,962 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:34,963 - 12769 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-31 10:34:34,963 - 12769 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:35,265 - 12769 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 10:34:35,265 - 12769 - 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 = 12769), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12769), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12769 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:35,600 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:35,600 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:35,897 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:35,900 - 12769 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-31 10:34:35,901 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:36,199 - 12769 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-31 10:34:36,200 - 12769 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-31 10:34:36,203 - 12769 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-31 10:34:36,203 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34488;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:36,501 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:36,502 - 12769 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-31 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 34488 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:36,849 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:37,468 - 12769 - src.utils.log - INFO - Generating work orders for setup: 34488 - __SPLIT__ 2026-07-31 10:34:37,537 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:37,835 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:37,842 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1348;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:38,139 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:38,177 - 12769 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-31 10:34:38,183 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:38,479 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:38,481 - 12769 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-31 10:34:38,481 - 12769 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-31 10:34:38,482 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:38,790 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:38,790 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:39,099 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:39,099 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:39,408 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:39,408 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:39,717 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:39,717 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:40,024 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:40,024 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:40,356 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:40,356 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:40,657 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:40,657 - 12769 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34488 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:40,975 - 12769 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-31 10:34:40,975 - 12769 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 10:34:40,975 - 12769 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:41,310 - 12769 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-31 10:34:42,880 - 12769 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-31 10:34:42,881 - 12769 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.733' and ServiceSetupId = 34488... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:43,186 - 12769 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-31 10:34:43,187 - 12769 - src.utils.log - INFO - Id's of work order inserted to DB: [2740350 2740351 2740352 2740353 2740354 2740355 2740356 2740357 2740358 2740359 2740360] - __SPLIT__ 2026-07-31 10:34:43,187 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34488;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:43,484 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:43,484 - 12769 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-31 10:34:43,484 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34488... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:43,788 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:43,789 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34488... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:44,089 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:44,097 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34488... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:44,399 - 12769 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-31 10:34:44,400 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34488... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:44,698 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:44,698 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34488... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:44,996 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:44,997 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34488;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:45,296 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:45,296 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34488;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:45,603 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:45,603 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34488;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:45,949 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:45,949 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34488;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:46,247 - 12769 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-31 10:34:46,260 - 12769 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-31 10:34:46,260 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-31 10:34:46,260 - 12769 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,260 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-31 10:34:46,260 - 12769 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 10:34:46,261 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2740352, 2740353, 2740354, 2740355, 2740356, 2740357, 2740358, 2740359, 2740360, 2740350, 2740351) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:46,559 - 12769 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-07-31 10:34:46,560 - 12769 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:46,861 - 12769 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-31 10:34:47,914 - 12769 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-31 10:34:47,915 - 12769 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-31 10:34:47,915 - 12769 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 10:34:47,915 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2740350 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:48,210 - 12769 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-31 10:34:48,211 - 12769 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:48,515 - 12769 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-31 10:34:49,559 - 12769 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-31 10:34:49,560 - 12769 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-31 10:34:49,560 - 12769 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-31 10:34:49,560 - 12769 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2740352, 2740353, 2740354, 2740355, 2740356, 2740357, 2740358, 2740359, 2740360, 2740351) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:49,858 - 12769 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-07-31 10:34:49,859 - 12769 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:50,163 - 12769 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-31 10:34:51,220 - 12769 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-31 10:34:51,220 - 12769 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-31 10:34:51,221 - 12769 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12769;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-31 10:34:51,516 - 12769 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-31 10:34:51,516 - 12769 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-31 10:34:51,517 - 12769 - src.utils.log - INFO - Time took to perform operation: 18.63 - __SPLIT__ 2026-08-03 05:52:05,457 - [124851] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686388, 3686408, 3686407, 3686406, 3686405, 3686403, 3686404, 3686402, 3686401, 3686399] user_id=43135 company_id=133 project_id=[124851] publish_all=False - __SPLIT__ 2026-08-03 05:52:05,687 - [124851] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686388, 3686408, 3686407, 3686406, 3686405, 3686403, 3686404, 3686402, 3686401, 3686399] user_id=43135 company_id=133 project_id=[124851] publish_all=False - __SPLIT__ 2026-08-03 05:52:05,754 - [124851] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124851] - __SPLIT__ 2026-08-03 05:52:05,858 - [124851] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-03 05:52:05,933 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:07,977 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:08,045 - [124851] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-03 05:52:08,108 - [124851] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-03 05:52:08,172 - [124851] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-03 05:52:08,236 - [124851] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124851;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:10,261 - [124851] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 05:52:10,335 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686388, 3686408, 3686407, 3686406, 3686405, 3686403, 3686404, 3686402, 3686401, 3686399)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:10,690 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:10,757 - [124851] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-03 05:52:10,822 - [124851] - 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 = 150773 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:11,179 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:11,246 - [124851] - 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 = 150773 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:11,608 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:11,679 - [124851] - 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 = 150773 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:12,040 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:12,165 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:12,524 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:12,593 - [124851] - 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-08-03 05:52:12,945 - [124851] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 05:52:13,017 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:13,372 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:13,439 - [124851] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 10 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:13,798 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:13,860 - [124851] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 10 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:14,211 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:14,279 - [124851] - 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 = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:14,632 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:14,705 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:15,057 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:15,129 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15045' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:15,479 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:15,554 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431196', '1431197', '1431198', '1431199', '1431200', '1431201', '1431202', '1431203', '1431204', '1431205') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:15,911 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:15,978 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:16,524 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-03 05:52:18,106 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 05:52:18,313 - [124851] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 05:52:18,376 - [124851] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:18,731 - [124851] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 05:52:18,798 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431196', '1431197', '1431198', '1431199', '1431200', '1431201', '1431202', '1431203', '1431204', '1431205') AND wo.AccountNumber = '15045' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-08-03 05:52:19,158 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:19,227 - [124851] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-03 05:52:19,295 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:20,178 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:20,249 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:20,603 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:20,674 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:21,225 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:21,291 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:21,643 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:21,711 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:22,086 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:22,152 - [124851] - 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 (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:22,825 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:22,895 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:23,295 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:23,360 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:23,710 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:23,784 - [124851] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-03 05:52:23,867 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:24,221 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:24,294 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:24,647 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:24,725 - [124851] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 05:52:24,796 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:25,197 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-03 05:52:26,446 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-03 05:52:26,518 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150773 AND WorkOrderNo IN ('278536', '2472819', '8816630', '9492370', '1858678', '5959764', '9828491', '3634797', '6166176', '8912575') AND GenerateWorkOrderHistoryId = 124851;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-08-03 05:52:27,136 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:27,201 - [124851] - src.utils.log - INFO - 🏁 Final merged rows: 10 - __SPLIT__ 2026-08-03 05:52:27,271 - [124851] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-03 05:52:27,339 - [124851] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 05:52:27,408 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:27,784 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-03 05:52:28,860 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-03 05:52:28,974 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-03 05:52:29,041 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-03 05:52:29,106 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-03 05:52:29,171 - [124851] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 05:52:29,228 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:29,605 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-03 05:52:30,662 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-03 05:52:30,726 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-03 05:52:30,794 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-03 05:52:30,855 - [124851] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 05:52:30,909 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:31,280 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-03 05:52:32,362 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-03 05:52:32,426 - [124851] - 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 = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:32,771 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:32,840 - [124851] - src.utils.log - INFO - Size of Transaction: 10 - __SPLIT__ 2026-08-03 05:52:32,903 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:33,415 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-03 05:52:34,484 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 05:52:34,691 - [124851] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 05:52:34,807 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-03 01:52:32.835';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:41,930 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:42,054 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:42,400 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:42,482 - [124851] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919) AND CreatedDate = '2026-08-03 01:52:32.835'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-08-03 05:52:43,020 - [124851] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 05:52:43,096 - [124851] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 05:52:43,163 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:43,545 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Invoice - __SPLIT__ 2026-08-03 05:52:44,660 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-03 05:52:44,733 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431196', '1431205', '1431204', '1431203', '1431202', '1431200', '1431201', '1431199', '1431198', '1431197')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:46,240 - [124851] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-08-03 05:52:46,322 - [124851] - 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 = 150773 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:46,670 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:46,735 - [124851] - 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 = 150773 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:47,084 - [124851] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 05:52:47,150 - [124851] - 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 = 150773 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:47,500 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:47,569 - [124851] - 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 = 150773 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:47,921 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:48,002 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:48,359 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:48,484 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:48,826 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:48,901 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:49,247 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:49,317 - [124851] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-03 05:52:49,381 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-03 05:52:49,448 - [124851] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 05:52:49,512 - [124851] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:49,891 - [124851] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.InvoiceCharges - __SPLIT__ 2026-08-03 05:52:51,094 - [124851] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-03 05:52:51,159 - [124851] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-03 05:52:51,225 - [124851] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-03 05:52:51,295 - [124851] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-03 05:52:51,363 - [124851] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124851 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:51,727 - [124851] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 05:52:51,799 - [124851] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-03 05:52:52,007 - [124851] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0bb83bf39f - __SPLIT__ 2026-08-03 05:52:52,352 - [124851] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0bb83bf39f - __SPLIT__ 2026-08-03 05:52:52,692 - [124851] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-03 05:52:52,911 - [124851] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-03 05:52:53,208 - [124851] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0bb83bf39f - __SPLIT__ 2026-08-03 05:52:53,278 - [124851] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0bb83bf39f - __SPLIT__ 2026-08-03 05:52:53,348 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124851 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:53,694 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:53,767 - [124851] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-03 05:52:53,832 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:54,354 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:54,425 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:54,895 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:54,981 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:55,331 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:55,399 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:55,857 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:55,926 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:56,289 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:56,358 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:56,717 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:56,806 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:57,166 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:57,231 - [124851] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:58,124 - [124851] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 05:52:58,192 - [124851] - src.utils.log - INFO - Work order published ids: (3686388, 3686399, 3686401, 3686402, 3686403, 3686404, 3686405, 3686406, 3686407, 3686408) - __SPLIT__ 2026-08-03 05:52:58,262 - [124851] - src.utils.log - INFO - Time took to perform operation in publishing [124851]: 52.4 - __SPLIT__ 2026-08-03 05:52:58,333 - [124851] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124851] - __SPLIT__ 2026-08-03 05:52:58,399 - [124851] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-03 01:52:58.192' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124851;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 05:52:58,755 - [124851] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 06:57:53,791 - [124852] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686409, 3686410] user_id=43135 company_id=133 project_id=[124852] publish_all=False - __SPLIT__ 2026-08-03 06:57:53,905 - [124852] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686409, 3686410] user_id=43135 company_id=133 project_id=[124852] publish_all=False - __SPLIT__ 2026-08-03 06:57:53,969 - [124852] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124852] - __SPLIT__ 2026-08-03 06:57:54,033 - [124852] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-03 06:57:54,097 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:57:56,107 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:57:56,177 - [124852] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-03 06:57:56,245 - [124852] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-03 06:57:56,313 - [124852] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-03 06:57:56,383 - [124852] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124852;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:57:58,453 - [124852] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 06:57:58,525 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:57:58,873 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:57:58,936 - [124852] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-03 06:57:58,993 - [124852] - 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 = 150772 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:57:59,356 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:57:59,417 - [124852] - 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 = 150772 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:57:59,780 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:57:59,845 - [124852] - 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 = 150772 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:00,208 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:00,282 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:00,691 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:00,769 - [124852] - 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-08-03 06:58:01,124 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:01,196 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:01,555 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:01,624 - [124852] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:01,984 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:02,047 - [124852] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:02,402 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:02,480 - [124852] - 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 = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:02,840 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:02,920 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:03,279 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:03,356 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15044' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:03,713 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:03,786 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431219', '1431220') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:04,153 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:04,226 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:04,784 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-03 06:58:05,903 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 06:58:06,156 - [124852] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 06:58:06,224 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431219', '1431220') AND wo.AccountNumber = '15044' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-08-03 06:58:06,580 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:06,641 - [124852] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-03 06:58:06,705 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:07,099 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:07,157 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:07,507 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:07,571 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:07,948 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:08,010 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:08,359 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:08,419 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:08,771 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:08,830 - [124852] - 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 (3686409, 3686410)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:09,210 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:09,272 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686409, 3686410) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:09,642 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:09,707 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686409, 3686410);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:10,058 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:10,181 - [124852] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-03 06:58:10,267 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:10,621 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:10,691 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:11,046 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:11,118 - [124852] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 06:58:11,186 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:11,564 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-03 06:58:12,672 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-03 06:58:12,741 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150772 AND WorkOrderNo IN ('4175442', '9471712') AND GenerateWorkOrderHistoryId = 124852;... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-08-03 06:58:13,345 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:13,415 - [124852] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-03 06:58:13,487 - [124852] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-03 06:58:13,558 - [124852] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 06:58:13,630 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:13,997 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-03 06:58:15,086 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-03 06:58:15,163 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-03 06:58:15,229 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-03 06:58:15,302 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-03 06:58:15,412 - [124852] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 06:58:15,478 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:15,838 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-03 06:58:16,931 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-03 06:58:16,992 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-03 06:58:17,063 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-03 06:58:17,130 - [124852] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 06:58:17,197 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:17,546 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-03 06:58:18,627 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-03 06:58:18,691 - [124852] - 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 = 150772... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:19,047 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:19,123 - [124852] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-08-03 06:58:19,188 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:19,686 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-03 06:58:20,762 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 06:58:20,974 - [124852] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 06:58:21,040 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-03 02:58:19.118';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:21,561 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:21,633 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:22,037 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:22,126 - [124852] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-08-03 02:58:19.118'; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-08-03 06:58:22,618 - [124852] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 06:58:22,697 - [124852] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 06:58:22,771 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:23,138 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-08-03 06:58:24,232 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-03 06:58:24,303 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431220', '1431219')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:25,416 - [124852] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 06:58:25,504 - [124852] - 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 = 150772 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:25,863 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:25,936 - [124852] - 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 = 150772 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:26,295 - [124852] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 06:58:26,367 - [124852] - 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 = 150772 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:26,735 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:26,814 - [124852] - 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 = 150772 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:27,171 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:27,251 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:27,607 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:27,683 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:28,092 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:28,162 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150772;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:28,521 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:28,595 - [124852] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-03 06:58:28,672 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-03 06:58:28,738 - [124852] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 06:58:28,811 - [124852] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:29,173 - [124852] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-08-03 06:58:30,252 - [124852] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-03 06:58:30,322 - [124852] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-03 06:58:30,390 - [124852] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-03 06:58:30,457 - [124852] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-03 06:58:30,526 - [124852] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124852 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:30,890 - [124852] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 06:58:30,961 - [124852] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-03 06:58:31,178 - [124852] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_4ba9a36766 - __SPLIT__ 2026-08-03 06:58:31,532 - [124852] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_4ba9a36766 - __SPLIT__ 2026-08-03 06:58:31,885 - [124852] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-03 06:58:32,100 - [124852] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-03 06:58:32,315 - [124852] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_4ba9a36766 - __SPLIT__ 2026-08-03 06:58:32,426 - [124852] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_4ba9a36766 - __SPLIT__ 2026-08-03 06:58:32,497 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124852 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:32,848 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:32,923 - [124852] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-03 06:58:32,993 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:33,506 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:33,570 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:34,019 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:34,087 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:34,439 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:34,511 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:34,973 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:35,057 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:35,419 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:35,494 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:35,856 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:35,927 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:36,282 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:36,354 - [124852] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686409, 3686410) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:36,823 - [124852] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 06:58:36,943 - [124852] - src.utils.log - INFO - Work order published ids: (3686409, 3686410) - __SPLIT__ 2026-08-03 06:58:37,013 - [124852] - src.utils.log - INFO - Time took to perform operation in publishing [124852]: 42.98 - __SPLIT__ 2026-08-03 06:58:37,082 - [124852] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124852] - __SPLIT__ 2026-08-03 06:58:37,148 - [124852] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-03 02:58:36.943' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124852;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 06:58:37,502 - [124852] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 07:07:17,852 - 124853 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124853 - __SPLIT__ 2026-08-03 07:07:17,971 - 124853 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124853 - __SPLIT__ 2026-08-03 07:07:18,045 - 124853 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-03 07:07:18,122 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:20,216 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:20,283 - 124853 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-03 07:07:20,355 - 124853 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-03 07:07:20,420 - 124853 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-03 07:07:20,493 - 124853 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:22,562 - 124853 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 07:07:22,623 - 124853 - 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 = 124853), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124853), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124853 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:23,022 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:23,107 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:23,460 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:23,531 - 124853 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-03 07:07:23,600 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:23,961 - 124853 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-08-03 07:07:24,024 - 124853 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-03 07:07:24,092 - 124853 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-08-03 07:07:24,158 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:24,521 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:24,645 - 124853 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-03 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150773 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:25,006 - 124853 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-08-03 07:07:25,669 - 124853 - src.utils.log - INFO - Generating work orders for setup: 150773 - __SPLIT__ 2026-08-03 07:07:26,063 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:26,415 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:26,533 - 124853 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-08-03 07:07:26,610 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:26,961 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:27,025 - 124853 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-08-03 07:07:27,095 - 124853 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-08-03 07:07:27,163 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:27,615 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:27,675 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:28,111 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:28,180 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:28,535 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:28,604 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:29,052 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:29,117 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:29,533 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:29,657 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:30,021 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:30,094 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:30,445 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:30,520 - 124853 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150773 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:31,555 - 124853 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:07:31,628 - 124853 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:07:31,707 - 124853 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:32,104 - 124853 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-08-03 07:07:34,502 - 124853 - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-08-03 07:07:34,573 - 124853 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 33 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.733' and ServiceSetupId = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:34,989 - 124853 - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-08-03 07:07:35,067 - 124853 - src.utils.log - INFO - Id's of work order inserted to DB: [3686443 3686444 3686445 3686446 3686447 3686448 3686449 3686450 3686451 3686452 3686453 3686454 3686455 3686456 3686457 3686458 3686459 3686460 3686461 3686462 3686463 3686464 3686465 3686466 3686467 3686468 3686469 3686470 3686471 3686472 3686473 3686474 3686475] - __SPLIT__ 2026-08-03 07:07:35,137 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:35,496 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:35,565 - 124853 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-08-03 07:07:35,637 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:35,992 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:36,057 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:36,415 - 124853 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:07:36,526 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:36,879 - 124853 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:07:36,938 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:37,286 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:37,347 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:37,695 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:37,762 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:38,103 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:38,168 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:38,510 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:38,571 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:39,045 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:39,112 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:39,457 - 124853 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:07:39,537 - 124853 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-08-03 07:07:39,602 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-03 07:07:39,667 - 124853 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-08-03 07:07:39,735 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-08-03 07:07:39,796 - 124853 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-08-03 07:07:39,863 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-08-03 07:07:39,971 - 124853 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-08-03 07:07:40,028 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-03 07:07:40,088 - 124853 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-08-03 07:07:40,153 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-08-03 07:07:40,216 - 124853 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-03 07:07:40,287 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-08-03 07:07:40,341 - 124853 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-03 07:07:40,409 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-08-03 07:07:40,473 - 124853 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-08-03 07:07:40,536 - 124853 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:07:40,600 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686443, 3686444, 3686445, 3686446, 3686447, 3686448, 3686449, 3686450, 3686451, 3686452, 3686453, 3686454, 3686455, 3686456, 3686457, 3686458, 3686459, 3686460, 3686461, 3686462, 3686463, 3686464, 3686465, 3686466, 3686467, 3686468, 3686469, 3686470, 3686471, 3686472, 3686473, 3686474, 3686475) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:40,944 - 124853 - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-08-03 07:07:41,004 - 124853 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:41,352 - 124853 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-08-03 07:07:42,592 - 124853 - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-08-03 07:07:42,653 - 124853 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-08-03 07:07:42,714 - 124853 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-08-03 07:07:42,780 - 124853 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-03 07:07:42,846 - 124853 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:07:42,914 - 124853 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686443, 3686444, 3686445, 3686446, 3686447, 3686448, 3686449, 3686450, 3686451, 3686452, 3686453, 3686454, 3686455, 3686456, 3686457, 3686458, 3686459, 3686460, 3686461, 3686462, 3686463, 3686464, 3686465, 3686466, 3686467, 3686468, 3686469, 3686470, 3686471, 3686472, 3686473, 3686474, 3686475) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:43,303 - 124853 - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-08-03 07:07:43,369 - 124853 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:43,729 - 124853 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-03 07:07:44,979 - 124853 - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-03 07:07:45,040 - 124853 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-03 07:07:45,113 - 124853 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:07:45,474 - 124853 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 07:07:45,530 - 124853 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-08-03 07:07:45,592 - 124853 - src.utils.log - INFO - Time took to perform operation: 27.49 - __SPLIT__ 2026-08-03 07:08:07,396 - [124853] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686443, 3686444] user_id=43135 company_id=133 project_id=[124853] publish_all=False - __SPLIT__ 2026-08-03 07:08:07,504 - [124853] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686443, 3686444] user_id=43135 company_id=133 project_id=[124853] publish_all=False - __SPLIT__ 2026-08-03 07:08:07,568 - [124853] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124853] - __SPLIT__ 2026-08-03 07:08:07,634 - [124853] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-03 07:08:07,700 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:09,841 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:09,909 - [124853] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-03 07:08:09,976 - [124853] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-03 07:08:10,043 - [124853] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-03 07:08:10,113 - [124853] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:12,101 - [124853] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 07:08:12,161 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:12,501 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:12,565 - [124853] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-03 07:08:12,630 - [124853] - 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 = 150773 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:12,967 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:13,033 - [124853] - 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 = 150773 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:13,369 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:13,435 - [124853] - 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 = 150773 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:13,771 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:13,836 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:14,226 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:14,294 - [124853] - 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-08-03 07:08:14,639 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:14,709 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:15,045 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:15,118 - [124853] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:15,461 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:15,528 - [124853] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:15,871 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:15,938 - [124853] - 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 = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:16,284 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:16,353 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:16,695 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:16,763 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15045' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:17,107 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:17,182 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431223', '1431224') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:17,528 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:17,594 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:18,105 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-03 07:08:19,184 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 07:08:19,434 - [124853] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 07:08:19,496 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431223', '1431224') AND wo.AccountNumber = '15045' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-08-03 07:08:19,840 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:19,905 - [124853] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-03 07:08:19,959 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:20,348 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:20,417 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:20,761 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:20,823 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:21,185 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:21,249 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:21,591 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:21,658 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:22,003 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:22,075 - [124853] - 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 (3686443, 3686444)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:22,474 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:22,536 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686443, 3686444) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:22,879 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:22,945 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686443, 3686444);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:23,284 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:23,398 - [124853] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-03 07:08:23,474 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:23,809 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:23,869 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:24,214 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:24,282 - [124853] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:08:24,355 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:24,715 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-03 07:08:25,755 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-03 07:08:25,813 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150773 AND WorkOrderNo IN ('7055804', '8355553') AND GenerateWorkOrderHistoryId = 124853;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-08-03 07:08:26,383 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:26,444 - [124853] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-03 07:08:26,533 - [124853] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-03 07:08:26,596 - [124853] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:08:26,660 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:27,003 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-03 07:08:28,032 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-03 07:08:28,098 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-03 07:08:28,161 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-03 07:08:28,229 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-03 07:08:28,346 - [124853] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:08:28,416 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:28,761 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-03 07:08:29,796 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-03 07:08:29,859 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-03 07:08:29,929 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-03 07:08:29,998 - [124853] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:08:30,068 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:30,410 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-03 07:08:31,441 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-03 07:08:31,506 - [124853] - 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 = 150773... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:31,839 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:31,913 - [124853] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-08-03 07:08:31,973 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:32,457 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-03 07:08:33,492 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 07:08:33,693 - [124853] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 07:08:33,763 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-03 03:08:31.909';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:34,268 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:34,335 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:34,730 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:34,808 - [124853] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-08-03 03:08:31.909'; ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-08-03 07:08:35,284 - [124853] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 07:08:35,353 - [124853] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:08:35,421 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:35,774 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-08-03 07:08:36,802 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-03 07:08:36,873 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431224', '1431223')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:37,955 - [124853] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 07:08:38,033 - [124853] - 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 = 150773 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:38,376 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:38,443 - [124853] - 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 = 150773 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:38,781 - [124853] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 07:08:38,850 - [124853] - 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 = 150773 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:39,199 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:39,270 - [124853] - 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 = 150773 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:39,608 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:39,706 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:40,054 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:40,129 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:40,502 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:40,563 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:40,888 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:40,950 - [124853] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-03 07:08:41,008 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-03 07:08:41,059 - [124853] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 07:08:41,121 - [124853] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:41,461 - [124853] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-08-03 07:08:42,481 - [124853] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-03 07:08:42,535 - [124853] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-03 07:08:42,587 - [124853] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-03 07:08:42,641 - [124853] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-03 07:08:42,699 - [124853] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124853 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:43,033 - [124853] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 07:08:43,097 - [124853] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-03 07:08:43,290 - [124853] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_5fefdc954c - __SPLIT__ 2026-08-03 07:08:43,629 - [124853] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_5fefdc954c - __SPLIT__ 2026-08-03 07:08:43,960 - [124853] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-03 07:08:44,164 - [124853] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-03 07:08:44,365 - [124853] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_5fefdc954c - __SPLIT__ 2026-08-03 07:08:44,487 - [124853] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_5fefdc954c - __SPLIT__ 2026-08-03 07:08:44,556 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124853 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:44,901 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:44,975 - [124853] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-03 07:08:45,049 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:45,555 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:45,625 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:46,074 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:46,154 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:46,504 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:46,575 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:47,010 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:47,080 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:47,433 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:47,505 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:47,858 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:47,929 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:48,276 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:48,348 - [124853] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686443, 3686444) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:48,802 - [124853] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 07:08:48,920 - [124853] - src.utils.log - INFO - Work order published ids: (3686443, 3686444) - __SPLIT__ 2026-08-03 07:08:48,984 - [124853] - src.utils.log - INFO - Time took to perform operation in publishing [124853]: 41.35 - __SPLIT__ 2026-08-03 07:08:49,057 - [124853] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124853] - __SPLIT__ 2026-08-03 07:08:49,126 - [124853] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-03 03:08:48.920' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124853;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 07:08:49,459 - [124853] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:43:34,217 - [124854] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491] user_id=43135 company_id=133 project_id=[124854] publish_all=False - __SPLIT__ 2026-08-03 09:43:34,358 - [124854] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491] user_id=43135 company_id=133 project_id=[124854] publish_all=False - __SPLIT__ 2026-08-03 09:43:34,430 - [124854] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124854] - __SPLIT__ 2026-08-03 09:43:34,513 - [124854] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-03 09:43:34,582 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:36,737 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:36,807 - [124854] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-03 09:43:36,879 - [124854] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-03 09:43:36,953 - [124854] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-03 09:43:37,026 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:39,033 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:43:39,107 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:39,469 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:43:39,536 - [124854] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-03 09:43:39,607 - [124854] - 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 = 150774 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:39,972 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:40,053 - [124854] - 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 = 150774 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:40,413 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:40,483 - [124854] - 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 = 150774 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:40,842 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:40,922 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:41,317 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:41,392 - [124854] - 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-08-03 09:43:41,731 - [124854] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-03 09:43:41,802 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:42,139 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:42,212 - [124854] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 16 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:42,566 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:42,636 - [124854] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 16 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:42,987 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:43,058 - [124854] - 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 = 150774... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:43,410 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:43,488 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:43,856 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:43,932 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15000' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:44,284 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:44,357 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431230', '1431231', '1431232', '1431233', '1431234', '1431235', '1431236', '1431237', '1431238', '1431239', '1431240', '1431241', '1431242', '1431243', '1431244', '1431245') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:44,707 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:44,779 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:45,302 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-03 09:43:46,943 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 09:43:47,198 - [124854] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 09:43:47,262 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150774;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:47,607 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:43:47,682 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431230', '1431231', '1431232', '1431233', '1431234', '1431235', '1431236', '1431237', '1431238', '1431239', '1431240', '1431241', '1431242', '1431243', '1431244', '1431245') AND wo.AccountNumber = '15000' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-08-03 09:43:48,036 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:43:48,111 - [124854] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-03 09:43:48,189 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:48,636 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:43:48,707 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:49,332 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:43:49,400 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:49,807 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:49,876 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:50,224 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:50,293 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:50,650 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:50,720 - [124854] - 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 (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:51,120 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:51,191 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:51,542 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:51,657 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:51,998 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:43:52,069 - [124854] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-03 09:43:52,158 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:52,498 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:52,567 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:52,913 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:43:52,975 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '23006' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:53,325 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:43:53,395 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:43:53,461 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:53,834 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-03 09:43:55,184 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-03 09:43:55,252 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150774 AND WorkOrderNo IN ('5216264', '9703834', '4651945', '8833622', '3813475', '4001525', '3553717', '8947128', '1250310', '9256873', '1957818', '3020819', '1440987', '4031383', '9395305', '9726055') AND GenerateWorkOrderHistoryId = 124854;... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-08-03 09:43:55,894 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:43:55,959 - [124854] - src.utils.log - INFO - 🏁 Final merged rows: 16 - __SPLIT__ 2026-08-03 09:43:56,028 - [124854] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-03 09:43:56,089 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:43:56,151 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:56,497 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-03 09:43:57,753 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-03 09:43:57,854 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-03 09:43:57,930 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-03 09:43:58,000 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-03 09:43:58,073 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-08-03 09:43:58,165 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-03 09:43:58,235 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-03 09:43:58,310 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:43:58,377 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:43:58,747 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-03 09:43:59,951 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-03 09:44:00,027 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:44:00,108 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:00,506 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-08-03 09:44:02,343 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-08-03 09:44:02,410 - [124854] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2161517, 2161518, 2161519, 2161520, 2161521, 2161522, 2161523, 2161524, 2161525, 2161526, 2161527, 2161528, 2161529, 2161530, 2161531, 2161532)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:03,097 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:44:03,181 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:44:03,256 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:03,637 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-08-03 09:44:04,784 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-08-03 09:44:04,857 - [124854] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230590, 230605, 230604, 230603, 230602, 230600, 230601, 230599, 230598, 230596, 230595, 230594, 230597, 230592, 230593, 230591) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006', '1000000007', '1000000008', '1000000009', '1000000010', '1000000011', '1000000012', '1000000013', '1000000014')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:05,208 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:44:05,283 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006', '1000000007', '1000000008', '1000000009', '1000000010', '1000000011', '1000000012', '1000000013', '1000000014'); ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-08-03 09:44:05,737 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:44:05,809 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:44:05,873 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:06,382 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-08-03 09:44:07,870 - [124854] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-08-03 09:44:07,937 - [124854] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192811, 192812, 192813, 192814, 192815, 192816, 192817, 192818, 192819, 192820, 192821, 192822, 192823, 192824, 192825, 192826)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:08,293 - [124854] - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-08-03 09:44:08,367 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192811', '1___TMP___192811', '0___TMP___192812', '1___TMP___192812', '0___TMP___192813', '1___TMP___192813', '0___TMP___192814', '1___TMP___192814', '0___TMP___192815', '1___TMP___192815', '0___TMP___192816', '1___TMP___192816', '0___TMP___192817', '1___TMP___192817', '0___TMP___192818', '1___TMP___192818', '0___TMP___192819', '1___TMP___192819', '0___TMP___192820', '1___TMP___192820', '0___TMP___192821', '1___TMP___192821', '0___TMP___192822', '1___TMP___192822', '0___TMP___192823', '1___TMP___192823', '0___TMP___192824', '1___TMP___192824', '0___TMP___192825', '1___TMP___192825', '0___TMP___192826', '1___TMP___192826') AND CreatedDate = '2026-08-03 05:44:03.179'; ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-08-03 09:44:08,795 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:44:08,873 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:44:08,943 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 64 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:09,346 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 64) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-08-03 09:44:10,688 - [124854] - src.utils.log - INFO - βœ… All 64 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-08-03 09:44:10,766 - [124854] - 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 = 150774... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:11,116 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:44:11,196 - [124854] - src.utils.log - INFO - Size of Transaction: 16 - __SPLIT__ 2026-08-03 09:44:11,320 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:11,813 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-03 09:44:12,884 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-03 09:44:13,088 - [124854] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-03 09:44:13,162 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-03 05:44:11.191';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:13,666 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:44:13,741 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150774;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:14,085 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:44:14,168 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925) AND CreatedDate = '2026-08-03 05:44:11.191'; ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-08-03 09:44:14,628 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-03 09:44:14,730 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:44:14,798 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:15,156 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into Billing.Invoice - __SPLIT__ 2026-08-03 09:44:16,443 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-03 09:44:16,515 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431230', '1431245', '1431244', '1431243', '1431242', '1431240', '1431241', '1431239', '1431238', '1431236', '1431235', '1431234', '1431237', '1431232', '1431233', '1431231')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:18,543 - [124854] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-08-03 09:44:18,620 - [124854] - 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 = 150774 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:18,968 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:44:19,041 - [124854] - 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 = 150774 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:19,391 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:44:19,504 - [124854] - 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 = 150774 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:19,841 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:44:19,902 - [124854] - 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 = 150774 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:20,245 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:44:20,321 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150774;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:20,662 - [124854] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-03 09:44:20,729 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150774;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:21,075 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:44:21,139 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150774;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:21,483 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:44:21,550 - [124854] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-03 09:44:21,616 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-03 09:44:21,674 - [124854] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-03 09:44:21,740 - [124854] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:22,088 - [124854] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into Billing.InvoiceCharges - __SPLIT__ 2026-08-03 09:44:23,282 - [124854] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-03 09:44:23,347 - [124854] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-03 09:44:23,411 - [124854] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-03 09:44:23,477 - [124854] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-03 09:44:23,544 - [124854] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124854 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:23,928 - [124854] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-03 09:44:24,003 - [124854] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-03 09:44:24,202 - [124854] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6a9f41db8e - __SPLIT__ 2026-08-03 09:44:24,550 - [124854] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_6a9f41db8e - __SPLIT__ 2026-08-03 09:44:24,896 - [124854] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-03 09:44:25,108 - [124854] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-03 09:44:25,316 - [124854] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_6a9f41db8e - __SPLIT__ 2026-08-03 09:44:25,386 - [124854] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6a9f41db8e - __SPLIT__ 2026-08-03 09:44:25,456 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124854 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:25,795 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:25,858 - [124854] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-03 09:44:25,924 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:26,473 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:26,538 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:27,043 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:27,103 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:27,441 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:27,504 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:27,966 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:28,035 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:28,445 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:28,513 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:28,864 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:28,937 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:29,287 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:29,354 - [124854] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:30,700 - [124854] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-03 09:44:30,772 - [124854] - src.utils.log - INFO - Work order published ids: (3686476, 3686477, 3686478, 3686479, 3686480, 3686481, 3686482, 3686483, 3686484, 3686485, 3686486, 3686487, 3686488, 3686489, 3686490, 3686491) - __SPLIT__ 2026-08-03 09:44:30,843 - [124854] - src.utils.log - INFO - Time took to perform operation in publishing [124854]: 56.33 - __SPLIT__ 2026-08-03 09:44:30,912 - [124854] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124854] - __SPLIT__ 2026-08-03 09:44:30,982 - [124854] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-03 05:44:30.772' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124854;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-03 09:44:31,333 - [124854] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:00:01,247 - 124855 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124855 - __SPLIT__ 2026-08-04 06:00:01,371 - 124855 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124855 - __SPLIT__ 2026-08-04 06:00:01,436 - 124855 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 06:00:01,499 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:03,875 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:03,930 - 124855 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 06:00:03,985 - 124855 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 06:00:04,047 - 124855 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 06:00:04,100 - 124855 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124855;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:06,180 - 124855 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:00:06,239 - 124855 - 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 = 124855), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124855), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124855 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:06,642 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:06,700 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124855;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:07,045 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:07,103 - 124855 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-04 06:00:07,167 - 124855 - 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 = 14642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:07,519 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:07,571 - 124855 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-04 06:00:07,620 - 124855 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-08-04 06:00:07,676 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:08,017 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:08,129 - 124855 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-04 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150775 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:08,560 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:09,213 - 124855 - src.utils.log - INFO - Generating work orders for setup: 150775 - __SPLIT__ 2026-08-04 06:00:09,288 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:09,639 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:09,717 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:10,059 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:10,164 - 124855 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-08-04 06:00:10,239 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:10,586 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:10,657 - 124855 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-08-04 06:00:10,728 - 124855 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-08-04 06:00:10,815 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:11,221 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:11,291 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:11,694 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:11,759 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:12,121 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:12,184 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:12,586 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:12,693 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:13,108 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:13,171 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:13,540 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:13,621 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:13,985 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:14,049 - 124855 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150775 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:14,581 - 124855 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:00:14,651 - 124855 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:00:14,717 - 124855 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:15,129 - 124855 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-08-04 06:00:16,267 - 124855 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 06:00:16,340 - 124855 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.733' and ServiceSetupId = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:16,752 - 124855 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:00:16,814 - 124855 - src.utils.log - INFO - Id's of work order inserted to DB: [3686492 3686493] - __SPLIT__ 2026-08-04 06:00:16,878 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:17,222 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:17,290 - 124855 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-08-04 06:00:17,353 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:17,703 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:17,818 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:18,168 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:18,245 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:18,611 - 124855 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:00:18,683 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:19,039 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:19,108 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:19,461 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:19,526 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:19,880 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:19,956 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:20,311 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:20,378 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:21,298 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:21,364 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:21,716 - 124855 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:21,799 - 124855 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-08-04 06:00:21,864 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 06:00:21,931 - 124855 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-08-04 06:00:21,991 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-08-04 06:00:22,111 - 124855 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-08-04 06:00:22,180 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-08-04 06:00:22,259 - 124855 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-08-04 06:00:22,325 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-04 06:00:22,397 - 124855 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-08-04 06:00:22,467 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-08-04 06:00:22,539 - 124855 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-04 06:00:22,604 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-08-04 06:00:22,678 - 124855 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-04 06:00:22,743 - 124855 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-08-04 06:00:22,814 - 124855 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-08-04 06:00:22,885 - 124855 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:00:22,958 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686492, 3686493) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:23,303 - 124855 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:00:23,374 - 124855 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:23,760 - 124855 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-08-04 06:00:24,833 - 124855 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-08-04 06:00:24,903 - 124855 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-08-04 06:00:24,967 - 124855 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:00:25,040 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686492 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:25,444 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:25,505 - 124855 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:25,886 - 124855 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-04 06:00:26,960 - 124855 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-04 06:00:27,020 - 124855 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-04 06:00:27,084 - 124855 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:00:27,145 - 124855 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686493 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:27,491 - 124855 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:27,558 - 124855 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:27,916 - 124855 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-04 06:00:29,065 - 124855 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-04 06:00:29,138 - 124855 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-04 06:00:29,200 - 124855 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124855;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:29,548 - 124855 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:00:29,611 - 124855 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-08-04 06:00:29,673 - 124855 - src.utils.log - INFO - Time took to perform operation: 28.17 - __SPLIT__ 2026-08-04 06:00:46,434 - [124855] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686492, 3686493] user_id=43135 company_id=133 project_id=[124855] publish_all=False - __SPLIT__ 2026-08-04 06:00:46,649 - [124855] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686492, 3686493] user_id=43135 company_id=133 project_id=[124855] publish_all=False - __SPLIT__ 2026-08-04 06:00:46,714 - [124855] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124855] - __SPLIT__ 2026-08-04 06:00:46,792 - [124855] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 06:00:46,860 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:49,592 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:49,658 - [124855] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 06:00:49,722 - [124855] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 06:00:49,788 - [124855] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 06:00:49,848 - [124855] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124855;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:52,326 - [124855] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:00:52,391 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:52,719 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:00:52,772 - [124855] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-04 06:00:52,835 - [124855] - 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 = 150775 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:53,174 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:53,237 - [124855] - 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 = 150775 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:53,578 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:53,651 - [124855] - 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 = 150775 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:53,987 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:54,099 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:54,436 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:54,532 - [124855] - 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-08-04 06:00:54,860 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:00:54,918 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:55,244 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:55,305 - [124855] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:55,641 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:55,780 - [124855] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:56,115 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:56,185 - [124855] - 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 = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:56,520 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:56,581 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:56,909 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:56,977 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15046' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:57,298 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:00:57,367 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431246', '1431247') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:57,714 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:00:57,769 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:00:58,283 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-04 06:00:59,488 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 06:00:59,686 - [124855] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 06:00:59,774 - [124855] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:00,110 - [124855] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:01:00,192 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431246', '1431247') AND wo.AccountNumber = '15046' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-08-04 06:01:00,533 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:01:00,599 - [124855] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-04 06:01:00,666 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:01,112 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:01:01,187 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:01,538 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:01,618 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:02,030 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:01:02,107 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:02,442 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:02,514 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:02,865 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:02,937 - [124855] - 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 (3686492, 3686493)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:03,619 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:03,684 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686492, 3686493) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:04,068 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:04,140 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686492, 3686493);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:04,472 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:04,543 - [124855] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-04 06:01:04,620 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:04,944 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:01:05,005 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:05,331 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:01:05,405 - [124855] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:01:05,470 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:05,849 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-04 06:01:06,882 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-04 06:01:06,949 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150775 AND WorkOrderNo IN ('119067', '8734236') AND GenerateWorkOrderHistoryId = 124855;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-08-04 06:01:09,052 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:01:09,123 - [124855] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-04 06:01:09,200 - [124855] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-04 06:01:09,269 - [124855] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:01:09,338 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:09,705 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-04 06:01:10,783 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-04 06:01:10,902 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-04 06:01:10,962 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-04 06:01:11,029 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-04 06:01:11,097 - [124855] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:01:11,161 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:11,516 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-04 06:01:12,534 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-04 06:01:12,599 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-04 06:01:12,668 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 06:01:12,729 - [124855] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:01:12,795 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:13,157 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-04 06:01:14,166 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-04 06:01:14,233 - [124855] - 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 = 150775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:14,550 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:01:14,621 - [124855] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-08-04 06:01:14,688 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:15,175 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-04 06:01:16,257 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 06:01:16,455 - [124855] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 06:01:16,575 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-04 02:01:14.616';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:22,093 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:01:22,171 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:22,501 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:22,591 - [124855] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-08-04 02:01:14.616'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-08-04 06:01:23,134 - [124855] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:01:23,217 - [124855] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:01:23,300 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:23,677 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-08-04 06:01:24,769 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-04 06:01:24,841 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431246', '1431247')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:26,177 - [124855] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:01:26,256 - [124855] - 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 = 150775 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:26,596 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:01:26,668 - [124855] - 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 = 150775 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:27,005 - [124855] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:01:27,077 - [124855] - 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 = 150775 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:27,416 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:27,487 - [124855] - 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 = 150775 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:27,821 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:27,953 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:28,287 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:28,359 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:28,693 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:28,768 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150775;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:29,095 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:29,162 - [124855] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-04 06:01:29,237 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-04 06:01:29,334 - [124855] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:01:29,403 - [124855] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:29,766 - [124855] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-08-04 06:01:30,817 - [124855] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-04 06:01:30,897 - [124855] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-04 06:01:30,960 - [124855] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-04 06:01:31,029 - [124855] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-04 06:01:31,101 - [124855] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124855 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:31,442 - [124855] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:01:31,513 - [124855] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-04 06:01:31,706 - [124855] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_b1bd1eeb2c - __SPLIT__ 2026-08-04 06:01:32,036 - [124855] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_b1bd1eeb2c - __SPLIT__ 2026-08-04 06:01:32,413 - [124855] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-04 06:01:32,622 - [124855] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-04 06:01:32,825 - [124855] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_b1bd1eeb2c - __SPLIT__ 2026-08-04 06:01:32,895 - [124855] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_b1bd1eeb2c - __SPLIT__ 2026-08-04 06:01:32,963 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124855 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:33,304 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:33,373 - [124855] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-04 06:01:33,443 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:33,983 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:34,050 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:34,509 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:34,581 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:34,907 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:34,980 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:35,428 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:35,497 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:35,831 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:35,907 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:36,252 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:36,324 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:36,704 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:36,765 - [124855] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686492, 3686493) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:37,200 - [124855] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:01:37,296 - [124855] - src.utils.log - INFO - Work order published ids: (3686492, 3686493) - __SPLIT__ 2026-08-04 06:01:37,356 - [124855] - src.utils.log - INFO - Time took to perform operation in publishing [124855]: 50.58 - __SPLIT__ 2026-08-04 06:01:37,419 - [124855] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124855] - __SPLIT__ 2026-08-04 06:01:37,490 - [124855] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-04 02:01:37.296' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124855;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:01:37,819 - [124855] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:45:27,768 - 124856 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124856 - __SPLIT__ 2026-08-04 06:45:27,987 - 124856 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124856 - __SPLIT__ 2026-08-04 06:45:28,065 - 124856 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 06:45:28,142 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:31,045 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:31,110 - 124856 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 06:45:31,187 - 124856 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 06:45:31,257 - 124856 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 06:45:31,328 - 124856 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124856;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:33,773 - 124856 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:45:33,843 - 124856 - 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 = 124856), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124856), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124856 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:34,233 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:34,309 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124856;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:34,648 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:34,726 - 124856 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-04 06:45:34,788 - 124856 - 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 = 14642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:35,127 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:35,189 - 124856 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-04 06:45:35,258 - 124856 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-08-04 06:45:35,344 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:35,729 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:35,797 - 124856 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-04 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150776 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:36,138 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:36,757 - 124856 - src.utils.log - INFO - Generating work orders for setup: 150776 - __SPLIT__ 2026-08-04 06:45:36,842 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:37,172 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:37,254 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:37,583 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:37,684 - 124856 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-08-04 06:45:37,824 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:38,151 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:38,216 - 124856 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-08-04 06:45:38,273 - 124856 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-08-04 06:45:38,334 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:38,726 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:38,791 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:39,167 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:39,237 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:39,580 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:39,641 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:40,067 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:40,128 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:40,509 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:40,576 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:40,925 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:40,987 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:41,316 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:41,389 - 124856 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150776 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:41,869 - 124856 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:45:41,938 - 124856 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:45:42,008 - 124856 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:42,382 - 124856 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-08-04 06:45:43,397 - 124856 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 06:45:43,467 - 124856 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.735' and ServiceSetupId = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:43,844 - 124856 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:45:43,911 - 124856 - src.utils.log - INFO - Id's of work order inserted to DB: [3686494 3686495] - __SPLIT__ 2026-08-04 06:45:43,972 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:44,304 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:44,368 - 124856 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-08-04 06:45:44,440 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:44,815 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:44,882 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:45,211 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:45,283 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:45,619 - 124856 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:45:45,688 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:46,020 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:46,092 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:46,425 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:46,492 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:46,823 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:46,896 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:47,225 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:47,302 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:47,762 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:47,834 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:48,167 - 124856 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:45:48,249 - 124856 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-08-04 06:45:48,307 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 06:45:48,370 - 124856 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-08-04 06:45:48,491 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-08-04 06:45:48,564 - 124856 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-08-04 06:45:48,632 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-08-04 06:45:48,699 - 124856 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-08-04 06:45:48,770 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-04 06:45:48,841 - 124856 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-08-04 06:45:48,917 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-08-04 06:45:48,986 - 124856 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-04 06:45:49,056 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-08-04 06:45:49,124 - 124856 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-04 06:45:49,251 - 124856 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-08-04 06:45:49,321 - 124856 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-08-04 06:45:49,390 - 124856 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:45:49,464 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686494, 3686495) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:49,799 - 124856 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:45:49,875 - 124856 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:50,211 - 124856 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-08-04 06:45:51,208 - 124856 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-08-04 06:45:51,280 - 124856 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-08-04 06:45:51,348 - 124856 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:45:51,463 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686494 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:51,795 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:51,871 - 124856 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:52,217 - 124856 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-04 06:45:53,218 - 124856 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-04 06:45:53,286 - 124856 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-04 06:45:53,355 - 124856 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:45:53,430 - 124856 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686495 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:53,764 - 124856 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:45:53,832 - 124856 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:54,181 - 124856 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-04 06:45:55,176 - 124856 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-04 06:45:55,248 - 124856 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-04 06:45:55,322 - 124856 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124856;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:45:55,660 - 124856 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:45:55,736 - 124856 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-08-04 06:45:55,808 - 124856 - src.utils.log - INFO - Time took to perform operation: 27.68 - __SPLIT__ 2026-08-04 06:46:22,844 - [124856] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686494, 3686495] user_id=43135 company_id=133 project_id=[124856] publish_all=False - __SPLIT__ 2026-08-04 06:46:22,958 - [124856] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686494, 3686495] user_id=43135 company_id=133 project_id=[124856] publish_all=False - __SPLIT__ 2026-08-04 06:46:23,028 - [124856] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124856] - __SPLIT__ 2026-08-04 06:46:23,102 - [124856] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 06:46:23,172 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:25,399 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:25,467 - [124856] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 06:46:25,536 - [124856] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 06:46:25,602 - [124856] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 06:46:25,663 - [124856] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124856;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:27,569 - [124856] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:46:27,632 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:27,967 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:28,031 - [124856] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-04 06:46:28,104 - [124856] - 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 = 150776 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:28,489 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:28,563 - [124856] - 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 = 150776 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:28,899 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:28,967 - [124856] - 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 = 150776 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:29,317 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:29,383 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:29,757 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:29,825 - [124856] - 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-08-04 06:46:30,156 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:30,219 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:30,542 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:30,609 - [124856] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:30,935 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:31,007 - [124856] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:31,336 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:31,405 - [124856] - 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 = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:31,746 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:31,819 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:32,143 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:32,208 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15047' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:32,546 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:32,613 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431249', '1431250') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:32,946 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:33,014 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:33,506 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-04 06:46:34,512 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 06:46:34,763 - [124856] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 06:46:34,830 - [124856] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:35,167 - [124856] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:46:35,235 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431249', '1431250') AND wo.AccountNumber = '15047' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-08-04 06:46:35,570 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:35,642 - [124856] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-04 06:46:35,709 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:36,086 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:36,156 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:36,485 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:36,550 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:36,904 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:36,971 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:37,303 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:37,368 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:37,702 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:37,773 - [124856] - 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 (3686494, 3686495)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:38,134 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:38,196 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686494, 3686495) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:38,521 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:38,631 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686494, 3686495);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:38,960 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:39,041 - [124856] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-04 06:46:39,120 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:39,460 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:39,532 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:39,858 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:39,937 - [124856] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:46:40,012 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:40,371 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-04 06:46:41,375 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-04 06:46:41,454 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150776 AND WorkOrderNo IN ('986880', '8894149') AND GenerateWorkOrderHistoryId = 124856;... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-08-04 06:46:42,020 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:42,090 - [124856] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-04 06:46:42,169 - [124856] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-04 06:46:42,243 - [124856] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:46:42,315 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:42,652 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-04 06:46:43,640 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-04 06:46:43,720 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-04 06:46:43,832 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-04 06:46:43,898 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-04 06:46:43,966 - [124856] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:46:44,042 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:44,380 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-04 06:46:45,371 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-04 06:46:45,436 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-04 06:46:45,510 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 06:46:45,578 - [124856] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:46:45,644 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:45,982 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-04 06:46:46,977 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-04 06:46:47,050 - [124856] - 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 = 150776... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:47,377 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:47,449 - [124856] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-08-04 06:46:47,523 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:47,994 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-04 06:46:48,984 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 06:46:49,178 - [124856] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 06:46:49,241 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-04 02:46:47.444';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:49,775 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:49,841 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:50,161 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:50,236 - [124856] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-08-04 02:46:47.444'; ... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-08-04 06:46:50,682 - [124856] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:46:50,758 - [124856] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:46:50,823 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:51,161 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-08-04 06:46:52,152 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-04 06:46:52,223 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431249', '1431250')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:53,263 - [124856] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:46:53,335 - [124856] - 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 = 150776 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:53,663 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:53,729 - [124856] - 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 = 150776 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:54,061 - [124856] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:46:54,124 - [124856] - 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 = 150776 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:54,455 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:54,529 - [124856] - 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 = 150776 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:54,855 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:54,927 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:55,308 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:55,387 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:55,724 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:55,804 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150776;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:56,142 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:56,220 - [124856] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-04 06:46:56,291 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-04 06:46:56,367 - [124856] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:46:56,442 - [124856] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:56,783 - [124856] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-08-04 06:46:57,783 - [124856] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-04 06:46:57,852 - [124856] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-04 06:46:57,927 - [124856] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-04 06:46:57,998 - [124856] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-04 06:46:58,066 - [124856] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124856 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:46:58,398 - [124856] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:46:58,476 - [124856] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-04 06:46:58,679 - [124856] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c2f524e0aa - __SPLIT__ 2026-08-04 06:46:59,014 - [124856] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c2f524e0aa - __SPLIT__ 2026-08-04 06:46:59,355 - [124856] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-04 06:46:59,599 - [124856] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-04 06:46:59,786 - [124856] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_c2f524e0aa - __SPLIT__ 2026-08-04 06:46:59,843 - [124856] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c2f524e0aa - __SPLIT__ 2026-08-04 06:46:59,904 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124856 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:00,225 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:00,282 - [124856] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-04 06:47:00,341 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:00,814 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:00,873 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:01,323 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:01,384 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:01,707 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:01,762 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:02,174 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:02,235 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:02,566 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:02,622 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:02,944 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:03,004 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:03,333 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:03,456 - [124856] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686494, 3686495) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:03,895 - [124856] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:47:03,967 - [124856] - src.utils.log - INFO - Work order published ids: (3686494, 3686495) - __SPLIT__ 2026-08-04 06:47:04,034 - [124856] - src.utils.log - INFO - Time took to perform operation in publishing [124856]: 40.93 - __SPLIT__ 2026-08-04 06:47:04,104 - [124856] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124856] - __SPLIT__ 2026-08-04 06:47:04,167 - [124856] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-04 02:47:03.967' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124856;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:47:04,502 - [124856] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:56:28,969 - 124857 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124857 - __SPLIT__ 2026-08-04 06:56:29,088 - 124857 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124857 - __SPLIT__ 2026-08-04 06:56:29,165 - 124857 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 06:56:29,230 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:31,380 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:31,450 - 124857 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 06:56:31,518 - 124857 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 06:56:31,583 - 124857 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 06:56:31,648 - 124857 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:33,578 - 124857 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:56:33,649 - 124857 - 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 = 124857), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124857), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124857 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:34,036 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:34,095 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:34,431 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:34,510 - 124857 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-04 06:56:34,584 - 124857 - 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 = 14642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:34,932 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:35,002 - 124857 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-04 06:56:35,072 - 124857 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-08-04 06:56:35,136 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:35,472 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:35,607 - 124857 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-04 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 150777 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:35,963 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:36,606 - 124857 - src.utils.log - INFO - Generating work orders for setup: 150777 - __SPLIT__ 2026-08-04 06:56:36,686 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11426;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:37,014 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:37,092 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:37,426 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:37,539 - 124857 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-08-04 06:56:37,614 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:37,946 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:38,016 - 124857 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-08-04 06:56:38,079 - 124857 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-08-04 06:56:38,151 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:38,528 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:38,602 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:38,999 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:39,071 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:39,406 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:39,487 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:39,882 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:39,988 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:40,369 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:40,427 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:40,771 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:40,832 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:41,168 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:41,229 - 124857 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150777 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:41,780 - 124857 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:56:41,840 - 124857 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:56:41,903 - 124857 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:42,272 - 124857 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-08-04 06:56:43,287 - 124857 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 06:56:43,351 - 124857 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.733' and ServiceSetupId = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:43,729 - 124857 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:56:43,790 - 124857 - src.utils.log - INFO - Id's of work order inserted to DB: [3686496 3686497] - __SPLIT__ 2026-08-04 06:56:43,855 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:44,187 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:44,258 - 124857 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-08-04 06:56:44,323 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:44,658 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:44,762 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:45,094 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:45,173 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:45,515 - 124857 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:56:45,585 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:45,918 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:45,982 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:46,318 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:46,387 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:46,726 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:46,784 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:47,116 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:47,179 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:47,618 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:47,688 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:48,015 - 124857 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:56:48,087 - 124857 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-08-04 06:56:48,150 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 06:56:48,220 - 124857 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-08-04 06:56:48,288 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-08-04 06:56:48,403 - 124857 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-08-04 06:56:48,468 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-08-04 06:56:48,536 - 124857 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-08-04 06:56:48,606 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-04 06:56:48,672 - 124857 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-08-04 06:56:48,737 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-08-04 06:56:48,800 - 124857 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-04 06:56:48,868 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-08-04 06:56:48,925 - 124857 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-04 06:56:48,991 - 124857 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-08-04 06:56:49,054 - 124857 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-08-04 06:56:49,125 - 124857 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:56:49,194 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3686496, 3686497) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:49,524 - 124857 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:56:49,584 - 124857 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:49,916 - 124857 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-08-04 06:56:50,916 - 124857 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-08-04 06:56:50,983 - 124857 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-08-04 06:56:51,052 - 124857 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:56:51,118 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686496 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:51,495 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:51,555 - 124857 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:51,890 - 124857 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-04 06:56:52,892 - 124857 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-04 06:56:52,953 - 124857 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-04 06:56:53,025 - 124857 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:56:53,091 - 124857 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3686497 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:53,420 - 124857 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:56:53,490 - 124857 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:53,830 - 124857 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-04 06:56:54,831 - 124857 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-04 06:56:54,899 - 124857 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-04 06:56:54,962 - 124857 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:56:55,295 - 124857 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:56:55,365 - 124857 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-08-04 06:56:55,434 - 124857 - src.utils.log - INFO - Time took to perform operation: 26.2 - __SPLIT__ 2026-08-04 06:57:05,005 - [124857] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686496, 3686497] user_id=43135 company_id=133 project_id=[124857] publish_all=False - __SPLIT__ 2026-08-04 06:57:05,121 - [124857] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686496, 3686497] user_id=43135 company_id=133 project_id=[124857] publish_all=False - __SPLIT__ 2026-08-04 06:57:05,184 - [124857] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124857] - __SPLIT__ 2026-08-04 06:57:05,260 - [124857] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 06:57:05,328 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:07,452 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:07,522 - [124857] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 06:57:07,592 - [124857] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 06:57:07,667 - [124857] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 06:57:07,730 - [124857] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:09,644 - [124857] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:57:09,708 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:10,049 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:10,118 - [124857] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-04 06:57:10,190 - [124857] - 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 = 150777 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:10,535 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:10,598 - [124857] - 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 = 150777 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:10,938 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:11,000 - [124857] - 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 = 150777 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:11,347 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:11,412 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:11,792 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:11,883 - [124857] - 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-08-04 06:57:12,214 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:12,293 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:12,629 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:12,700 - [124857] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:13,042 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:13,114 - [124857] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:13,449 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:13,527 - [124857] - 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 = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:13,864 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:13,934 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:14,262 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:14,336 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15048' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:14,671 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:14,738 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431251', '1431252') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:15,083 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:15,156 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:15,650 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-04 06:57:16,677 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 06:57:16,927 - [124857] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 06:57:16,994 - [124857] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:17,329 - [124857] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:57:17,397 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431251', '1431252') AND wo.AccountNumber = '15048' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-08-04 06:57:17,734 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:17,803 - [124857] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-04 06:57:17,873 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:18,248 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:18,315 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:18,651 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:18,716 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:19,077 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:19,172 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:19,507 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:19,575 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:19,907 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:19,982 - [124857] - 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 (3686496, 3686497)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:20,341 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:20,413 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686496, 3686497) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:20,739 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:20,860 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686496, 3686497);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:21,198 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:21,264 - [124857] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-04 06:57:21,346 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:21,678 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:21,748 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:22,080 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:22,148 - [124857] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:57:22,218 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:22,575 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-04 06:57:23,579 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-04 06:57:23,650 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150777 AND WorkOrderNo IN ('273718', '3059709') AND GenerateWorkOrderHistoryId = 124857;... (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-08-04 06:57:24,187 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:24,256 - [124857] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-04 06:57:24,328 - [124857] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-04 06:57:24,402 - [124857] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:57:24,468 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:24,804 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-04 06:57:25,799 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-04 06:57:25,869 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-04 06:57:25,987 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-04 06:57:26,055 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-04 06:57:26,124 - [124857] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:57:26,195 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:26,531 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-04 06:57:27,525 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-04 06:57:27,588 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-04 06:57:27,652 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 06:57:27,712 - [124857] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:57:27,777 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:28,111 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-04 06:57:29,108 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-04 06:57:29,175 - [124857] - 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 = 150777... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:29,499 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:29,572 - [124857] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-08-04 06:57:29,639 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:30,104 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-04 06:57:31,105 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 06:57:31,297 - [124857] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 06:57:31,365 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-04 02:57:29.568';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:31,901 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:31,981 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:32,317 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:32,395 - [124857] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-08-04 02:57:29.568'; ... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-08-04 06:57:32,836 - [124857] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 06:57:32,911 - [124857] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:57:32,984 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:33,326 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-08-04 06:57:34,325 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-04 06:57:34,395 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431251', '1431252')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:35,500 - [124857] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 06:57:35,569 - [124857] - 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 = 150777 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:35,905 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:35,980 - [124857] - 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 = 150777 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:36,315 - [124857] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 06:57:36,391 - [124857] - 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 = 150777 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:36,730 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:36,805 - [124857] - 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 = 150777 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:37,148 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:37,227 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:37,607 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:37,686 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:38,018 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:38,088 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150777;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:38,416 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:38,489 - [124857] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-04 06:57:38,557 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-04 06:57:38,621 - [124857] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 06:57:38,688 - [124857] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:39,040 - [124857] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-08-04 06:57:40,041 - [124857] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-04 06:57:40,110 - [124857] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-04 06:57:40,181 - [124857] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-04 06:57:40,255 - [124857] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-04 06:57:40,316 - [124857] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124857 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:40,654 - [124857] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 06:57:40,736 - [124857] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-04 06:57:40,934 - [124857] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_77c437e6b3 - __SPLIT__ 2026-08-04 06:57:41,265 - [124857] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_77c437e6b3 - __SPLIT__ 2026-08-04 06:57:41,601 - [124857] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-04 06:57:41,853 - [124857] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-04 06:57:42,050 - [124857] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_77c437e6b3 - __SPLIT__ 2026-08-04 06:57:42,113 - [124857] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_77c437e6b3 - __SPLIT__ 2026-08-04 06:57:42,179 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124857 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:42,511 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:42,573 - [124857] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-04 06:57:42,633 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:43,119 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:43,187 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:43,618 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:43,687 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:44,018 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:44,085 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:44,518 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:44,592 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:44,928 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:44,995 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:45,333 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:45,395 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:45,762 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:45,880 - [124857] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686496, 3686497) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:46,301 - [124857] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 06:57:46,364 - [124857] - src.utils.log - INFO - Work order published ids: (3686496, 3686497) - __SPLIT__ 2026-08-04 06:57:46,445 - [124857] - src.utils.log - INFO - Time took to perform operation in publishing [124857]: 41.19 - __SPLIT__ 2026-08-04 06:57:46,505 - [124857] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124857] - __SPLIT__ 2026-08-04 06:57:46,571 - [124857] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-04 02:57:46.364' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124857;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 06:57:46,901 - [124857] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 07:05:11,555 - [124858] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686498, 3686499] user_id=43135 company_id=133 project_id=[124858] publish_all=False - __SPLIT__ 2026-08-04 07:05:11,675 - [124858] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686498, 3686499] user_id=43135 company_id=133 project_id=[124858] publish_all=False - __SPLIT__ 2026-08-04 07:05:11,747 - [124858] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124858] - __SPLIT__ 2026-08-04 07:05:11,819 - [124858] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 07:05:11,883 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:14,029 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:14,105 - [124858] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 07:05:14,178 - [124858] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 07:05:14,249 - [124858] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 07:05:14,320 - [124858] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124858;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:16,215 - [124858] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 07:05:16,292 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:16,663 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:16,731 - [124858] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-04 07:05:16,807 - [124858] - 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 = 150778 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:17,161 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:17,234 - [124858] - 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 = 150778 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:17,572 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:17,643 - [124858] - 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 = 150778 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:17,993 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:18,071 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:18,451 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:18,513 - [124858] - 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-08-04 07:05:18,837 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:18,942 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:19,266 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:19,334 - [124858] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:19,668 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:19,732 - [124858] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:20,055 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:20,126 - [124858] - 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 = 150778... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:20,450 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:20,515 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:20,835 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:20,905 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15049' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:21,230 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:21,292 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431253', '1431254') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:21,629 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:21,697 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:22,181 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-04 07:05:23,223 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 07:05:23,475 - [124858] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 07:05:23,548 - [124858] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:23,881 - [124858] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 07:05:23,953 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431253', '1431254') AND wo.AccountNumber = '15049' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-08-04 07:05:24,293 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:24,357 - [124858] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-04 07:05:24,435 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:24,809 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:24,879 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:25,208 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:25,274 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:25,633 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:25,700 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:26,033 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:26,104 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:26,437 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:26,505 - [124858] - 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 (3686498, 3686499)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:26,864 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:26,942 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686498, 3686499) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:27,274 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:27,386 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686498, 3686499);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:27,721 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:27,794 - [124858] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-04 07:05:27,882 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:28,213 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:28,283 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:28,616 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:28,694 - [124858] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 07:05:28,763 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:29,113 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-04 07:05:30,110 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-04 07:05:30,179 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150778 AND WorkOrderNo IN ('833102', '9624956') AND GenerateWorkOrderHistoryId = 124858;... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-08-04 07:05:30,715 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:30,787 - [124858] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-04 07:05:30,860 - [124858] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-04 07:05:30,930 - [124858] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 07:05:31,004 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:31,340 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-04 07:05:32,333 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-04 07:05:32,399 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-04 07:05:32,524 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-04 07:05:32,594 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-04 07:05:32,663 - [124858] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 07:05:32,733 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:33,074 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-04 07:05:34,070 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-04 07:05:34,148 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-04 07:05:34,220 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-04 07:05:34,290 - [124858] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 07:05:34,362 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:34,702 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-04 07:05:35,693 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-04 07:05:35,760 - [124858] - 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 = 150778... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:36,089 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:36,168 - [124858] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-08-04 07:05:36,242 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:36,715 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-04 07:05:37,705 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 07:05:37,905 - [124858] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 07:05:37,972 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-04 03:05:36.163';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:38,509 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:38,576 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:38,907 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:38,990 - [124858] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-08-04 03:05:36.163'; ... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-08-04 07:05:39,435 - [124858] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 07:05:39,504 - [124858] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 07:05:39,573 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:39,906 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-08-04 07:05:40,899 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-04 07:05:40,960 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1431253', '1431254')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:42,004 - [124858] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-04 07:05:42,085 - [124858] - 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 = 150778 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:42,417 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:42,484 - [124858] - 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 = 150778 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:42,814 - [124858] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 07:05:42,883 - [124858] - 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 = 150778 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:43,212 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:43,286 - [124858] - 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 = 150778 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:43,611 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:43,692 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:44,071 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:44,150 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:44,484 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:44,563 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150778;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:44,891 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:44,959 - [124858] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-04 07:05:45,023 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-04 07:05:45,098 - [124858] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 07:05:45,171 - [124858] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:45,510 - [124858] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-08-04 07:05:46,496 - [124858] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-04 07:05:46,559 - [124858] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-04 07:05:46,621 - [124858] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-04 07:05:46,686 - [124858] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-04 07:05:46,745 - [124858] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124858 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:47,079 - [124858] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 07:05:47,148 - [124858] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-04 07:05:47,349 - [124858] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_483128c01e - __SPLIT__ 2026-08-04 07:05:47,680 - [124858] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_483128c01e - __SPLIT__ 2026-08-04 07:05:48,009 - [124858] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-04 07:05:48,254 - [124858] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-04 07:05:48,450 - [124858] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_483128c01e - __SPLIT__ 2026-08-04 07:05:48,516 - [124858] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_483128c01e - __SPLIT__ 2026-08-04 07:05:48,584 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124858 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:48,947 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:49,012 - [124858] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-04 07:05:49,075 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:49,555 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:49,617 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:50,057 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:50,126 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:50,468 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:50,531 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:50,960 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:51,022 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:51,357 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:51,420 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:51,747 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:51,814 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:52,148 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:52,263 - [124858] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686498, 3686499) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:52,685 - [124858] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 07:05:52,749 - [124858] - src.utils.log - INFO - Work order published ids: (3686498, 3686499) - __SPLIT__ 2026-08-04 07:05:52,820 - [124858] - src.utils.log - INFO - Time took to perform operation in publishing [124858]: 41.0 - __SPLIT__ 2026-08-04 07:05:52,886 - [124858] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124858] - __SPLIT__ 2026-08-04 07:05:52,951 - [124858] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-04 03:05:52.749' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124858;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 07:05:53,280 - [124858] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:48:27,178 - 42503 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42503 - __SPLIT__ 2026-08-04 18:48:27,330 - 42503 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 18:48:27,401 - 42503 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:29,517 - 42503 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:48:29,596 - 42503 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 18:48:29,661 - 42503 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 18:48:29,726 - 42503 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 18:48:29,793 - 42503 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42503 - __SPLIT__ 2026-08-04 18:48:29,856 - 42503 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42503;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:31,874 - 42503 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:48:31,932 - 42503 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42503;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:32,274 - 42503 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:48:32,333 - 42503 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '15051' and ss.ServiceSetupId = 150779 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:32,682 - 42503 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:48:32,756 - 42503 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-08-04 18:48:32,818 - 42503 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-04 18:48:32,883 - 42503 - 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 = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:33,233 - 42503 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-08-04 18:48:33,292 - 42503 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-04 18:48:33,363 - 42503 - src.utils.log - INFO - SetupId: 150779, FrequencyScheduleId: 13966 - __SPLIT__ 2026-08-04 18:48:33,427 - 42503 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150779 AND TransactionDate BETWEEN '2026-08-01 00:00:00' AND '2026-08-03 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:33,817 - 42503 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 18:48:33,889 - 42503 - 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-08-01 00:00:00' AND '2026-08-03 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150779 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:34,253 - 42503 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 18:48:34,329 - 42503 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Failed', InvoiceGenErrorInfo ='No Invoices with selected filters', InvoiceStatusDateTime = '2026-08-04 14:48:34.329' WHERE GenerateInvoiceHistoryId = 42503;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:48:34,696 - 42503 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:48:34,782 - 42503 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 18:48:34,844 - 42503 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:42503 - Time took: 7.51 - Error:Columns must be same length as key - __SPLIT__ 2026-08-04 18:51:55,763 - [42504] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[703634] user_id=43135 company_id=133 project_id=[42504] publish_all=False - __SPLIT__ 2026-08-04 18:51:55,891 - [42504] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-08-04 18:51:55,962 - [42504] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-08-04 18:51:56,033 - [42504] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 18:51:56,099 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:51:58,145 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:51:58,215 - [42504] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 18:51:58,281 - [42504] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 18:51:58,347 - [42504] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 18:51:58,413 - [42504] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-08-04 14:51:58.413' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42504;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:00,348 - [42504] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:52:00,425 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 703634;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:00,767 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:52:00,837 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 703634;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:01,183 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:52:01,260 - [42504] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:01,765 - [42504] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-04 18:52:02,860 - [42504] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 18:52:03,058 - [42504] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 18:52:03,124 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:10,454 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:52:10,568 - [42504] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-08-04 18:52:11,622 - [42504] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:52:11,697 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:12,038 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:52:12,105 - [42504] - src.utils.log - INFO - 1 Invoice Generated : [1493752] - __SPLIT__ 2026-08-04 18:52:12,163 - [42504] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1493753' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:12,496 - [42504] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:52:12,560 - [42504] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:52:12,625 - [42504] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:12,994 - [42504] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-08-04 18:52:14,103 - [42504] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-04 18:52:14,178 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3705869;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:14,508 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:52:14,579 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 480964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:14,992 - [42504] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:52:15,061 - [42504] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 480964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:15,405 - [42504] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 18:52:15,472 - [42504] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:52:15,531 - [42504] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:15,897 - [42504] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-08-04 18:52:17,005 - [42504] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-04 18:52:17,072 - [42504] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-04 18:52:17,141 - [42504] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-04 18:52:17,200 - [42504] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 480964 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:17,525 - [42504] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:52:17,588 - [42504] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 480964 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:17,929 - [42504] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:52:17,997 - [42504] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 480964 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:18,332 - [42504] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:52:18,394 - [42504] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 703634 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:18,736 - [42504] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:52:18,798 - [42504] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-04 14:51:58.413' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42504;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:52:19,133 - [42504] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:52:19,201 - [42504] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 23.17 - __SPLIT__ 2026-08-04 18:55:58,807 - 42505 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42505 - __SPLIT__ 2026-08-04 18:55:58,925 - 42505 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 18:55:59,000 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:01,031 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:01,105 - 42505 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 18:56:01,174 - 42505 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 18:56:01,242 - 42505 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 18:56:01,320 - 42505 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42505 - __SPLIT__ 2026-08-04 18:56:01,401 - 42505 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:03,364 - 42505 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:56:03,440 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:03,784 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:03,850 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '15051' and ss.ServiceSetupId = 150779 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:04,187 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:04,263 - 42505 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-08-04 18:56:04,353 - 42505 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-04 18:56:04,424 - 42505 - 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 = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:04,781 - 42505 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-08-04 18:56:04,852 - 42505 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-04 18:56:04,928 - 42505 - src.utils.log - INFO - SetupId: 150779, FrequencyScheduleId: 13966 - __SPLIT__ 2026-08-04 18:56:05,007 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150779 AND TransactionDate BETWEEN '2026-08-05 00:00:00' AND '2027-01-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:05,410 - 42505 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-04 18:56:05,480 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (703635, 703636, 703637) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:05,828 - 42505 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-04 18:56:05,903 - 42505 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (480965, 480966, 480967) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:06,250 - 42505 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:56:06,320 - 42505 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (480965, 480966, 480967) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:06,663 - 42505 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:56:06,769 - 42505 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (480965, 480966, 480967) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:07,130 - 42505 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:56:07,201 - 42505 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (703635, 703636, 703637) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:07,561 - 42505 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:56:07,639 - 42505 - 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-08-05 00:00:00' AND '2027-01-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150779 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:08,028 - 42505 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 18:56:08,105 - 42505 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:56:08,182 - 42505 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:08,531 - 42505 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-08-04 18:56:09,549 - 42505 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 18:56:09,612 - 42505 - src.utils.log - INFO - - __SPLIT__ 2026-08-04 18:56:09,680 - 42505 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-08-04 18:56:09,752 - 42505 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-31 06:50:11.750' and ServiceSetupId = 150779 and GenerateWorkOrderHistoryId= 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:10,155 - 42505 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-04 18:56:10,235 - 42505 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:56:10,306 - 42505 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:10,651 - 42505 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-08-04 18:56:11,671 - 42505 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 18:56:11,741 - 42505 - 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 (703638, 703639, 703640, 703641, 703642);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:12,090 - 42505 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-04 18:56:12,163 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:12,504 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:12,572 - 42505 - 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 = 150779 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:12,910 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:12,994 - 42505 - 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 = 14448;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:13,329 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:13,401 - 42505 - 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 = 13966;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:13,731 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:13,809 - 42505 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:14,149 - 42505 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:56:14,225 - 42505 - 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 = 150779;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:14,563 - 42505 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 18:56:14,631 - 42505 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-04 18:56:14,741 - 42505 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:56:14,801 - 42505 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:15,140 - 42505 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-08-04 18:56:16,153 - 42505 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 18:56:16,219 - 42505 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:16,553 - 42505 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:56:16,618 - 42505 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-08-04 14:56:16.618' WHERE GenerateInvoiceHistoryId = 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:56:16,951 - 42505 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:56:17,021 - 42505 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 18:56:17,088 - 42505 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42505 - Time took: 18.16 - __SPLIT__ 2026-08-04 18:59:14,726 - [42505] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[703638] user_id=43135 company_id=133 project_id=[42505] publish_all=False - __SPLIT__ 2026-08-04 18:59:14,842 - [42505] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-08-04 18:59:14,913 - [42505] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-08-04 18:59:14,982 - [42505] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 18:59:15,049 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:17,093 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:17,161 - [42505] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 18:59:17,232 - [42505] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 18:59:17,304 - [42505] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 18:59:17,375 - [42505] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-08-04 14:59:17.375' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:19,318 - [42505] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:59:19,395 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 703638;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:19,737 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:19,804 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 703638;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:20,143 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:20,215 - [42505] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:20,692 - [42505] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-04 18:59:21,699 - [42505] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-04 18:59:21,904 - [42505] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-04 18:59:21,972 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:23,120 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:23,245 - [42505] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-08-04 18:59:24,259 - [42505] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:59:24,334 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:24,664 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:24,738 - [42505] - src.utils.log - INFO - 1 Invoice Generated : [1493753] - __SPLIT__ 2026-08-04 18:59:24,799 - [42505] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1493754' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:25,138 - [42505] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:59:25,204 - [42505] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:59:25,274 - [42505] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:25,616 - [42505] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-08-04 18:59:26,629 - [42505] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-04 18:59:26,698 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3705870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:27,031 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:27,111 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 480968;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:27,453 - [42505] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 18:59:27,515 - [42505] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 480968;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:27,846 - [42505] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 18:59:27,942 - [42505] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 18:59:28,011 - [42505] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:28,362 - [42505] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-08-04 18:59:29,500 - [42505] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-04 18:59:29,554 - [42505] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-04 18:59:29,617 - [42505] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-04 18:59:29,678 - [42505] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 480968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:30,001 - [42505] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:59:30,056 - [42505] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 480968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:30,389 - [42505] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:59:30,449 - [42505] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 480968 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:30,781 - [42505] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:59:30,841 - [42505] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 703638 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:31,160 - [42505] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 18:59:31,219 - [42505] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-04 14:59:17.375' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42505;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 18:59:31,546 - [42505] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 18:59:31,593 - [42505] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 16.61 - __SPLIT__ 2026-08-04 19:03:48,370 - 42506 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42506 - __SPLIT__ 2026-08-04 19:03:48,497 - 42506 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-04 19:03:48,568 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:50,611 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:03:50,688 - 42506 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 19:03:50,755 - 42506 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-04 19:03:50,831 - 42506 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-04 19:03:50,904 - 42506 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42506 - __SPLIT__ 2026-08-04 19:03:50,981 - 42506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:52,908 - 42506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 19:03:52,977 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:53,312 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:03:53,409 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '15051' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:53,759 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:03:53,832 - 42506 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-08-04 19:03:53,896 - 42506 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-04 19:03:53,961 - 42506 - 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 = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:54,298 - 42506 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-08-04 19:03:54,365 - 42506 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-04 19:03:54,439 - 42506 - src.utils.log - INFO - SetupId: 150779, FrequencyScheduleId: 13966 - __SPLIT__ 2026-08-04 19:03:54,513 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150779 AND TransactionDate BETWEEN '2026-08-05 00:00:00' AND '2027-02-28 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:54,905 - 42506 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-08-04 19:03:54,966 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (703640, 703641, 703642, 703639) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:55,305 - 42506 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-08-04 19:03:55,382 - 42506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (480969, 480970, 480971, 480972) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:55,721 - 42506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 19:03:55,787 - 42506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (480969, 480970, 480971, 480972) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:56,129 - 42506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 19:03:56,196 - 42506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (480969, 480970, 480971, 480972) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:56,549 - 42506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 19:03:56,619 - 42506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (703640, 703641, 703642, 703639) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:56,969 - 42506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-04 19:03:57,044 - 42506 - 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-08-05 00:00:00' AND '2027-02-28 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150779 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:57,426 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:03:57,508 - 42506 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 19:03:57,606 - 42506 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:57,943 - 42506 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-08-04 19:03:58,953 - 42506 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 19:03:59,018 - 42506 - src.utils.log - INFO - - __SPLIT__ 2026-08-04 19:03:59,086 - 42506 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-08-04 19:03:59,153 - 42506 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-31 06:50:11.748' and ServiceSetupId = 150779 and GenerateWorkOrderHistoryId= 42506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:03:59,553 - 42506 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-04 19:03:59,623 - 42506 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 19:03:59,694 - 42506 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:00,068 - 42506 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-08-04 19:04:01,079 - 42506 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 19:04:01,149 - 42506 - 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 (703643, 703644, 703645, 703646, 703647);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:01,500 - 42506 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-04 19:04:01,569 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:01,905 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:04:01,968 - 42506 - 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 = 150779 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:02,307 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:04:02,380 - 42506 - 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 = 14448;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:02,714 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:04:02,776 - 42506 - 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 = 13966;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:03,108 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:04:03,179 - 42506 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:03,516 - 42506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-04 19:04:03,595 - 42506 - 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 = 150779;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:03,927 - 42506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-04 19:04:03,987 - 42506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-04 19:04:04,099 - 42506 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-04 19:04:04,165 - 42506 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:04,505 - 42506 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-08-04 19:04:05,507 - 42506 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-08-04 19:04:05,576 - 42506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:05,907 - 42506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 19:04:05,980 - 42506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-08-04 15:04:05.980' WHERE GenerateInvoiceHistoryId = 42506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-04 19:04:06,316 - 42506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-04 19:04:06,381 - 42506 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-04 19:04:06,442 - 42506 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42506 - Time took: 17.95 - __SPLIT__ 2026-08-05 05:05:52,979 - 42507 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42507 - __SPLIT__ 2026-08-05 05:05:53,107 - 42507 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-05 05:05:53,203 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:05:55,424 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:05:55,487 - 42507 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-05 05:05:55,561 - 42507 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-05 05:05:55,631 - 42507 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-05 05:05:55,701 - 42507 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42507 - __SPLIT__ 2026-08-05 05:05:55,778 - 42507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:05:57,740 - 42507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-05 05:05:57,807 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:05:58,139 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:05:58,204 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '15051' and ss.ServiceSetupId = 150779 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:05:58,560 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:05:58,627 - 42507 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-08-05 05:05:58,702 - 42507 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-05 05:05:58,772 - 42507 - 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 = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:05:59,117 - 42507 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-08-05 05:05:59,179 - 42507 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-05 05:05:59,261 - 42507 - src.utils.log - INFO - SetupId: 150779, FrequencyScheduleId: 13966 - __SPLIT__ 2026-08-05 05:05:59,335 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150779 AND TransactionDate BETWEEN '2026-08-05 00:00:00' AND '2027-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:05:59,727 - 42507 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-05 05:05:59,795 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (703643, 703644, 703645, 703646, 703647) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:00,136 - 42507 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-05 05:06:00,204 - 42507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (480973, 480974, 480975, 480976, 480977) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:00,544 - 42507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 05:06:00,607 - 42507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (480973, 480974, 480975, 480976, 480977) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:00,945 - 42507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 05:06:01,011 - 42507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (480973, 480974, 480975, 480976, 480977) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:01,364 - 42507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 05:06:01,435 - 42507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (703643, 703644, 703645, 703646, 703647) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:01,790 - 42507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 05:06:01,879 - 42507 - 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-08-05 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 = 150779 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:02,307 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:06:02,391 - 42507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-05 05:06:02,455 - 42507 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:02,806 - 42507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-08-05 05:06:03,974 - 42507 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-08-05 05:06:04,042 - 42507 - src.utils.log - INFO - - __SPLIT__ 2026-08-05 05:06:04,107 - 42507 - src.utils.log - INFO - Total invoice generated: 15 - __SPLIT__ 2026-08-05 05:06:04,172 - 42507 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 15 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-31 06:50:11.750' and ServiceSetupId = 150779 and GenerateWorkOrderHistoryId= 42507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:04,575 - 42507 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-08-05 05:06:04,652 - 42507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-05 05:06:04,727 - 42507 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:05,077 - 42507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-08-05 05:06:06,244 - 42507 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-08-05 05:06:06,317 - 42507 - 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 (703648, 703649, 703650, 703651, 703652, 703653, 703654, 703655, 703656, 703657, 703658, 703659, 703660, 703661, 703662);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:06,669 - 42507 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-08-05 05:06:06,741 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:07,085 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:06:07,154 - 42507 - 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 = 150779 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:07,502 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:06:07,578 - 42507 - 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 = 14448;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:07,916 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:06:07,988 - 42507 - 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 = 13966;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:08,332 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:06:08,409 - 42507 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:08,757 - 42507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 05:06:08,832 - 42507 - 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 = 150779;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:09,174 - 42507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 05:06:09,242 - 42507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-05 05:06:09,362 - 42507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-05 05:06:09,443 - 42507 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:09,788 - 42507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-08-05 05:06:10,955 - 42507 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-08-05 05:06:11,027 - 42507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:11,363 - 42507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-05 05:06:11,430 - 42507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-08-05 01:06:11.430' WHERE GenerateInvoiceHistoryId = 42507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 05:06:11,766 - 42507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-05 05:06:11,836 - 42507 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-05 05:06:11,908 - 42507 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42507 - Time took: 18.8 - __SPLIT__ 2026-08-05 13:55:56,776 - 12773 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12773 - __SPLIT__ 2026-08-05 13:55:56,911 - 12773 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12773 - __SPLIT__ 2026-08-05 13:55:56,996 - 12773 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-05 13:55:57,064 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:55:59,218 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:55:59,291 - 12773 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-08-05 13:55:59,359 - 12773 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:55:59,734 - 12773 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-05 13:55:59,798 - 12773 - 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 = 12773), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12773), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12773 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:00,223 - 12773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 13:56:00,287 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:00,659 - 12773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 13:56:00,734 - 12773 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-05 13:56:00,801 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13036... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:01,175 - 12773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 13:56:01,248 - 12773 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-05 13:56:01,327 - 12773 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-08-05 13:56:01,394 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34489;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:01,768 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:01,865 - 12773 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-05 00:00:00' and ServiceDate <= '2028-04-01 00:00:00' and ServiceSetupId = 34489 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:02,270 - 12773 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-05 13:56:03,012 - 12773 - src.utils.log - INFO - Generating work orders for setup: 34489 - __SPLIT__ 2026-08-05 13:56:03,210 - 12773 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-08-05 13:56:03,287 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:03,651 - 12773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 13:56:03,718 - 12773 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-08-05 13:56:03,783 - 12773 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-08-05 13:56:03,849 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:04,291 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:04,354 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:04,927 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:05,002 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:05,375 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:05,450 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:05,839 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:05,915 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:06,290 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:06,356 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:06,729 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:06,799 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:07,167 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:07,286 - 12773 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34489 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:07,741 - 12773 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-05 13:56:07,806 - 12773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-05 13:56:07,871 - 12773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:08,282 - 12773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-08-05 13:56:09,977 - 12773 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-08-05 13:56:10,040 - 12773 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 15 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-31 12:20:11.735' and ServiceSetupId = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:10,407 - 12773 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-08-05 13:56:10,472 - 12773 - src.utils.log - INFO - Id's of work order inserted to DB: [2740406 2740407 2740408 2740409 2740410 2740411 2740412 2740413 2740414 2740415 2740416 2740417 2740418 2740419 2740420] - __SPLIT__ 2026-08-05 13:56:10,529 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34489;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:10,890 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:10,949 - 12773 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-08-05 13:56:11,017 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:11,381 - 12773 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-05 13:56:11,451 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:11,827 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:11,903 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:12,273 - 12773 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-05 13:56:12,340 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:12,704 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:12,822 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:13,201 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:13,268 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34489;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:13,641 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:13,705 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34489;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:14,070 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:14,140 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34489;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:15,073 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:15,148 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34489;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:15,518 - 12773 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-05 13:56:15,589 - 12773 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-08-05 13:56:15,654 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-05 13:56:15,720 - 12773 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-08-05 13:56:15,790 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-08-05 13:56:15,862 - 12773 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-08-05 13:56:15,930 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-08-05 13:56:15,993 - 12773 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-08-05 13:56:16,061 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-05 13:56:16,127 - 12773 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-08-05 13:56:16,195 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-08-05 13:56:16,318 - 12773 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-05 13:56:16,388 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-08-05 13:56:16,460 - 12773 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-08-05 13:56:16,534 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-08-05 13:56:16,614 - 12773 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-08-05 13:56:16,684 - 12773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-05 13:56:16,751 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2740416, 2740417, 2740418, 2740419, 2740420, 2740406, 2740407, 2740408, 2740409, 2740410, 2740411, 2740412, 2740413, 2740414, 2740415) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:17,125 - 12773 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-08-05 13:56:17,198 - 12773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:17,590 - 12773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-08-05 13:56:18,939 - 12773 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-08-05 13:56:19,009 - 12773 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-08-05 13:56:19,078 - 12773 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-08-05 13:56:19,154 - 12773 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-05 13:56:19,230 - 12773 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-05 13:56:19,300 - 12773 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2740416, 2740417, 2740418, 2740419, 2740420, 2740406, 2740407, 2740408, 2740409, 2740410, 2740411, 2740412, 2740413, 2740414, 2740415) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:19,664 - 12773 - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-08-05 13:56:19,736 - 12773 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 15 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:20,132 - 12773 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 15) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-08-05 13:56:21,414 - 12773 - src.utils.log - INFO - βœ… All 15 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-08-05 13:56:21,522 - 12773 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-08-05 13:56:21,592 - 12773 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-05 13:56:21,955 - 12773 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-05 13:56:22,025 - 12773 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-08-05 13:56:22,090 - 12773 - src.utils.log - INFO - Time took to perform operation: 25.03 - __SPLIT__ 2026-08-06 07:00:13,056 - [12773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2740412, 2740413, 2740414] user_id=122885 company_id=135 project_id=[12773] publish_all=False - __SPLIT__ 2026-08-06 07:00:13,263 - [12773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2740412, 2740413, 2740414] user_id=122885 company_id=135 project_id=[12773] publish_all=False - __SPLIT__ 2026-08-06 07:00:13,343 - [12773] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12773] - __SPLIT__ 2026-08-06 07:00:13,410 - [12773] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-06 07:00:13,484 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:15,608 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:15,673 - [12773] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-08-06 07:00:15,737 - [12773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:16,364 - [12773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 07:00:16,433 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:16,800 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 07:00:16,861 - [12773] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-06 07:00:16,927 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:17,290 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:17,360 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:17,742 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:17,809 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:18,180 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:18,248 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:18,619 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:18,683 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:19,093 - [12773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:00:19,156 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:19,517 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:19,586 - [12773] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 3 OUTPUT INSERTED.NextNumber - 3 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:19,944 - [12773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:00:20,012 - [12773] - 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 = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:20,380 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:20,440 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:20,802 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:20,868 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '5915' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:21,229 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:21,291 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169680R', '169681R', '169682R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:21,653 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:21,720 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:22,278 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-06 07:00:23,570 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-06 07:00:23,782 - [12773] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-06 07:00:23,846 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169680R', '169681R', '169682R') AND wo.AccountNumber = '5915' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-28_0) - __SPLIT__ 2026-08-06 07:00:24,211 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 07:00:24,272 - [12773] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-06 07:00:24,392 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:24,766 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 07:00:24,843 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:25,211 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:25,280 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:25,662 - [12773] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-08-06 07:00:25,737 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:26,105 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:26,185 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:26,558 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:26,633 - [12773] - 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 (2740412, 2740413, 2740414)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:27,185 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:27,261 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2740412, 2740413, 2740414) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:27,632 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:27,705 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2740412, 2740413, 2740414);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:28,079 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:28,154 - [12773] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-06 07:00:28,232 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:28,605 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:28,686 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:29,104 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:29,187 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:00:29,261 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:29,672 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-06 07:00:30,815 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-06 07:00:30,893 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34489 AND WorkOrderNo IN ('7382936', '3294064', '1442789') AND GenerateWorkOrderHistoryId = 12773;... (Thread: ThreadPoolExecutor-29_0) - __SPLIT__ 2026-08-06 07:00:31,332 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 07:00:31,403 - [12773] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-08-06 07:00:31,476 - [12773] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-06 07:00:31,542 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:00:31,611 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:32,005 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-06 07:00:33,123 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-06 07:00:33,197 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-06 07:00:33,265 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-06 07:00:33,338 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-06 07:00:33,408 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:00:33,480 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:33,868 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-06 07:00:35,012 - [12773] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-06 07:00:35,122 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-06 07:00:35,183 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-06 07:00:35,248 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:00:35,321 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:35,702 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-06 07:00:36,820 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-06 07:00:36,892 - [12773] - 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 = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:37,256 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:00:37,330 - [12773] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-06 07:00:37,396 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12773 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:37,757 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:00:37,832 - [12773] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-06 07:00:38,045 - [12773] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_38199bf20d - __SPLIT__ 2026-08-06 07:00:38,410 - [12773] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_38199bf20d - __SPLIT__ 2026-08-06 07:00:38,774 - [12773] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-06 07:00:38,996 - [12773] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-06 07:00:39,218 - [12773] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_38199bf20d - __SPLIT__ 2026-08-06 07:00:39,317 - [12773] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_38199bf20d - __SPLIT__ 2026-08-06 07:00:39,379 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12773 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:39,739 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:39,861 - [12773] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-06 07:00:39,930 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:40,307 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:40,373 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:40,745 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:40,811 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:41,170 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:41,237 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:41,643 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:41,707 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:42,090 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:42,164 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:42,558 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:42,620 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:42,980 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:43,056 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2740412, 2740413, 2740414) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:43,521 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:00:43,592 - [12773] - src.utils.log - INFO - Work order published ids: (2740412, 2740413, 2740414) - __SPLIT__ 2026-08-06 07:00:43,664 - [12773] - src.utils.log - INFO - Time took to perform operation in publishing [12773]: 30.26 - __SPLIT__ 2026-08-06 07:00:43,730 - [12773] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12773] - __SPLIT__ 2026-08-06 07:00:43,857 - [12773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-06 03:00:43.591' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:00:44,214 - [12773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 07:29:06,396 - [124861] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686503, 3686504] user_id=43135 company_id=133 project_id=[124861] publish_all=False - __SPLIT__ 2026-08-06 07:29:06,535 - [124861] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3686503, 3686504] user_id=43135 company_id=133 project_id=[124861] publish_all=False - __SPLIT__ 2026-08-06 07:29:06,605 - [124861] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124861] - __SPLIT__ 2026-08-06 07:29:06,670 - [124861] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-06 07:29:06,738 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:08,766 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:08,841 - [124861] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-06 07:29:08,904 - [124861] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-06 07:29:08,973 - [124861] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-06 07:29:09,040 - [124861] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124861;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:11,202 - [124861] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 07:29:11,274 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:11,637 - [124861] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:29:11,705 - [124861] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-06 07:29:11,770 - [124861] - 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 = 150781 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:12,154 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:12,225 - [124861] - 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 = 150781 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:12,595 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:12,664 - [124861] - 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 = 150781 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:13,045 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:13,117 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:13,525 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:13,584 - [124861] - 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-08-06 07:29:13,937 - [124861] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:29:13,996 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:14,353 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:14,414 - [124861] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:14,774 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:14,830 - [124861] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:15,193 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:15,248 - [124861] - 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 = 150781... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:15,606 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:15,670 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:16,033 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:16,090 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15000' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:16,445 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:16,504 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1431258', '1431259') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:16,863 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:16,916 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:17,471 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-06 07:29:18,740 - [124861] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-06 07:29:19,026 - [124861] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-06 07:29:19,137 - [124861] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:19,575 - [124861] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 07:29:19,654 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1431258', '1431259') AND wo.AccountNumber = '15000' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-30_0) - __SPLIT__ 2026-08-06 07:29:20,036 - [124861] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:29:20,114 - [124861] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-06 07:29:20,191 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:20,606 - [124861] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 07:29:20,685 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:21,079 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:21,172 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:21,607 - [124861] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-08-06 07:29:21,677 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:22,054 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:22,144 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:22,584 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:22,671 - [124861] - 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 (3686503, 3686504)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:23,093 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:23,184 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3686503, 3686504) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:23,585 - [124861] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-08-06 07:29:23,703 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3686503, 3686504);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:24,073 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:24,142 - [124861] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-06 07:29:24,228 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:24,671 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:24,748 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:25,117 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:25,187 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:25,260 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:25,669 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-06 07:29:26,814 - [124861] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-06 07:29:26,883 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150781 AND WorkOrderNo IN ('945383', '3884913') AND GenerateWorkOrderHistoryId = 124861;... (Thread: ThreadPoolExecutor-31_0) - __SPLIT__ 2026-08-06 07:29:27,532 - [124861] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:29:27,599 - [124861] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-08-06 07:29:27,674 - [124861] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-06 07:29:27,746 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:27,810 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:28,178 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-06 07:29:29,366 - [124861] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-06 07:29:29,441 - [124861] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-06 07:29:29,553 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:29,619 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:30,037 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-08-06 07:29:31,157 - [124861] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-08-06 07:29:31,217 - [124861] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-06 07:29:31,285 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:31,346 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:31,712 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-06 07:29:32,858 - [124861] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-06 07:29:32,922 - [124861] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-06 07:29:33,001 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:33,065 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:33,440 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into CRM.LeadNote - __SPLIT__ 2026-08-06 07:29:34,571 - [124861] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into CRM.LeadNote in 1 batches - __SPLIT__ 2026-08-06 07:29:34,636 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:34,704 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:35,078 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-06 07:29:36,219 - [124861] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-06 07:29:36,295 - [124861] - 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 = 150781... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:36,661 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:36,793 - [124861] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-08-06 07:29:36,872 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:37,404 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-06 07:29:38,567 - [124861] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-06 07:29:38,792 - [124861] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-06 07:29:38,870 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-08-06 03:29:36.788';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:46,303 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:46,413 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:46,769 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:46,834 - [124861] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-08-06 03:29:36.788'; ... (Thread: ThreadPoolExecutor-32_0) - __SPLIT__ 2026-08-06 07:29:47,890 - [124861] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 07:29:47,959 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:48,019 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:48,383 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-08-06 07:29:49,537 - [124861] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-06 07:29:49,597 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1431258'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:50,568 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:50,636 - [124861] - 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 = 150781 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:51,003 - [124861] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 07:29:51,065 - [124861] - 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 = 150781 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:51,421 - [124861] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 07:29:51,483 - [124861] - 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 = 150781 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:51,841 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:51,898 - [124861] - 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 = 150781 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:52,258 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:52,336 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:52,686 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:52,808 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:53,181 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:53,255 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:53,620 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:53,688 - [124861] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-08-06 07:29:53,757 - [124861] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-06 07:29:53,833 - [124861] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 07:29:53,910 - [124861] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:54,289 - [124861] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-08-06 07:29:55,421 - [124861] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-06 07:29:55,487 - [124861] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-06 07:29:55,555 - [124861] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-08-06 07:29:55,627 - [124861] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-06 07:29:55,697 - [124861] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124861 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:56,065 - [124861] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 07:29:56,142 - [124861] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-06 07:29:56,355 - [124861] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_9f09b37bb5 - __SPLIT__ 2026-08-06 07:29:56,753 - [124861] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_9f09b37bb5 - __SPLIT__ 2026-08-06 07:29:57,118 - [124861] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-06 07:29:57,340 - [124861] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-06 07:29:57,611 - [124861] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_9f09b37bb5 - __SPLIT__ 2026-08-06 07:29:57,685 - [124861] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_9f09b37bb5 - __SPLIT__ 2026-08-06 07:29:57,758 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124861 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:58,136 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:29:58,206 - [124861] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-06 07:29:58,272 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:58,800 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:29:58,886 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:59,363 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:29:59,434 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:29:59,812 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:29:59,879 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:30:00,339 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:30:00,413 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:30:00,791 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:30:00,865 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:30:01,241 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:30:01,354 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:30:01,757 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:30:01,856 - [124861] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3686503, 3686504) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:30:02,483 - [124861] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 07:30:02,557 - [124861] - src.utils.log - INFO - Work order published ids: (3686503, 3686504) - __SPLIT__ 2026-08-06 07:30:02,629 - [124861] - src.utils.log - INFO - Time took to perform operation in publishing [124861]: 55.96 - __SPLIT__ 2026-08-06 07:30:02,694 - [124861] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124861] - __SPLIT__ 2026-08-06 07:30:02,760 - [124861] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-06 03:30:02.557' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124861;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 07:30:03,150 - [124861] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:29:51,165 - [12773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2740415, 2740416, 2740417] user_id=122885 company_id=135 project_id=[12773] publish_all=False - __SPLIT__ 2026-08-06 09:29:51,281 - [12773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2740415, 2740416, 2740417] user_id=122885 company_id=135 project_id=[12773] publish_all=False - __SPLIT__ 2026-08-06 09:29:51,351 - [12773] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12773] - __SPLIT__ 2026-08-06 09:29:51,418 - [12773] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-06 09:29:51,486 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:53,637 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:29:53,708 - [12773] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-08-06 09:29:53,773 - [12773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:54,134 - [12773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:29:54,199 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:54,571 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:29:54,640 - [12773] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-06 09:29:54,705 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:55,072 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:29:55,130 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:55,497 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:29:55,557 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:55,925 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:29:55,998 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:56,360 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:29:56,417 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:56,832 - [12773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 09:29:56,901 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:57,270 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:29:57,336 - [12773] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 3 OUTPUT INSERTED.NextNumber - 3 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:57,696 - [12773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 09:29:57,768 - [12773] - 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 = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:58,179 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:29:58,246 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:58,611 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:29:58,683 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '5915' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:59,046 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:29:59,111 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169686R', '169687R', '169688R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:29:59,473 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:29:59,546 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:00,134 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-06 09:30:01,540 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-06 09:30:01,906 - [12773] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-06 09:30:02,014 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169686R', '169687R', '169688R') AND wo.AccountNumber = '5915' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-33_0) - __SPLIT__ 2026-08-06 09:30:02,457 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:30:02,526 - [12773] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-06 09:30:02,668 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:03,109 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:30:03,177 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:04,169 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:04,241 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:04,708 - [12773] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-08-06 09:30:04,770 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:05,305 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:05,369 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:06,042 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:06,105 - [12773] - 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 (2740415, 2740416, 2740417)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:07,132 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:07,205 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2740415, 2740416, 2740417) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:07,597 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:07,665 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2740415, 2740416, 2740417);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:08,066 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:08,139 - [12773] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-06 09:30:08,223 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:08,582 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:30:08,652 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:09,056 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:30:09,128 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:30:09,180 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:09,587 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-06 09:30:10,720 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-06 09:30:10,784 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34489 AND WorkOrderNo IN ('5862471', '3866808', '1319774') AND GenerateWorkOrderHistoryId = 12773;... (Thread: ThreadPoolExecutor-34_0) - __SPLIT__ 2026-08-06 09:30:11,170 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:30:11,233 - [12773] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-08-06 09:30:11,306 - [12773] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-06 09:30:11,373 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:30:11,434 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:11,820 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-06 09:30:12,943 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-06 09:30:13,007 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-06 09:30:13,072 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-06 09:30:13,138 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-06 09:30:13,204 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:30:13,258 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:13,643 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-06 09:30:14,759 - [12773] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-06 09:30:14,872 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-06 09:30:14,940 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-06 09:30:15,008 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:30:15,075 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:15,469 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-06 09:30:16,600 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-06 09:30:16,666 - [12773] - 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 = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:17,041 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:30:17,115 - [12773] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-06 09:30:17,176 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12773 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:17,548 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:30:17,618 - [12773] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-06 09:30:17,839 - [12773] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_44af4b2624 - __SPLIT__ 2026-08-06 09:30:18,206 - [12773] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_44af4b2624 - __SPLIT__ 2026-08-06 09:30:18,572 - [12773] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-06 09:30:18,783 - [12773] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-06 09:30:19,003 - [12773] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_44af4b2624 - __SPLIT__ 2026-08-06 09:30:19,071 - [12773] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_44af4b2624 - __SPLIT__ 2026-08-06 09:30:19,138 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12773 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:19,509 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:19,625 - [12773] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-06 09:30:19,695 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:20,130 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:20,207 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:20,605 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:20,687 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:21,054 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:21,127 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:21,532 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:21,605 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:21,996 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:22,069 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:22,447 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:22,523 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:22,892 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:22,967 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2740415, 2740416, 2740417) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:23,367 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:30:23,437 - [12773] - src.utils.log - INFO - Work order published ids: (2740415, 2740416, 2740417) - __SPLIT__ 2026-08-06 09:30:23,508 - [12773] - src.utils.log - INFO - Time took to perform operation in publishing [12773]: 32.09 - __SPLIT__ 2026-08-06 09:30:23,576 - [12773] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12773] - __SPLIT__ 2026-08-06 09:30:23,691 - [12773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-06 05:30:23.437' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:30:24,066 - [12773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:54:19,870 - 42511 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42511 - __SPLIT__ 2026-08-06 09:54:19,994 - 42511 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-06 09:54:20,061 - 42511 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:22,455 - 42511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:54:22,526 - 42511 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-06 09:54:22,586 - 42511 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-06 09:54:22,655 - 42511 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-06 09:54:22,720 - 42511 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42511 - __SPLIT__ 2026-08-06 09:54:22,794 - 42511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:24,892 - 42511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:54:24,959 - 42511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:25,309 - 42511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:54:25,376 - 42511 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '15000' and ss.ServiceSetupId = 150785 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:25,747 - 42511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 09:54:25,815 - 42511 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-08-06 09:54:25,880 - 42511 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-08-06 09:54:25,945 - 42511 - 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 = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:26,311 - 42511 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-08-06 09:54:26,380 - 42511 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-08-06 09:54:26,450 - 42511 - src.utils.log - INFO - SetupId: 150785, FrequencyScheduleId: 13966 - __SPLIT__ 2026-08-06 09:54:26,523 - 42511 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150785 AND TransactionDate BETWEEN '2026-08-06 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:26,942 - 42511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:54:27,015 - 42511 - 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-08-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 = 150785 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:27,413 - 42511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:54:27,489 - 42511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:54:27,554 - 42511 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:27,919 - 42511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-08-06 09:54:29,024 - 42511 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-08-06 09:54:29,090 - 42511 - src.utils.log - INFO - - __SPLIT__ 2026-08-06 09:54:29,161 - 42511 - src.utils.log - INFO - Total invoice generated: 3 - __SPLIT__ 2026-08-06 09:54:29,232 - 42511 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-31 06:50:11.750' and ServiceSetupId = 150785 and GenerateWorkOrderHistoryId= 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:29,602 - 42511 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:54:29,674 - 42511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:54:29,736 - 42511 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:30,102 - 42511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-08-06 09:54:31,203 - 42511 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-08-06 09:54:31,272 - 42511 - 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 (703722, 703723, 703724);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:31,637 - 42511 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:54:31,709 - 42511 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:32,089 - 42511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:54:32,161 - 42511 - 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 = 150785 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:32,585 - 42511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 09:54:32,671 - 42511 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:33,031 - 42511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:54:33,110 - 42511 - 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 = 150785;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:33,473 - 42511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:54:33,550 - 42511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-08-06 09:54:33,624 - 42511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:54:33,698 - 42511 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:34,073 - 42511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-08-06 09:54:35,186 - 42511 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-08-06 09:54:35,261 - 42511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:35,625 - 42511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:54:35,694 - 42511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-08-06 05:54:35.694' WHERE GenerateInvoiceHistoryId = 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:54:36,059 - 42511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:54:36,142 - 42511 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-06 09:54:36,219 - 42511 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42511 - Time took: 16.23 - __SPLIT__ 2026-08-06 09:57:28,972 - [42511] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[703722, 703723, 703724] user_id=43135 company_id=133 project_id=[42511] publish_all=False - __SPLIT__ 2026-08-06 09:57:29,109 - [42511] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-08-06 09:57:29,182 - [42511] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-08-06 09:57:29,258 - [42511] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-06 09:57:29,326 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:31,469 - [42511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:57:31,546 - [42511] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-08-06 09:57:31,621 - [42511] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-08-06 09:57:31,698 - [42511] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-08-06 09:57:31,769 - [42511] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-08-06 05:57:31.769' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:33,873 - [42511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:57:33,939 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (703722, 703723, 703724);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:34,297 - [42511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:57:34,369 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (703722, 703723, 703724);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:34,729 - [42511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:57:34,799 - [42511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:35,306 - [42511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-08-06 09:57:36,401 - [42511] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-08-06 09:57:36,610 - [42511] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-06 09:57:36,686 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:38,672 - [42511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:57:38,798 - [42511] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912); ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-08-06 09:57:40,673 - [42511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:57:40,748 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:41,108 - [42511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 09:57:41,188 - [42511] - src.utils.log - INFO - 3 Invoice Generated : [1493758, 1493759, 1493760] - __SPLIT__ 2026-08-06 09:57:41,260 - [42511] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1493761' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:41,623 - [42511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:57:41,702 - [42511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:57:41,769 - [42511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:42,146 - [42511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-08-06 09:57:43,252 - [42511] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-08-06 09:57:43,323 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3705874, 3705875, 3705876);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:43,684 - [42511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 09:57:43,758 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (481052, 481053, 481054);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:44,127 - [42511] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-08-06 09:57:44,191 - [42511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (481052, 481053, 481054);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:44,547 - [42511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 09:57:44,620 - [42511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 09:57:44,699 - [42511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:45,087 - [42511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-08-06 09:57:46,252 - [42511] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-08-06 09:57:46,326 - [42511] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-08-06 09:57:46,396 - [42511] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-08-06 09:57:46,467 - [42511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (481052, 481053, 481054) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:46,828 - [42511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:57:46,894 - [42511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (481052, 481053, 481054) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:47,266 - [42511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:57:47,331 - [42511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (481052, 481053, 481054) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:47,766 - [42511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:57:47,832 - [42511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (703722, 703723, 703724) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:48,210 - [42511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 09:57:48,283 - [42511] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-06 05:57:31.769' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 09:57:48,649 - [42511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 09:57:48,715 - [42511] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 19.46 - __SPLIT__ 2026-08-06 10:33:29,072 - [12773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2740418, 2740419, 2740420] user_id=122885 company_id=135 project_id=[12773] publish_all=False - __SPLIT__ 2026-08-06 10:33:29,198 - [12773] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2740418, 2740419, 2740420] user_id=122885 company_id=135 project_id=[12773] publish_all=False - __SPLIT__ 2026-08-06 10:33:29,271 - [12773] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12773] - __SPLIT__ 2026-08-06 10:33:29,338 - [12773] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-06 10:33:29,412 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:31,650 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:31,726 - [12773] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-08-06 10:33:31,801 - [12773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:32,248 - [12773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-06 10:33:32,325 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:32,697 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 10:33:32,769 - [12773] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-08-06 10:33:32,838 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:33,219 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:33,291 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:33,667 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:33,744 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 34489 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:34,115 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:34,189 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:34,556 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:34,632 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:35,057 - [12773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 10:33:35,133 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:35,497 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:35,574 - [12773] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 3 OUTPUT INSERTED.NextNumber - 3 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:35,943 - [12773] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-08-06 10:33:36,019 - [12773] - 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 = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:36,392 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:36,472 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:36,833 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:36,902 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '5915' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:37,264 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:37,336 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('169692R', '169693R', '169694R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:37,703 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:37,771 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:38,332 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-08-06 10:33:39,653 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-08-06 10:33:39,866 - [12773] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-08-06 10:33:39,942 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('169692R', '169693R', '169694R') AND wo.AccountNumber = '5915' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-08-06 10:33:40,307 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 10:33:40,374 - [12773] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-08-06 10:33:40,483 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:40,851 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 10:33:40,919 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:41,344 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:41,409 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:41,773 - [12773] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-08-06 10:33:41,837 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:42,199 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:42,266 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:42,636 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:42,734 - [12773] - 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 (2740418, 2740419, 2740420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:43,110 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:43,181 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2740418, 2740419, 2740420) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:43,542 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:43,612 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2740418, 2740419, 2740420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:43,975 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:44,049 - [12773] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-08-06 10:33:44,123 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:44,487 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:44,556 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:44,964 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:45,047 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 10:33:45,118 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:45,527 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-08-06 10:33:46,654 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-08-06 10:33:46,732 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34489 AND WorkOrderNo IN ('5023494', '1496494', '1131204') AND GenerateWorkOrderHistoryId = 12773;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-08-06 10:33:47,127 - [12773] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-08-06 10:33:47,197 - [12773] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-08-06 10:33:47,271 - [12773] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-08-06 10:33:47,347 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 10:33:47,417 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:47,806 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-08-06 10:33:49,273 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-08-06 10:33:49,345 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-08-06 10:33:49,419 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-08-06 10:33:49,491 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-08-06 10:33:49,563 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 10:33:49,634 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:50,018 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-08-06 10:33:51,167 - [12773] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-08-06 10:33:51,288 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-08-06 10:33:51,355 - [12773] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-08-06 10:33:51,423 - [12773] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-08-06 10:33:51,492 - [12773] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:51,885 - [12773] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-08-06 10:33:53,787 - [12773] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-08-06 10:33:53,854 - [12773] - 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 = 34489... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:54,221 - [12773] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-06 10:33:54,297 - [12773] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-08-06 10:33:54,369 - [12773] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12773 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:54,759 - [12773] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-06 10:33:54,833 - [12773] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-08-06 10:33:55,047 - [12773] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_20a6e3286a - __SPLIT__ 2026-08-06 10:33:55,415 - [12773] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_20a6e3286a - __SPLIT__ 2026-08-06 10:33:55,776 - [12773] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-08-06 10:33:56,485 - [12773] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-08-06 10:33:56,703 - [12773] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_20a6e3286a - __SPLIT__ 2026-08-06 10:33:56,769 - [12773] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_20a6e3286a - __SPLIT__ 2026-08-06 10:33:56,838 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12773 (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:57,197 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:33:57,319 - [12773] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-08-06 10:33:57,389 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:57,795 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:33:57,863 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:58,255 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:33:58,332 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:58,698 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:33:58,766 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:59,173 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:33:59,243 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:33:59,624 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:33:59,696 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:34:00,066 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:34:00,159 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:34:00,528 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:34:00,597 - [12773] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2740418, 2740419, 2740420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:34:00,987 - [12773] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-08-06 10:34:01,065 - [12773] - src.utils.log - INFO - Work order published ids: (2740418, 2740419, 2740420) - __SPLIT__ 2026-08-06 10:34:01,147 - [12773] - src.utils.log - INFO - Time took to perform operation in publishing [12773]: 31.81 - __SPLIT__ 2026-08-06 10:34:01,224 - [12773] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12773] - __SPLIT__ 2026-08-06 10:34:01,353 - [12773] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-08-06 06:34:01.065' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12773;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-06 10:34:01,969 - [12773] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-07 12:03:29,635 - 12781 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12781 - __SPLIT__ 2026-08-07 12:03:29,775 - 12781 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12781 - __SPLIT__ 2026-08-07 12:03:29,851 - 12781 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-07 12:03:29,929 - 12781 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-07 12:03:32,056 - 12781 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-07 12:03:32,125 - 12781 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-08-07 12:03:32,192 - 12781 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-07 12:03:32,540 - 12781 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-07 12:03:32,612 - 12781 - 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 = 12781), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12781), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12781 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-07 12:03:32,993 - 12781 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-07 12:03:33,078 - 12781 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-07 12:03:33,433 - 12781 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-07 12:03:33,507 - 12781 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-08-07 08:03:33.507' WHERE GenerateWorkOrderHistoryId = 12781;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-07 12:03:33,869 - 12781 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-07 12:03:33,941 - 12781 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12781 - __SPLIT__ 2026-08-11 12:01:54,467 - 12656 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12656 - __SPLIT__ 2026-08-11 12:01:54,595 - 12656 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12656 - __SPLIT__ 2026-08-11 12:01:54,659 - 12656 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-08-11 12:01:54,716 - 12656 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-11 12:01:57,080 - 12656 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-11 12:01:57,142 - 12656 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-08-11 12:01:57,204 - 12656 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-11 12:01:57,575 - 12656 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-11 12:01:57,636 - 12656 - 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 = 12656), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12656), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12656 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-11 12:01:58,033 - 12656 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-08-11 12:01:58,088 - 12656 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-11 12:01:58,455 - 12656 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-08-11 12:01:58,513 - 12656 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-08-11 08:01:58.513' WHERE GenerateWorkOrderHistoryId = 12656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-08-11 12:01:58,975 - 12656 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-08-11 12:01:59,029 - 12656 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12656 - __SPLIT__