2026-06-02 17:54:37,030 - 124495 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124495 - __SPLIT__ 2026-06-02 17:54:37,323 - 124495 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124495 - __SPLIT__ 2026-06-02 17:54:37,323 - 124495 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-02 17:54:37,324 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:39,437 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:39,437 - 124495 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-02 17:54:39,438 - 124495 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-02 17:54:39,438 - 124495 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-02 17:54:39,438 - 124495 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124495;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:41,303 - 124495 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 17:54:41,303 - 124495 - 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 = 124495), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124495), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124495 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:41,612 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:41,612 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124495;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:41,881 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:41,884 - 124495 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-02 17:54:41,885 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14509... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:42,162 - 124495 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-02 17:54:42,163 - 124495 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-02 17:54:42,166 - 124495 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-02 17:54:42,166 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:42,434 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:42,435 - 124495 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-02 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150377 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:42,708 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:43,266 - 124495 - src.utils.log - INFO - Generating work orders for setup: 150377 - __SPLIT__ 2026-06-02 17:54:43,283 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:43,550 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:43,558 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:43,824 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:43,861 - 124495 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-02 17:54:43,866 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:44,132 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:44,135 - 124495 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-02 17:54:44,135 - 124495 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-02 17:54:44,135 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:44,453 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:44,453 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:44,771 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:44,771 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:45,045 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:45,046 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:45,364 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:45,364 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:45,681 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:45,681 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:45,962 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:45,963 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:46,232 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:46,232 - 124495 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150377 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:46,633 - 124495 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 17:54:46,633 - 124495 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 17:54:46,633 - 124495 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:46,954 - 124495 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-02 17:54:47,923 - 124495 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-02 17:54:47,923 - 124495 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-28 21:10:37.941' and ServiceSetupId = 150377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:48,241 - 124495 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 17:54:48,242 - 124495 - src.utils.log - INFO - Id's of work order inserted to DB: [3679461 3679462] - __SPLIT__ 2026-06-02 17:54:48,242 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:48,508 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:48,508 - 124495 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-02 17:54:48,509 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:48,777 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:48,777 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:49,046 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:49,053 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:49,327 - 124495 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-02 17:54:49,328 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:49,596 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:49,597 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150377... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:49,871 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:49,872 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:50,139 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:50,139 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:50,405 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:50,406 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:51,480 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:51,480 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150377;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:51,748 - 124495 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 17:54:51,760 - 124495 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-02 17:54:51,760 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-02 17:54:51,760 - 124495 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-02 17:54:51,761 - 124495 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 17:54:51,762 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679461, 3679462) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:52,028 - 124495 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 17:54:52,029 - 124495 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:52,321 - 124495 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-02 17:54:53,267 - 124495 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-02 17:54:53,267 - 124495 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-02 17:54:53,267 - 124495 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 17:54:53,268 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679461 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:53,534 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:53,535 - 124495 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:53,831 - 124495 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-02 17:54:54,771 - 124495 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-02 17:54:54,771 - 124495 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-02 17:54:54,771 - 124495 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 17:54:54,772 - 124495 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679462 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:55,037 - 124495 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 17:54:55,038 - 124495 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:55,312 - 124495 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-02 17:54:56,253 - 124495 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-02 17:54:56,253 - 124495 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-02 17:54:56,253 - 124495 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124495;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:56,520 - 124495 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 17:54:56,520 - 124495 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-02 17:54:56,520 - 124495 - src.utils.log - INFO - Time took to perform operation: 19.2 - __SPLIT__ 2026-06-02 17:54:56,520 - 124495 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124495;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:56,788 - 124495 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 17:54:56,788 - 124495 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-02 13:54:56.788' WHERE GenerateWorkOrderHistoryId = 124495;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 17:54:57,056 - 124495 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:10:27,027 - 124497 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124497 - __SPLIT__ 2026-06-02 18:10:27,028 - 124497 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124497 - __SPLIT__ 2026-06-02 18:10:27,029 - 124497 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-02 18:10:27,029 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:30,170 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:30,171 - 124497 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-02 18:10:30,171 - 124497 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-02 18:10:30,172 - 124497 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-02 18:10:30,172 - 124497 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:32,065 - 124497 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:10:32,065 - 124497 - 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 = 124497), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124497), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124497 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:32,378 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:32,378 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:32,653 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:32,656 - 124497 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-02 18:10:32,656 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:32,935 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:32,935 - 124497 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-02 18:10:32,938 - 124497 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-02 18:10:32,938 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:33,215 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:33,216 - 124497 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-02 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150378 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:33,496 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:34,061 - 124497 - src.utils.log - INFO - Generating work orders for setup: 150378 - __SPLIT__ 2026-06-02 18:10:34,078 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:34,348 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:34,356 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:34,631 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:34,667 - 124497 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-02 18:10:34,672 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:34,941 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:34,944 - 124497 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-02 18:10:34,944 - 124497 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-02 18:10:34,944 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:35,265 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:35,265 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:35,586 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:35,586 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:35,864 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:35,865 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:36,184 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:36,185 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:36,505 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:36,505 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:36,789 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:36,789 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:37,069 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:37,069 - 124497 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150378 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:37,457 - 124497 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:10:37,457 - 124497 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:10:37,457 - 124497 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:37,763 - 124497 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-02 18:10:38,730 - 124497 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-02 18:10:38,731 - 124497 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-28 21:10:37.941' and ServiceSetupId = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:39,054 - 124497 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:10:39,055 - 124497 - src.utils.log - INFO - Id's of work order inserted to DB: [3679463 3679464] - __SPLIT__ 2026-06-02 18:10:39,055 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:39,325 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:39,325 - 124497 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-02 18:10:39,326 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:39,598 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:39,598 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:39,868 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:39,875 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:40,151 - 124497 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:10:40,152 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:40,422 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:40,422 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:40,691 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:40,691 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:40,961 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:40,962 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:41,231 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:41,231 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:41,601 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:41,601 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:41,872 - 124497 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:10:41,885 - 124497 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-02 18:10:41,885 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-02 18:10:41,885 - 124497 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,885 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-02 18:10:41,886 - 124497 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:10:41,887 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679464, 3679463) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:42,156 - 124497 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:10:42,157 - 124497 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:42,431 - 124497 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-02 18:10:43,383 - 124497 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-02 18:10:43,384 - 124497 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-02 18:10:43,384 - 124497 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:10:43,384 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679463 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:43,652 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:43,653 - 124497 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:43,930 - 124497 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-02 18:10:44,878 - 124497 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-02 18:10:44,878 - 124497 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-02 18:10:44,878 - 124497 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:10:44,879 - 124497 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679464 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:45,147 - 124497 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:10:45,148 - 124497 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:45,424 - 124497 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-02 18:10:46,372 - 124497 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-02 18:10:46,372 - 124497 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-02 18:10:46,372 - 124497 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:46,647 - 124497 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:10:46,647 - 124497 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-02 18:10:46,647 - 124497 - src.utils.log - INFO - Time took to perform operation: 19.62 - __SPLIT__ 2026-06-02 18:10:46,647 - 124497 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:46,916 - 124497 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:10:46,916 - 124497 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-02 14:10:46.916' WHERE GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:10:47,186 - 124497 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:12:24,766 - [124497] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679463, 3679464] user_id=43135 company_id=133 project_id=[124497] publish_all=False - __SPLIT__ 2026-06-02 18:12:24,767 - [124497] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679463, 3679464] user_id=43135 company_id=133 project_id=[124497] publish_all=False - __SPLIT__ 2026-06-02 18:12:24,768 - [124497] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124497] - __SPLIT__ 2026-06-02 18:12:24,768 - [124497] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-02 18:12:24,768 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:26,781 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:26,782 - [124497] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-02 18:12:26,782 - [124497] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-02 18:12:26,782 - [124497] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-02 18:12:26,783 - [124497] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:28,672 - [124497] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:12:28,672 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:28,948 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:28,948 - [124497] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-02 18:12:28,949 - [124497] - 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 = 150378 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:29,228 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:29,228 - [124497] - 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 = 150378 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:29,507 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:29,508 - [124497] - 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 = 150378 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:29,789 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:29,794 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:30,063 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:30,064 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:30,333 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:30,333 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:30,603 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:30,604 - [124497] - 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-06-02 18:12:30,875 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:30,875 - [124497] - 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-06-02 18:12:31,148 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:31,152 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod , SalesTaxRoundingMethod , SalesTaxRoundingLevel FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:31,423 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:31,424 - [124497] - 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 = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:31,699 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:31,702 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:31,970 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:31,971 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14901' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:32,240 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:32,243 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426604', '1426605') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:32,517 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:32,517 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:32,958 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-02 18:12:33,929 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-02 18:12:34,064 - [124497] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-02 18:12:34,065 - [124497] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:34,336 - [124497] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:12:34,337 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426604', '1426605') AND wo.AccountNumber = '14901' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-02 18:12:34,612 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:34,613 - [124497] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-02 18:12:34,613 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:34,922 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:34,922 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:35,195 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:35,196 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:35,488 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:35,488 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:35,760 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:35,760 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:36,032 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:36,032 - [124497] - 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 (3679463, 3679464)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:36,329 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:36,329 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679463, 3679464) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:36,601 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:36,601 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679463, 3679464);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:36,872 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:36,874 - [124497] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-02 18:12:36,888 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:37,158 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:37,159 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:37,428 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:37,432 - [124497] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:12:37,432 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:37,729 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-02 18:12:38,687 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-02 18:12:38,689 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150378 AND WorkOrderNo IN ('185142', '8785218') AND GenerateWorkOrderHistoryId = 124497;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-02 18:12:39,163 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:39,163 - [124497] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-02 18:12:39,169 - [124497] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-02 18:12:39,169 - [124497] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:12:39,169 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:39,446 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-02 18:12:40,399 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-02 18:12:40,400 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-02 18:12:40,400 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-02 18:12:40,400 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-02 18:12:40,400 - [124497] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:12:40,400 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:40,675 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-02 18:12:41,631 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-02 18:12:41,631 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-02 18:12:41,631 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-02 18:12:41,631 - [124497] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:12:41,632 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:41,909 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-02 18:12:42,907 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-02 18:12:42,907 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod , SalesTaxRoundingMethod , SalesTaxRoundingLevel FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:43,176 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:43,176 - [124497] - 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 = 150378... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:43,446 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:43,453 - [124497] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-02 18:12:43,454 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:43,863 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-02 18:12:44,813 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-02 18:12:44,949 - [124497] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-02 18:12:44,949 - [124497] - 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-06-02 14:12:43.448';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:45,354 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:45,356 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:45,627 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:45,635 - [124497] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-02 14:12:43.448'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-02 18:12:46,021 - [124497] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-02 18:12:46,026 - [124497] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:12:46,026 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:46,305 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-02 18:12:47,261 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-02 18:12:47,262 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426604', '1426605')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:48,125 - [124497] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-02 18:12:48,135 - [124497] - 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 = 150378 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:48,409 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:48,409 - [124497] - 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 = 150378 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:48,682 - [124497] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-02 18:12:48,683 - [124497] - 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 = 150378 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:48,956 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:48,956 - [124497] - 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 = 150378 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:49,229 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:49,243 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:49,514 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:49,519 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:49,791 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:49,794 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150378;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:50,066 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:50,067 - [124497] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-02 18:12:50,067 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-02 18:12:50,067 - [124497] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-02 18:12:50,067 - [124497] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:50,348 - [124497] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-02 18:12:51,299 - [124497] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-02 18:12:51,299 - [124497] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-02 18:12:51,300 - [124497] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-02 18:12:51,300 - [124497] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-02 18:12:51,300 - [124497] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124497 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:51,573 - [124497] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-02 18:12:51,579 - [124497] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-02 18:12:51,715 - [124497] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_6733902614 - __SPLIT__ 2026-06-02 18:12:51,988 - [124497] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_6733902614 - __SPLIT__ 2026-06-02 18:12:52,257 - [124497] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-02 18:12:52,400 - [124497] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-02 18:12:52,540 - [124497] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_6733902614 - __SPLIT__ 2026-06-02 18:12:52,540 - [124497] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_6733902614 - __SPLIT__ 2026-06-02 18:12:52,540 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124497 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:52,811 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:52,811 - [124497] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-02 18:12:52,811 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:53,216 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:53,216 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:53,573 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:53,573 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:53,845 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:53,845 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:54,193 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:54,194 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:54,470 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:54,471 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:54,745 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:54,745 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:55,016 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:55,017 - [124497] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679463, 3679464) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:55,382 - [124497] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-02 18:12:55,382 - [124497] - src.utils.log - INFO - Work order published ids: (3679463, 3679464) - __SPLIT__ 2026-06-02 18:12:55,382 - [124497] - src.utils.log - INFO - Time took to perform operation in publishing [124497]: 30.61 - __SPLIT__ 2026-06-02 18:12:55,382 - [124497] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124497] - __SPLIT__ 2026-06-02 18:12:55,382 - [124497] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-02 14:12:55.382' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124497;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-02 18:12:55,653 - [124497] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:14:19,143 - 124499 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124499 - __SPLIT__ 2026-06-03 05:14:19,144 - 124499 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124499 - __SPLIT__ 2026-06-03 05:14:19,144 - 124499 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:14:19,144 - 124499 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:14:21,198 - 124499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:14:21,199 - 124499 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 05:14:21,199 - 124499 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 05:14:21,200 - 124499 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 05:14:21,200 - 124499 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:14:23,046 - 124499 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:14:23,046 - 124499 - 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 = 124499), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124499), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124499 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:14:23,347 - 124499 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:14:23,347 - 124499 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:14:23,612 - 124499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:14:23,613 - 124499 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124499 - __SPLIT__ 2026-06-03 05:14:23,613 - 124499 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:14:23,878 - 124499 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:14:23,878 - 124499 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 01:14:23.878' WHERE GenerateWorkOrderHistoryId = 124499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:14:24,143 - 124499 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:29:32,877 - 12247 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12247 - __SPLIT__ 2026-06-03 05:29:32,877 - 12247 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12247 - __SPLIT__ 2026-06-03 05:29:32,878 - 12247 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:29:32,878 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:34,950 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:34,951 - 12247 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 05:29:34,951 - 12247 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12247;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:35,242 - 12247 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:29:35,242 - 12247 - 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 = 12247), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12247), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12247 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:35,595 - 12247 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:29:35,596 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12247;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:35,890 - 12247 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:29:35,893 - 12247 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 05:29:35,893 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:36,186 - 12247 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 05:29:36,186 - 12247 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 05:29:36,189 - 12247 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 05:29:36,190 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:36,495 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:36,495 - 12247 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId = 23928 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:36,795 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:37,405 - 12247 - src.utils.log - INFO - Generating work orders for setup: 23928 - __SPLIT__ 2026-06-03 05:29:37,426 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:37,718 - 12247 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:29:37,847 - 12247 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 05:29:37,854 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:38,145 - 12247 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:29:38,147 - 12247 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 05:29:38,147 - 12247 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 05:29:38,147 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:38,452 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:38,452 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:38,750 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:38,750 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:39,057 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:39,057 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:39,370 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:39,370 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:39,677 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:39,678 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:39,969 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:39,969 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:40,267 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:40,267 - 12247 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:40,590 - 12247 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:29:40,590 - 12247 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:29:40,590 - 12247 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:40,925 - 12247 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 05:29:41,971 - 12247 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 05:29:41,971 - 12247 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-28 21:10:37.941' and ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:42,274 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:42,274 - 12247 - src.utils.log - INFO - Id's of work order inserted to DB: [2730244 2730245] - __SPLIT__ 2026-06-03 05:29:42,274 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:42,566 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:42,566 - 12247 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 05:29:42,567 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:42,859 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:42,859 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:43,151 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:43,158 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:43,451 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:43,452 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:43,750 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:43,750 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:44,042 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:44,043 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:44,335 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:44,337 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:44,622 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:44,623 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:44,929 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:44,929 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:45,217 - 12247 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:29:45,232 - 12247 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 05:29:45,232 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:29:45,233 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730244, 2730245) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:45,524 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:45,525 - 12247 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:45,840 - 12247 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-03 05:29:46,869 - 12247 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 05:29:46,870 - 12247 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:29:46,871 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730244, 2730245) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:47,162 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:47,163 - 12247 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:47,464 - 12247 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 05:29:48,487 - 12247 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 05:29:48,488 - 12247 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 05:29:48,488 - 12247 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 05:29:48,488 - 12247 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 05:29:48,488 - 12247 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:29:48,488 - 12247 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730244, 2730245) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:48,780 - 12247 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:29:48,781 - 12247 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:49,080 - 12247 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 05:29:50,110 - 12247 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 05:29:50,111 - 12247 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 05:29:50,111 - 12247 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12247;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:50,397 - 12247 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:29:50,398 - 12247 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 05:29:50,398 - 12247 - src.utils.log - INFO - Time took to perform operation: 17.52 - __SPLIT__ 2026-06-03 05:29:50,398 - 12247 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12247;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:50,690 - 12247 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:29:50,690 - 12247 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 01:29:50.690' WHERE GenerateWorkOrderHistoryId = 12247;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:29:50,982 - 12247 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:47:52,115 - 12248 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12248 - __SPLIT__ 2026-06-03 05:47:52,116 - 12248 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12248 - __SPLIT__ 2026-06-03 05:47:52,130 - 12248 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:47:52,131 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:54,697 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:47:54,697 - 12248 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 05:47:54,697 - 12248 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:55,068 - 12248 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:47:55,068 - 12248 - 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 = 12248), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12248), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12248 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:55,417 - 12248 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:47:55,418 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:55,706 - 12248 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:47:55,710 - 12248 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 05:47:55,711 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:55,992 - 12248 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 05:47:55,992 - 12248 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 05:47:55,996 - 12248 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 05:47:55,996 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:56,279 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:47:56,279 - 12248 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-11-30 00:00:00' and ServiceSetupId = 23928 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:56,566 - 12248 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 05:47:57,145 - 12248 - src.utils.log - INFO - Generating work orders for setup: 23928 - __SPLIT__ 2026-06-03 05:47:57,181 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:57,463 - 12248 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:47:57,510 - 12248 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 05:47:57,517 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:57,801 - 12248 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:47:57,802 - 12248 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 05:47:57,803 - 12248 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 05:47:57,803 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:58,112 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:58,112 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:58,405 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:58,405 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:58,697 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:58,697 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:59,004 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:59,004 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:59,297 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:59,297 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:59,589 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:59,589 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:47:59,871 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:47:59,871 - 12248 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23928 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:00,189 - 12248 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:48:00,189 - 12248 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:00,189 - 12248 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:00,507 - 12248 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 05:48:01,551 - 12248 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 05:48:01,552 - 12248 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 11:15:29.096' and ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:01,843 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:01,844 - 12248 - src.utils.log - INFO - Id's of work order inserted to DB: [2730246 2730247] - __SPLIT__ 2026-06-03 05:48:01,844 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:02,130 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:02,130 - 12248 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 05:48:02,131 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:02,419 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:02,419 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:02,716 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:02,724 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:03,008 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:03,009 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:03,299 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:03,300 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:03,582 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:03,582 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:03,865 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:03,866 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:04,161 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:04,161 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:04,459 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:04,459 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:04,741 - 12248 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:04,757 - 12248 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 05:48:04,757 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 05:48:04,757 - 12248 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 05:48:04,757 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 05:48:04,757 - 12248 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 05:48:04,757 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 05:48:04,758 - 12248 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 05:48:04,758 - 12248 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:04,758 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730246, 2730247) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:05,048 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:05,049 - 12248 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:05,344 - 12248 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-03 05:48:06,368 - 12248 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 05:48:06,368 - 12248 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 05:48:06,368 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 05:48:06,368 - 12248 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 05:48:06,368 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 05:48:06,369 - 12248 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 05:48:06,369 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 05:48:06,369 - 12248 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 05:48:06,369 - 12248 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:06,369 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730246, 2730247) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:06,650 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:06,651 - 12248 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:06,943 - 12248 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 05:48:07,945 - 12248 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 05:48:07,946 - 12248 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 05:48:07,946 - 12248 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 05:48:07,946 - 12248 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 05:48:07,946 - 12248 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:07,946 - 12248 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730246, 2730247) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:08,228 - 12248 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:08,229 - 12248 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:08,523 - 12248 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 05:48:09,533 - 12248 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 05:48:09,534 - 12248 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 05:48:09,534 - 12248 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:09,820 - 12248 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:48:09,821 - 12248 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 05:48:09,821 - 12248 - src.utils.log - INFO - Time took to perform operation: 17.7 - __SPLIT__ 2026-06-03 05:48:09,821 - 12248 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:10,102 - 12248 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:48:10,103 - 12248 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 01:48:10.102' WHERE GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:10,390 - 12248 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:48:32,582 - [12248] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730246, 2730247] user_id=122885 company_id=135 project_id=[12248] publish_all=False - __SPLIT__ 2026-06-03 05:48:32,583 - [12248] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730246, 2730247] user_id=122885 company_id=135 project_id=[12248] publish_all=False - __SPLIT__ 2026-06-03 05:48:32,583 - [12248] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12248] - __SPLIT__ 2026-06-03 05:48:32,584 - [12248] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:48:32,584 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:34,587 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:34,588 - [12248] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 05:48:34,588 - [12248] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:34,874 - [12248] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:48:34,874 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:35,168 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:35,169 - [12248] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 05:48:35,169 - [12248] - 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 = 23928 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:35,460 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:35,460 - [12248] - 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 = 23928 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:35,752 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:35,752 - [12248] - 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 = 23928 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:36,029 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:36,033 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:36,317 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:36,317 - [12248] - 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-06-03 05:48:36,604 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:36,604 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:36,896 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:36,896 - [12248] - 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-06-03 05:48:37,178 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:37,181 - [12248] - 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 = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:37,466 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:37,469 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:37,753 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:37,753 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8412' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:38,055 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:38,058 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167601R', '167602R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:38,353 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:38,353 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:38,820 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 05:48:39,854 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 05:48:39,996 - [12248] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 05:48:39,998 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167601R', '167602R') AND wo.AccountNumber = '8412' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 05:48:40,288 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:40,289 - [12248] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 05:48:40,289 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:40,576 - [12248] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 05:48:40,576 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:40,867 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:40,868 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:41,156 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:41,156 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:41,442 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:41,443 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:41,729 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:41,729 - [12248] - 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 (2730246, 2730247)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:42,033 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:42,033 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2730246, 2730247) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:42,319 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:42,319 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2730246, 2730247);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:42,611 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:42,614 - [12248] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 05:48:42,626 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:42,909 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:42,912 - [12248] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1981 AND CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:43,201 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:43,203 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:43,483 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:43,487 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:43,487 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:43,797 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 05:48:44,803 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 05:48:44,804 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23928 AND WorkOrderNo IN ('2409837', '4935701') AND GenerateWorkOrderHistoryId = 12248;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-03 05:48:45,111 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:45,112 - [12248] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 05:48:45,118 - [12248] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 05:48:45,118 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:45,118 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:45,411 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 05:48:46,431 - [12248] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 05:48:46,431 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:46,431 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:46,721 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-03 05:48:47,736 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 05:48:47,737 - [12248] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 05:48:47,737 - [12248] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 05:48:47,737 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:47,737 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:48,024 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-03 05:48:49,042 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-03 05:48:49,042 - [12248] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 05:48:49,042 - [12248] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 05:48:49,042 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:49,042 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:49,336 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 05:48:50,357 - [12248] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 05:48:50,358 - [12248] - 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 = 23928... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:50,648 - [12248] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:48:50,655 - [12248] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 05:48:50,656 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:51,084 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 05:48:52,091 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 05:48:52,232 - [12248] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 05:48:52,233 - [12248] - 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-06-03 01:48:50.650';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:52,545 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:52,548 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:52,827 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:52,836 - [12248] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 01:48:50.650'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 05:48:53,144 - [12248] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:48:53,150 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:53,150 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:53,441 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 05:48:54,470 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 05:48:54,471 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167602R', '167601R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:54,784 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:54,793 - [12248] - 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 = 23928 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:55,081 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:55,081 - [12248] - 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 = 23928 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:55,363 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:55,364 - [12248] - 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 = 23928 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:55,660 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:55,660 - [12248] - 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 = 23928 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:55,953 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:55,967 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:56,259 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:48:56,265 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:56,547 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:56,558 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23928;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:56,844 - [12248] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:48:56,854 - [12248] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 05:48:56,854 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:56,854 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:57,162 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-03 05:48:58,179 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-03 05:48:58,179 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:58,180 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:58,471 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 05:48:59,495 - [12248] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 05:48:59,495 - [12248] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:48:59,495 - [12248] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:48:59,806 - [12248] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-03 05:49:00,835 - [12248] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-03 05:49:00,835 - [12248] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 05:49:00,836 - [12248] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 05:49:00,836 - [12248] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12248 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:01,133 - [12248] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:49:01,140 - [12248] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 05:49:01,284 - [12248] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_48f3f5b0e4 - __SPLIT__ 2026-06-03 05:49:01,566 - [12248] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_48f3f5b0e4 - __SPLIT__ 2026-06-03 05:49:01,853 - [12248] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 05:49:02,009 - [12248] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 05:49:02,156 - [12248] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_48f3f5b0e4 - __SPLIT__ 2026-06-03 05:49:02,156 - [12248] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_48f3f5b0e4 - __SPLIT__ 2026-06-03 05:49:02,156 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12248 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:02,438 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:02,438 - [12248] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 05:49:02,438 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:02,735 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:02,736 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:03,032 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:03,033 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:03,310 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:03,310 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:03,627 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:03,628 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:03,930 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:03,930 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:04,222 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:04,222 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:04,504 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:04,504 - [12248] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730246, 2730247) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:04,817 - [12248] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:49:04,817 - [12248] - src.utils.log - INFO - Work order published ids: (2730246, 2730247) - __SPLIT__ 2026-06-03 05:49:04,817 - [12248] - src.utils.log - INFO - Time took to perform operation in publishing [12248]: 32.23 - __SPLIT__ 2026-06-03 05:49:04,817 - [12248] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12248] - __SPLIT__ 2026-06-03 05:49:04,817 - [12248] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 01:49:04.817' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12248;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:49:05,104 - [12248] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:52:31,033 - 12249 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12249 - __SPLIT__ 2026-06-03 05:52:31,034 - 12249 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12249 - __SPLIT__ 2026-06-03 05:52:31,049 - 12249 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:52:31,049 - 12249 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:52:33,684 - 12249 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:52:33,685 - 12249 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 05:52:33,685 - 12249 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12249;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:52:33,975 - 12249 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:52:33,975 - 12249 - 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 = 12249), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12249), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12249 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:52:34,306 - 12249 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:52:34,306 - 12249 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12249;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:52:34,608 - 12249 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:52:34,609 - 12249 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12249 - __SPLIT__ 2026-06-03 05:52:34,609 - 12249 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12249;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:52:34,898 - 12249 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:52:34,898 - 12249 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 01:52:34.898' WHERE GenerateWorkOrderHistoryId = 12249;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:52:35,189 - 12249 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:54:23,246 - 12250 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12250 - __SPLIT__ 2026-06-03 05:54:23,247 - 12250 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12250 - __SPLIT__ 2026-06-03 05:54:23,248 - 12250 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:54:23,248 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:25,276 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:25,276 - 12250 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 05:54:25,276 - 12250 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:25,563 - 12250 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:54:25,563 - 12250 - 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 = 12250), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12250), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12250 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:25,887 - 12250 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:54:25,888 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:26,175 - 12250 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:54:26,178 - 12250 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 05:54:26,179 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:26,476 - 12250 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 05:54:26,476 - 12250 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 05:54:26,479 - 12250 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 05:54:26,480 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:26,764 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:26,764 - 12250 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23975 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:27,055 - 12250 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:54:27,731 - 12250 - src.utils.log - INFO - Generating work orders for setup: 23975 - __SPLIT__ 2026-06-03 05:54:27,765 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1349;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:28,053 - 12250 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:54:28,100 - 12250 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 05:54:28,106 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:28,391 - 12250 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:54:28,392 - 12250 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 05:54:28,393 - 12250 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 05:54:28,393 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:28,682 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:28,682 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:28,975 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:28,975 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:29,282 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:29,282 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:29,579 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:29,580 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:29,872 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:29,872 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:30,159 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:30,159 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:30,441 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:30,441 - 12250 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23975 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:30,754 - 12250 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:54:30,754 - 12250 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:54:30,754 - 12250 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:31,072 - 12250 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 05:54:32,261 - 12250 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 05:54:32,261 - 12250 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 11:15:29.096' and ServiceSetupId = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:32,549 - 12250 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:54:32,550 - 12250 - src.utils.log - INFO - Id's of work order inserted to DB: [2730248 2730249 2730250 2730251 2730252] - __SPLIT__ 2026-06-03 05:54:32,550 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:32,836 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:32,836 - 12250 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 05:54:32,837 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:33,139 - 12250 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:54:33,139 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:33,426 - 12250 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:54:33,434 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:33,719 - 12250 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:54:33,720 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:34,000 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:34,001 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:34,287 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:34,288 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:34,575 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:34,576 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:34,857 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:34,858 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:35,159 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:35,160 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:35,442 - 12250 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:35,454 - 12250 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 05:54:35,454 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 05:54:35,454 - 12250 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 05:54:35,455 - 12250 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:54:35,456 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730248, 2730249, 2730250, 2730251, 2730252) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:35,733 - 12250 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:54:35,734 - 12250 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:36,031 - 12250 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 05:54:37,053 - 12250 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 05:54:37,054 - 12250 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 05:54:37,054 - 12250 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 05:54:37,054 - 12250 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 05:54:37,054 - 12250 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:54:37,055 - 12250 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730248, 2730249, 2730250, 2730251, 2730252) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:37,347 - 12250 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:54:37,348 - 12250 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:37,636 - 12250 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 05:54:38,666 - 12250 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 05:54:38,667 - 12250 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 05:54:38,667 - 12250 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:38,974 - 12250 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:54:38,974 - 12250 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 05:54:38,974 - 12250 - src.utils.log - INFO - Time took to perform operation: 15.73 - __SPLIT__ 2026-06-03 05:54:38,974 - 12250 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:39,257 - 12250 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:54:39,257 - 12250 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 01:54:39.257' WHERE GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:39,549 - 12250 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:54:57,036 - [12250] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730248, 2730249, 2730250, 2730251, 2730252] user_id=122885 company_id=135 project_id=[12250] publish_all=False - __SPLIT__ 2026-06-03 05:54:57,038 - [12250] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730248, 2730249, 2730250, 2730251, 2730252] user_id=122885 company_id=135 project_id=[12250] publish_all=False - __SPLIT__ 2026-06-03 05:54:57,038 - [12250] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12250] - __SPLIT__ 2026-06-03 05:54:57,052 - [12250] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 05:54:57,052 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:59,677 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:54:59,678 - [12250] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 05:54:59,678 - [12250] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:54:59,974 - [12250] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:54:59,974 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:00,270 - [12250] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:55:00,270 - [12250] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 05:55:00,270 - [12250] - 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 = 23975 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:00,569 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:00,569 - [12250] - 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 = 23975 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:00,856 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:00,857 - [12250] - 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 = 23975 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:01,153 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:01,158 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:01,451 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:01,451 - [12250] - 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-06-03 05:55:01,743 - [12250] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:55:01,744 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:02,036 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:02,036 - [12250] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 5 OUTPUT INSERTED.NextNumber - 5 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:02,338 - [12250] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:55:02,342 - [12250] - 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 = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:02,636 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:02,640 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:02,938 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:02,939 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8447' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:03,225 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:03,228 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167603R', '167604R', '167605R', '167606R', '167607R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:03,517 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:03,518 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:03,992 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 05:55:05,220 - [12250] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 05:55:05,367 - [12250] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 05:55:05,369 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167603R', '167604R', '167605R', '167606R', '167607R') AND wo.AccountNumber = '8447' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 05:55:05,665 - [12250] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:55:05,666 - [12250] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 05:55:05,666 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:05,973 - [12250] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-03 05:55:05,973 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:06,269 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:06,269 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:06,572 - [12250] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:55:06,573 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:06,864 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:06,864 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:07,156 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:07,156 - [12250] - 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 (2730248, 2730249, 2730250, 2730251, 2730252)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:07,479 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:07,479 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2730248, 2730249, 2730250, 2730251, 2730252) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:07,776 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:07,777 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:08,063 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:08,066 - [12250] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 05:55:08,079 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:08,371 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:08,372 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:08,658 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:08,662 - [12250] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:55:08,663 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:08,979 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 05:55:10,038 - [12250] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 05:55:10,040 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23975 AND WorkOrderNo IN ('7287051', '3401141', '9625465', '5713198', '7817630') AND GenerateWorkOrderHistoryId = 12250;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-03 05:55:10,352 - [12250] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:55:10,353 - [12250] - src.utils.log - INFO - 🏁 Final merged rows: 5 - __SPLIT__ 2026-06-03 05:55:10,359 - [12250] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 05:55:10,359 - [12250] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:55:10,359 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:10,657 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 05:55:11,697 - [12250] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 05:55:11,697 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 05:55:11,697 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 05:55:11,698 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 05:55:11,698 - [12250] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:55:11,698 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:11,995 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-03 05:55:13,022 - [12250] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-03 05:55:13,023 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 05:55:13,023 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 05:55:13,023 - [12250] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:55:13,023 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:13,322 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 05:55:14,353 - [12250] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 05:55:14,354 - [12250] - 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 = 23975... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:14,657 - [12250] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 05:55:14,663 - [12250] - src.utils.log - INFO - Size of Transaction: 5 - __SPLIT__ 2026-06-03 05:55:14,664 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:15,105 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 05:55:16,137 - [12250] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 05:55:16,278 - [12250] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 05:55:16,279 - [12250] - 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) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-03 01:55:14.658';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:16,611 - [12250] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:55:16,614 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:16,919 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:16,928 - [12250] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914) AND CreatedDate = '2026-06-03 01:55:14.658'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 05:55:17,246 - [12250] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 05:55:17,251 - [12250] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:55:17,252 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:17,553 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.Invoice - __SPLIT__ 2026-06-03 05:55:18,606 - [12250] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 05:55:18,607 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167607R', '167606R', '167605R', '167604R', '167603R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:18,945 - [12250] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 05:55:18,954 - [12250] - 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 = 23975 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:19,247 - [12250] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:55:19,248 - [12250] - 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 = 23975 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:19,545 - [12250] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 05:55:19,545 - [12250] - 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 = 23975 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:19,837 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:19,838 - [12250] - 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 = 23975 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:20,124 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:20,138 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:20,432 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:20,437 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:20,749 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:20,752 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23975;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:21,046 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:21,047 - [12250] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 05:55:21,047 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 05:55:21,047 - [12250] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 05:55:21,048 - [12250] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:21,348 - [12250] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 05:55:22,412 - [12250] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 05:55:22,413 - [12250] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 05:55:22,413 - [12250] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 05:55:22,413 - [12250] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 05:55:22,413 - [12250] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12250 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:22,705 - [12250] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 05:55:22,711 - [12250] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 05:55:22,860 - [12250] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c4024d45ae - __SPLIT__ 2026-06-03 05:55:23,158 - [12250] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c4024d45ae - __SPLIT__ 2026-06-03 05:55:23,451 - [12250] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 05:55:23,605 - [12250] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 05:55:23,752 - [12250] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_c4024d45ae - __SPLIT__ 2026-06-03 05:55:23,752 - [12250] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c4024d45ae - __SPLIT__ 2026-06-03 05:55:23,753 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12250 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:24,044 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:24,045 - [12250] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 05:55:24,045 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:24,352 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:24,352 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:24,649 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:24,649 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:24,947 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:24,947 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:25,275 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:25,275 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:25,587 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:25,587 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:25,879 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:25,879 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:26,166 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:26,167 - [12250] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730248, 2730249, 2730250, 2730251, 2730252) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:26,525 - [12250] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 05:55:26,525 - [12250] - src.utils.log - INFO - Work order published ids: (2730248, 2730249, 2730250, 2730251, 2730252) - __SPLIT__ 2026-06-03 05:55:26,525 - [12250] - src.utils.log - INFO - Time took to perform operation in publishing [12250]: 29.49 - __SPLIT__ 2026-06-03 05:55:26,525 - [12250] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12250] - __SPLIT__ 2026-06-03 05:55:26,525 - [12250] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 01:55:26.525' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 05:55:26,817 - [12250] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:06:09,825 - 124500 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124500 - __SPLIT__ 2026-06-03 06:06:09,826 - 124500 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 124500 - __SPLIT__ 2026-06-03 06:06:09,827 - 124500 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 06:06:09,828 - 124500 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:11,841 - 124500 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:06:11,841 - 124500 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 06:06:11,841 - 124500 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 06:06:11,842 - 124500 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 06:06:11,842 - 124500 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:14,295 - 124500 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:06:14,295 - 124500 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-06-03 02:06:14.295' WHERE GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:14,569 - 124500 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:06:14,569 - 124500 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:14,841 - 124500 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:06:14,841 - 124500 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-06-03 02:06:14.841' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:15,115 - 124500 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:06:15,116 - 124500 - 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 = 124500), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124500), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124500 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:15,436 - 124500 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:06:15,436 - 124500 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:15,709 - 124500 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:06:15,712 - 124500 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 06:06:15,713 - 124500 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:15,990 - 124500 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:06:15,990 - 124500 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 06:06:15,994 - 124500 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 06:06:15,995 - 124500 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150356;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-03 06:06:16,267 - 124500 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:06:16,268 - 124500 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150356 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-03 06:06:16,546 - 124500 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:06:17,115 - 124500 - src.utils.log - INFO - Generating work orders for setup: 150356 - __SPLIT__ 2026-06-03 06:06:17,131 - 124500 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-03 06:06:17,403 - 124500 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:06:17,449 - 124500 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 06:06:17,449 - 124500 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-06-03 06:06:17,449 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-03 06:06:17,450 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_1) - __SPLIT__ 2026-06-03 06:06:17,450 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_2) - __SPLIT__ 2026-06-03 06:06:17,451 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_3) - __SPLIT__ 2026-06-03 06:06:17,452 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_4) - __SPLIT__ 2026-06-03 06:06:17,453 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_5) - __SPLIT__ 2026-06-03 06:06:17,453 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 ) (Thread: ThreadPoolExecutor-4_6) - __SPLIT__ 2026-06-03 06:06:17,779 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,508 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,508 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,543 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,582 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,599 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,618 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:18,619 - 124500 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150356 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:19,008 - 124500 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:06:19,008 - 124500 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:19,271 - 124500 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:06:19,271 - 124500 - src.utils.log - INFO - Error in work order generation Error: cannot unpack non-iterable NoneType object - __SPLIT__ 2026-06-03 06:06:19,271 - 124500 - src.utils.log - INFO - Work order generation failed - Time took: 9.44 - __SPLIT__ 2026-06-03 06:06:19,271 - 124500 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', WorkOrderStatusDateTime = '2026-06-03 02:06:19.271', PublishStatusDateTime = '2026-06-03 02:06:19.271'WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124500;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:06:19,538 - 124500 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:17:50,928 - 12251 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12251 - __SPLIT__ 2026-06-03 06:17:50,929 - 12251 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12251 - __SPLIT__ 2026-06-03 06:17:50,929 - 12251 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 06:17:50,929 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:52,934 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:17:52,934 - 12251 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 06:17:52,934 - 12251 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12251;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:53,215 - 12251 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:17:53,215 - 12251 - 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 = 12251), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12251), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12251 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:53,538 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:17:53,538 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12251;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:53,833 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:17:53,836 - 12251 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 06:17:53,837 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:54,128 - 12251 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 06:17:54,129 - 12251 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 06:17:54,132 - 12251 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 06:17:54,132 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:54,420 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:17:54,421 - 12251 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23976 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:54,708 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:17:55,297 - 12251 - src.utils.log - INFO - Generating work orders for setup: 23976 - __SPLIT__ 2026-06-03 06:17:55,344 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1421;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:55,637 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:17:55,645 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1033;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:55,928 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:17:55,973 - 12251 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 06:17:55,979 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:56,266 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:17:56,268 - 12251 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 06:17:56,268 - 12251 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 06:17:56,268 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:56,566 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:56,567 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:56,864 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:56,865 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:57,161 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:57,162 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:57,610 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:57,610 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:57,907 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:57,907 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:58,200 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:58,200 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:58,486 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:58,487 - 12251 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:58,794 - 12251 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:17:58,794 - 12251 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:17:58,794 - 12251 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:17:59,123 - 12251 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 06:18:00,432 - 12251 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 06:18:00,433 - 12251 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 11:15:29.026' and ServiceSetupId = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:00,725 - 12251 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 06:18:00,726 - 12251 - src.utils.log - INFO - Id's of work order inserted to DB: [2730253 2730254 2730255 2730256 2730257 2730258 2730259] - __SPLIT__ 2026-06-03 06:18:00,726 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:01,012 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:01,013 - 12251 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 06:18:01,013 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:01,308 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:01,309 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:01,593 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:01,601 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:01,885 - 12251 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:18:01,887 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:02,172 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:02,172 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:02,460 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:02,460 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:02,752 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:02,753 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:03,039 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:03,039 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:03,341 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:03,341 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:03,659 - 12251 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:03,671 - 12251 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 06:18:03,671 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 06:18:03,672 - 12251 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:18:03,673 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730253, 2730254, 2730255, 2730256, 2730257, 2730258, 2730259) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:03,961 - 12251 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 06:18:03,962 - 12251 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:04,258 - 12251 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 06:18:05,265 - 12251 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 06:18:05,266 - 12251 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 06:18:05,266 - 12251 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:18:05,266 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2730253 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:05,548 - 12251 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:05,549 - 12251 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:05,843 - 12251 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 06:18:06,853 - 12251 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 06:18:06,853 - 12251 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 06:18:06,854 - 12251 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:18:06,854 - 12251 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730254, 2730255, 2730256, 2730257, 2730258, 2730259) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:07,141 - 12251 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 06:18:07,142 - 12251 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:07,432 - 12251 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 06:18:08,461 - 12251 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 06:18:08,461 - 12251 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 06:18:08,461 - 12251 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12251;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:08,748 - 12251 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:08,748 - 12251 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 06:18:08,748 - 12251 - src.utils.log - INFO - Time took to perform operation: 17.82 - __SPLIT__ 2026-06-03 06:18:08,748 - 12251 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12251;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:09,040 - 12251 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:09,041 - 12251 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 02:18:09.041' WHERE GenerateWorkOrderHistoryId = 12251;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:09,323 - 12251 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:10,163 - 12252 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12252 - __SPLIT__ 2026-06-03 06:18:10,164 - 12252 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 12252 - __SPLIT__ 2026-06-03 06:18:10,178 - 12252 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 06:18:10,178 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:12,781 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:12,782 - 12252 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 06:18:12,782 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:13,062 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:13,063 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-06-03 02:18:13.063' WHERE GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:13,350 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:13,350 - 12252 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:13,643 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:13,644 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-06-03 02:18:13.644' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:13,930 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:13,930 - 12252 - 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 = 12252), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12252), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12252 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:14,263 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:14,263 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:14,552 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:14,555 - 12252 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 06:18:14,556 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:14,838 - 12252 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 06:18:14,838 - 12252 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 06:18:14,844 - 12252 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 06:18:14,844 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23976;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 06:18:15,125 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:15,125 - 12252 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23976 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 06:18:15,412 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:16,032 - 12252 - src.utils.log - INFO - Generating work orders for setup: 23976 - __SPLIT__ 2026-06-03 06:18:16,081 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1421;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 06:18:16,365 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:16,373 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1033;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 06:18:16,663 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:16,702 - 12252 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 06:18:16,707 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 06:18:16,994 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:16,998 - 12252 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 06:18:16,998 - 12252 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-06-03 06:18:16,998 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-03 06:18:16,999 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-06-03 06:18:16,999 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-06-03 06:18:17,000 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_3) - __SPLIT__ 2026-06-03 06:18:17,001 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_4) - __SPLIT__ 2026-06-03 06:18:17,002 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_5) - __SPLIT__ 2026-06-03 06:18:17,002 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 ) (Thread: ThreadPoolExecutor-1_6) - __SPLIT__ 2026-06-03 06:18:17,306 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,163 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,164 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,168 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,168 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,173 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,178 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,179 - 12252 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23976 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:18,536 - 12252 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:18:18,538 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:18,820 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:18,820 - 12252 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 06:18:18,821 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23976... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 06:18:18,821 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23976... (Thread: ThreadPoolExecutor-2_1) - __SPLIT__ 2026-06-03 06:18:18,822 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23976... (Thread: ThreadPoolExecutor-2_2) - __SPLIT__ 2026-06-03 06:18:18,822 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23976... (Thread: ThreadPoolExecutor-2_3) - __SPLIT__ 2026-06-03 06:18:18,823 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23976;... (Thread: ThreadPoolExecutor-2_5) - __SPLIT__ 2026-06-03 06:18:18,823 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23976;... (Thread: ThreadPoolExecutor-2_4) - __SPLIT__ 2026-06-03 06:18:18,824 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23976;... (Thread: ThreadPoolExecutor-2_6) - __SPLIT__ 2026-06-03 06:18:18,824 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23976;... (Thread: ThreadPoolExecutor-2_7) - __SPLIT__ 2026-06-03 06:18:19,112 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:19,113 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:19,114 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:19,116 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:19,117 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:19,117 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23976... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 06:18:19,119 - 12252 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:18:19,131 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:19,404 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:20,002 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:20,016 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:20,300 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:20,300 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 02:18:20.300' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:20,592 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:20,592 - 12252 - src.utils.log - INFO - - __SPLIT__ 2026-06-03 06:18:20,592 - 12252 - src.utils.log - INFO - Work order generation successful - Time took: 10.43 - __SPLIT__ 2026-06-03 06:18:20,593 - 12252 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 12252 - __SPLIT__ 2026-06-03 06:18:20,593 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-06-03 02:18:20.593' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:20,880 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:20,882 - 12252 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:21,172 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:21,173 - 12252 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 06:18:21,173 - 12252 - 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 = 23976 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:21,465 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:21,465 - 12252 - 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 = 23976 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:21,757 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:21,758 - 12252 - 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 = 23976 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:22,049 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:22,055 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:22,350 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:22,350 - 12252 - 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-06-03 06:18:22,634 - 12252 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:18:22,635 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:22,926 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:22,927 - 12252 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 7 OUTPUT INSERTED.NextNumber - 7 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:23,214 - 12252 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:18:23,218 - 12252 - 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 = 23976... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:23,507 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:23,512 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:23,808 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:23,809 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8448' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:24,096 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:24,098 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167608R', '167609R', '167610R', '167611R', '167612R', '167613R', '167614R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:24,388 - 12252 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:18:24,388 - 12252 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:24,882 - 12252 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 06:18:26,275 - 12252 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 06:18:26,421 - 12252 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 06:18:26,423 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23976;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:26,701 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:18:26,703 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167608R', '167609R', '167610R', '167611R', '167612R', '167613R', '167614R') AND wo.AccountNumber = '8448' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-03 06:18:26,997 - 12252 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 06:18:27,003 - 12252 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 06:18:27,020 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:27,306 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:27,308 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:27,599 - 12252 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:18:27,604 - 12252 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:18:27,604 - 12252 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:27,939 - 12252 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 06:18:29,271 - 12252 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 06:18:29,273 - 12252 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23976 AND WorkOrderNo IN (450547, 1927321, 7580485, 8538195, 2485961, 8033021, 4595486) AND GenerateWorkOrderHistoryId = 12252;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-03 06:18:29,590 - 12252 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 06:18:29,591 - 12252 - src.utils.log - INFO - 🏁 Final merged rows: 7 - __SPLIT__ 2026-06-03 06:18:29,598 - 12252 - src.utils.log - INFO - Error: insert_all_publish_tables_parallel() takes 11 positional arguments but 12 were given - __SPLIT__ 2026-06-03 06:18:29,599 - 12252 - src.utils.log - INFO - Time took to perform operation in publishing 12252: 19.43 - __SPLIT__ 2026-06-03 06:18:29,599 - 12252 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 12252 - __SPLIT__ 2026-06-03 06:18:29,599 - 12252 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 02:18:29.599' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12252;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:18:29,881 - 12252 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:14,193 - 124501 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124501 - __SPLIT__ 2026-06-03 06:59:14,195 - 124501 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124501 - __SPLIT__ 2026-06-03 06:59:14,209 - 124501 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 06:59:14,209 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:16,890 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:16,890 - 124501 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 06:59:16,891 - 124501 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 06:59:16,892 - 124501 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 06:59:16,892 - 124501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:19,308 - 124501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:19,308 - 124501 - 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 = 124501), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124501), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124501 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:19,620 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:19,620 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:19,890 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:19,893 - 124501 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 06:59:19,894 - 124501 - 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 = 14513... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:20,174 - 124501 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 06:59:20,174 - 124501 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 06:59:20,178 - 124501 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 06:59:20,179 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:20,449 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:20,450 - 124501 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150380 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:20,725 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:21,289 - 124501 - src.utils.log - INFO - Generating work orders for setup: 150380 - __SPLIT__ 2026-06-03 06:59:21,307 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:21,576 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:21,584 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:21,852 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:21,886 - 124501 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 06:59:21,891 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:22,160 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:22,162 - 124501 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 06:59:22,162 - 124501 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 06:59:22,162 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:22,485 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:22,485 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:22,806 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:22,806 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:23,082 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:23,083 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:23,404 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:23,405 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:23,749 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:23,749 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:24,031 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:24,032 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:24,303 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:24,303 - 124501 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150380 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:24,693 - 124501 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 06:59:24,693 - 124501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:59:24,693 - 124501 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:25,002 - 124501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 06:59:25,991 - 124501 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 06:59:25,991 - 124501 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.614' and ServiceSetupId = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:26,345 - 124501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:26,346 - 124501 - src.utils.log - INFO - Id's of work order inserted to DB: [3679465 3679466] - __SPLIT__ 2026-06-03 06:59:26,346 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:26,616 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:26,616 - 124501 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 06:59:26,617 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:26,889 - 124501 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:26,889 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:27,158 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:27,162 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:27,436 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:27,436 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:27,704 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:27,705 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:27,973 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:27,974 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:28,244 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:28,244 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:28,512 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:28,513 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:29,163 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:29,163 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:29,436 - 124501 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 06:59:29,445 - 124501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:59:29,446 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679465, 3679466) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:29,714 - 124501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:29,715 - 124501 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:30,019 - 124501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-03 06:59:31,115 - 124501 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 06:59:31,116 - 124501 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 06:59:31,117 - 124501 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679465, 3679466) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:31,384 - 124501 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:31,385 - 124501 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:31,660 - 124501 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 06:59:32,615 - 124501 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 06:59:32,615 - 124501 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 06:59:32,615 - 124501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:32,884 - 124501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:32,885 - 124501 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 06:59:32,885 - 124501 - src.utils.log - INFO - Time took to perform operation: 18.69 - __SPLIT__ 2026-06-03 06:59:32,885 - 124501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:33,156 - 124501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:33,156 - 124501 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 02:59:33.156' WHERE GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:33,425 - 124501 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:47,543 - [124501] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679465, 3679466] user_id=43135 company_id=133 project_id=[124501] publish_all=False - __SPLIT__ 2026-06-03 06:59:47,544 - [124501] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679465, 3679466] user_id=43135 company_id=133 project_id=[124501] publish_all=False - __SPLIT__ 2026-06-03 06:59:47,544 - [124501] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124501] - __SPLIT__ 2026-06-03 06:59:47,545 - [124501] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 06:59:47,545 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:49,570 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:49,571 - [124501] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 06:59:49,571 - [124501] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 06:59:49,572 - [124501] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 06:59:49,572 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:51,458 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:51,458 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:51,733 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:51,733 - [124501] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 06:59:51,733 - [124501] - 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 = 150380 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:52,013 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:52,013 - [124501] - 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 = 150380 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:52,292 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:52,293 - [124501] - 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 = 150380 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:52,574 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:52,578 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:52,846 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:52,847 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:53,116 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:53,116 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:53,385 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:53,385 - [124501] - 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-06-03 06:59:53,657 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:53,658 - [124501] - 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-06-03 06:59:53,928 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:53,932 - [124501] - 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 = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:54,207 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:54,209 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:54,478 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:54,478 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14901' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:54,747 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:54,750 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426608', '1426609') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:55,029 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:55,030 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:55,468 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 06:59:56,452 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 06:59:56,587 - [124501] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 06:59:56,588 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:56,858 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 06:59:56,859 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426608', '1426609') AND wo.AccountNumber = '14901' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 06:59:57,136 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:57,137 - [124501] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 06:59:57,137 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:57,446 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:57,446 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:57,720 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 06:59:57,720 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:58,021 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:58,021 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:58,291 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:58,291 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:58,567 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:58,568 - [124501] - 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 (3679465, 3679466)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:58,997 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:58,997 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679465, 3679466) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:59,273 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:59,274 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679465, 3679466);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:59,543 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 06:59:59,546 - [124501] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 06:59:59,563 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 06:59:59,832 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 06:59:59,832 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:00,109 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:00:00,110 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22784' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:00,392 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:00:00,396 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:00,396 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:00,692 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 07:00:01,659 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 07:00:01,661 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150380 AND WorkOrderNo IN ('2728623', '1470076') AND GenerateWorkOrderHistoryId = 124501;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-03 07:00:02,261 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:00:02,262 - [124501] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 07:00:02,268 - [124501] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 07:00:02,268 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:02,268 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:02,545 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 07:00:03,495 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:03,496 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:03,777 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 07:00:04,735 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 07:00:04,735 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:04,735 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:05,041 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 07:00:06,152 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 07:00:06,153 - [124501] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156895, 2156896)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:06,439 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:00:06,445 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:06,445 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:06,739 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 07:00:07,570 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 07:00:07,571 - [124501] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230382, 230383) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:07,851 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:00:07,852 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 07:00:08,170 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:00:08,178 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:08,178 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:08,481 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 07:00:09,302 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 07:00:09,302 - [124501] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192552, 192553)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:09,573 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:00:09,573 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192552', '0___TMP___192553') AND CreatedDate = '2026-06-03 03:00:06.443'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-03 07:00:09,859 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:00:09,866 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:09,866 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:10,159 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 07:00:11,113 - [124501] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 07:00:11,114 - [124501] - 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 = 150380... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:11,383 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:00:11,389 - [124501] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 07:00:11,390 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:11,804 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 07:00:12,760 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:00:12,895 - [124501] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:00:12,896 - [124501] - 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-06-03 03:00:11.384';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:14,012 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:00:14,015 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:14,286 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:00:14,295 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 03:00:11.384'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-03 07:00:14,681 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:00:14,686 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:14,686 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:14,965 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 07:00:15,923 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 07:00:15,924 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426608', '1426609')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:16,792 - [124501] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:00:16,801 - [124501] - 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 = 150380 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:17,074 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:00:17,074 - [124501] - 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 = 150380 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:17,346 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:00:17,346 - [124501] - 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 = 150380 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:17,619 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:00:17,619 - [124501] - 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 = 150380 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:17,892 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:00:17,905 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:18,176 - [124501] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:00:18,182 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:18,453 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:00:18,456 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150380;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:18,726 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:00:18,727 - [124501] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 07:00:18,727 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 07:00:18,727 - [124501] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:00:18,727 - [124501] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:19,005 - [124501] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 07:00:19,953 - [124501] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 07:00:19,953 - [124501] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 07:00:19,953 - [124501] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 07:00:19,954 - [124501] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 07:00:19,954 - [124501] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124501 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:20,227 - [124501] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:00:20,233 - [124501] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 07:00:20,369 - [124501] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_14694c4d3d - __SPLIT__ 2026-06-03 07:00:20,640 - [124501] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_14694c4d3d - __SPLIT__ 2026-06-03 07:00:20,909 - [124501] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 07:00:21,052 - [124501] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 07:00:21,191 - [124501] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_14694c4d3d - __SPLIT__ 2026-06-03 07:00:21,191 - [124501] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_14694c4d3d - __SPLIT__ 2026-06-03 07:00:21,191 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124501 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:21,460 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:21,461 - [124501] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 07:00:21,461 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:21,862 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:21,862 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:22,214 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:22,215 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:22,485 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:22,485 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:22,834 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:22,834 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:23,111 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:23,111 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:23,386 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:23,387 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:23,659 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:23,660 - [124501] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679465, 3679466) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:24,023 - [124501] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:00:24,024 - [124501] - src.utils.log - INFO - Work order published ids: (3679465, 3679466) - __SPLIT__ 2026-06-03 07:00:24,024 - [124501] - src.utils.log - INFO - Time took to perform operation in publishing [124501]: 36.48 - __SPLIT__ 2026-06-03 07:00:24,024 - [124501] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124501] - __SPLIT__ 2026-06-03 07:00:24,024 - [124501] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 03:00:24.024' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124501;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:00:24,294 - [124501] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:06,291 - 124502 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124502 - __SPLIT__ 2026-06-03 07:27:06,292 - 124502 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124502 - __SPLIT__ 2026-06-03 07:27:06,307 - 124502 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 07:27:06,307 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:08,948 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:08,948 - 124502 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 07:27:08,949 - 124502 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 07:27:08,949 - 124502 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 07:27:08,949 - 124502 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:11,317 - 124502 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:11,317 - 124502 - 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 = 124502), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124502), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124502 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:11,623 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:11,623 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:11,887 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:11,891 - 124502 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 07:27:11,892 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14509... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:12,163 - 124502 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 07:27:12,163 - 124502 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 07:27:12,167 - 124502 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 07:27:12,168 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:12,433 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:12,433 - 124502 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150381 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:12,703 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:13,257 - 124502 - src.utils.log - INFO - Generating work orders for setup: 150381 - __SPLIT__ 2026-06-03 07:27:13,276 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:13,539 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:13,547 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:13,809 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:13,844 - 124502 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 07:27:13,849 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:14,111 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:14,113 - 124502 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 07:27:14,113 - 124502 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 07:27:14,114 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:14,431 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:14,431 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:14,753 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:14,753 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:15,024 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:15,024 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:15,340 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:15,340 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:15,653 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:15,653 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:15,929 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:15,930 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:16,195 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:16,196 - 124502 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150381 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:16,578 - 124502 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:27:16,578 - 124502 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:16,578 - 124502 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:16,878 - 124502 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 07:27:17,825 - 124502 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 07:27:17,826 - 124502 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.576' and ServiceSetupId = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:18,142 - 124502 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:18,142 - 124502 - src.utils.log - INFO - Id's of work order inserted to DB: [3679467 3679468] - __SPLIT__ 2026-06-03 07:27:18,142 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:18,407 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:18,408 - 124502 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 07:27:18,408 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:18,674 - 124502 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:18,674 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:18,937 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:18,942 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:19,210 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:19,211 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:19,473 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:19,474 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:19,736 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:19,737 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:20,001 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:20,002 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:20,264 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:20,265 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:20,629 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:20,629 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:20,894 - 124502 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 07:27:20,903 - 124502 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:20,904 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679467, 3679468) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:21,167 - 124502 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:21,168 - 124502 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:21,445 - 124502 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-03 07:27:22,513 - 124502 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 07:27:22,513 - 124502 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:22,514 - 124502 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679467, 3679468) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:22,776 - 124502 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:22,777 - 124502 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:23,047 - 124502 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 07:27:23,976 - 124502 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 07:27:23,976 - 124502 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 07:27:23,976 - 124502 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:24,240 - 124502 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:24,240 - 124502 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 07:27:24,240 - 124502 - src.utils.log - INFO - Time took to perform operation: 17.95 - __SPLIT__ 2026-06-03 07:27:24,240 - 124502 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:24,503 - 124502 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:24,504 - 124502 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 03:27:24.504' WHERE GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:24,767 - 124502 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:36,955 - [124502] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679467, 3679468] user_id=43135 company_id=133 project_id=[124502] publish_all=False - __SPLIT__ 2026-06-03 07:27:36,956 - [124502] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679467, 3679468] user_id=43135 company_id=133 project_id=[124502] publish_all=False - __SPLIT__ 2026-06-03 07:27:36,956 - [124502] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124502] - __SPLIT__ 2026-06-03 07:27:36,957 - [124502] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 07:27:36,957 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:38,957 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:38,958 - [124502] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 07:27:38,958 - [124502] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 07:27:38,959 - [124502] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 07:27:38,959 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:40,791 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:40,791 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:41,058 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:41,058 - [124502] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 07:27:41,059 - [124502] - 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 = 150381 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:41,331 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:41,331 - [124502] - 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 = 150381 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:41,603 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:41,604 - [124502] - 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 = 150381 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:41,878 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:41,883 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:42,145 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:42,145 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:42,406 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:42,407 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:42,667 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:42,668 - [124502] - 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-06-03 07:27:42,931 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:42,931 - [124502] - 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-06-03 07:27:43,194 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:43,199 - [124502] - 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 = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:43,465 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:43,469 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:43,730 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:43,731 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14902' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:43,992 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:43,994 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426610', '1426611') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:44,260 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:44,260 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:44,766 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 07:27:45,705 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:27:45,835 - [124502] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:27:45,837 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:46,099 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:46,100 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426610', '1426611') AND wo.AccountNumber = '14902' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-03 07:27:46,367 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:46,368 - [124502] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 07:27:46,368 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:46,670 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:46,670 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:46,937 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:46,937 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:47,221 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:47,221 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:47,484 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:47,484 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:47,748 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:47,749 - [124502] - 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 (3679467, 3679468)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:48,043 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:48,043 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679467, 3679468) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:48,312 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:48,312 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679467, 3679468);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:48,574 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:27:48,577 - [124502] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 07:27:48,592 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:48,853 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:48,854 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:49,115 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:49,116 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22786' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:49,379 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:49,384 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:49,384 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:49,670 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 07:27:50,600 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 07:27:50,601 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150381 AND WorkOrderNo IN ('7681661', '6203869') AND GenerateWorkOrderHistoryId = 124502;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-03 07:27:51,051 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:51,052 - [124502] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 07:27:51,058 - [124502] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 07:27:51,058 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:51,058 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:51,328 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 07:27:52,254 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 07:27:52,254 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 07:27:52,254 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 07:27:52,254 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 07:27:52,254 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 07:27:52,255 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 07:27:52,255 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:27:52,255 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:52,255 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:52,524 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 07:27:53,445 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 07:27:53,446 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:53,446 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:53,724 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 07:27:54,784 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 07:27:54,784 - [124502] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156897, 2156898)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:55,062 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:55,069 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:55,069 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:55,335 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 07:27:56,128 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 07:27:56,128 - [124502] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230384, 230385) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:56,395 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:56,395 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-03 07:27:56,689 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:56,696 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:56,697 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:56,967 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 07:27:57,761 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 07:27:57,762 - [124502] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192556, 192557)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:58,025 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:27:58,025 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192556', '0___TMP___192557') AND CreatedDate = '2026-06-03 03:27:55.066'; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-03 07:27:58,303 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:27:58,309 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:27:58,309 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:58,576 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 07:27:59,499 - [124502] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 07:27:59,500 - [124502] - 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 = 150381... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:27:59,761 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:27:59,768 - [124502] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 07:27:59,769 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:00,166 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 07:28:01,089 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:28:01,219 - [124502] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:28:01,220 - [124502] - 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-06-03 03:27:59.763';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:01,627 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:28:01,630 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:01,894 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:28:01,904 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 03:27:59.763'; ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-06-03 07:28:02,283 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:28:02,288 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:28:02,288 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:02,559 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 07:28:03,482 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 07:28:03,483 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426610', '1426611')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:04,338 - [124502] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:28:04,348 - [124502] - 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 = 150381 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:04,614 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:28:04,614 - [124502] - 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 = 150381 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:04,880 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:28:04,881 - [124502] - 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 = 150381 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:05,146 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:28:05,147 - [124502] - 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 = 150381 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:05,411 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:28:05,425 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:05,688 - [124502] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:28:05,694 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:05,958 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:28:05,961 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150381;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:06,224 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:28:06,225 - [124502] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 07:28:06,225 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 07:28:06,225 - [124502] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:28:06,225 - [124502] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:06,495 - [124502] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 07:28:07,416 - [124502] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 07:28:07,417 - [124502] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 07:28:07,417 - [124502] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 07:28:07,417 - [124502] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 07:28:07,417 - [124502] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124502 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:07,682 - [124502] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:28:07,688 - [124502] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 07:28:07,820 - [124502] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_652e2b1b52 - __SPLIT__ 2026-06-03 07:28:08,084 - [124502] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_652e2b1b52 - __SPLIT__ 2026-06-03 07:28:08,345 - [124502] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 07:28:08,487 - [124502] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 07:28:08,623 - [124502] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_652e2b1b52 - __SPLIT__ 2026-06-03 07:28:08,623 - [124502] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_652e2b1b52 - __SPLIT__ 2026-06-03 07:28:08,623 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124502 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:08,885 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:08,885 - [124502] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 07:28:08,885 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:09,279 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:09,279 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:09,629 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:09,629 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:09,893 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:09,893 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:10,235 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:10,235 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:10,504 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:10,504 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:10,772 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:10,772 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:11,034 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:11,035 - [124502] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679467, 3679468) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:11,390 - [124502] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:28:11,390 - [124502] - src.utils.log - INFO - Work order published ids: (3679467, 3679468) - __SPLIT__ 2026-06-03 07:28:11,390 - [124502] - src.utils.log - INFO - Time took to perform operation in publishing [124502]: 34.43 - __SPLIT__ 2026-06-03 07:28:11,390 - [124502] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124502] - __SPLIT__ 2026-06-03 07:28:11,390 - [124502] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 03:28:11.390' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124502;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:28:11,652 - [124502] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:10,912 - 12254 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12254 - __SPLIT__ 2026-06-03 07:36:10,913 - 12254 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12254 - __SPLIT__ 2026-06-03 07:36:10,914 - 12254 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 07:36:10,915 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:12,954 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:12,954 - 12254 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 07:36:12,954 - 12254 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12254;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:13,246 - 12254 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:13,246 - 12254 - 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 = 12254), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12254), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12254 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:13,569 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:13,569 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12254;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:13,859 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:13,862 - 12254 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 07:36:13,863 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:14,154 - 12254 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 07:36:14,155 - 12254 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 07:36:14,158 - 12254 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 07:36:14,158 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:14,446 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:14,447 - 12254 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23978 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:14,739 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:15,359 - 12254 - src.utils.log - INFO - Generating work orders for setup: 23978 - __SPLIT__ 2026-06-03 07:36:15,407 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1033;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:15,712 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:15,720 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1349;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:16,004 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:16,043 - 12254 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 07:36:16,048 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:16,336 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:16,338 - 12254 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 07:36:16,339 - 12254 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 07:36:16,339 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:16,643 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:16,643 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:16,938 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:16,938 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:17,258 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:17,258 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:17,555 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:17,556 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:17,857 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:17,858 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:18,155 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:18,155 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:18,442 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:18,443 - 12254 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:18,754 - 12254 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:18,755 - 12254 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:18,755 - 12254 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:19,081 - 12254 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 07:36:20,282 - 12254 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 07:36:20,282 - 12254 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.576' and ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:20,580 - 12254 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:36:20,580 - 12254 - src.utils.log - INFO - Id's of work order inserted to DB: [2730267 2730268 2730269 2730270 2730271 2730272 2730273] - __SPLIT__ 2026-06-03 07:36:20,581 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:20,877 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:20,877 - 12254 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 07:36:20,878 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:21,170 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:21,170 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:21,458 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:21,465 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:21,755 - 12254 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:36:21,756 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:22,046 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:22,047 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:22,333 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:22,334 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:22,626 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:22,627 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:22,979 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:22,979 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:23,281 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:23,281 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:23,579 - 12254 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 07:36:23,592 - 12254 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,593 - 12254 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 07:36:23,593 - 12254 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 07:36:23,593 - 12254 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:23,593 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730272, 2730273, 2730267, 2730268, 2730269, 2730270, 2730271) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:23,881 - 12254 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:36:23,882 - 12254 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:24,178 - 12254 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 07:36:25,231 - 12254 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 07:36:25,231 - 12254 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 07:36:25,232 - 12254 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:25,232 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2730267 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:25,524 - 12254 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:25,525 - 12254 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:25,819 - 12254 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 07:36:26,849 - 12254 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 07:36:26,849 - 12254 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 07:36:26,849 - 12254 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:26,850 - 12254 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730272, 2730273, 2730268, 2730269, 2730270, 2730271) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:27,142 - 12254 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 07:36:27,143 - 12254 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:27,442 - 12254 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 07:36:28,446 - 12254 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 07:36:28,447 - 12254 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 07:36:28,447 - 12254 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12254;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:28,739 - 12254 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:28,739 - 12254 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 07:36:28,739 - 12254 - src.utils.log - INFO - Time took to perform operation: 17.83 - __SPLIT__ 2026-06-03 07:36:28,740 - 12254 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12254;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:29,031 - 12254 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:29,032 - 12254 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 03:36:29.032' WHERE GenerateWorkOrderHistoryId = 12254;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:29,323 - 12254 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:33,228 - 12255 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12255 - __SPLIT__ 2026-06-03 07:36:33,229 - 12255 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12255 - __SPLIT__ 2026-06-03 07:36:33,230 - 12255 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 07:36:33,230 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:35,266 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:35,266 - 12255 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 07:36:35,266 - 12255 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12255;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:35,556 - 12255 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:35,556 - 12255 - 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 = 12255), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12255), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12255 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:35,876 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:35,876 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12255;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:36,183 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:36,186 - 12255 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 07:36:36,187 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:36,480 - 12255 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 07:36:36,480 - 12255 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 07:36:36,483 - 12255 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 07:36:36,484 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:36,766 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:36,767 - 12255 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23978 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:37,054 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:37,653 - 12255 - src.utils.log - INFO - Generating work orders for setup: 23978 - __SPLIT__ 2026-06-03 07:36:37,699 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1033;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:37,986 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:37,994 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1349;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:38,349 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:38,389 - 12255 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 07:36:38,394 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:38,681 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:38,684 - 12255 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 07:36:38,684 - 12255 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 07:36:38,684 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:38,988 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:38,988 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:39,280 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:39,280 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:39,578 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:39,578 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:39,895 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:39,895 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:40,188 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:40,188 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:40,485 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:40,486 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:40,767 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:40,768 - 12255 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:41,110 - 12255 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:41,110 - 12255 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:41,110 - 12255 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:41,439 - 12255 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 07:36:42,627 - 12255 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 07:36:42,628 - 12255 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.614' and ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:42,922 - 12255 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:36:42,923 - 12255 - src.utils.log - INFO - Id's of work order inserted to DB: [2730274 2730275 2730276 2730277 2730278 2730279 2730280] - __SPLIT__ 2026-06-03 07:36:42,923 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:43,217 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:43,218 - 12255 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 07:36:43,218 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:43,500 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:43,501 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:43,797 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:43,805 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:44,100 - 12255 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:36:44,101 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:44,394 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:44,395 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:44,684 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:44,685 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:44,976 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:44,977 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:45,264 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:45,264 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:45,566 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:45,567 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:45,849 - 12255 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:45,861 - 12255 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 07:36:45,861 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:36:45,861 - 12255 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,861 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 07:36:45,861 - 12255 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:45,862 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730274, 2730275, 2730276, 2730277, 2730278, 2730279, 2730280) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:46,151 - 12255 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:36:46,152 - 12255 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:46,448 - 12255 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 07:36:47,456 - 12255 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 07:36:47,456 - 12255 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 07:36:47,456 - 12255 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:47,457 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2730274 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:47,743 - 12255 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:47,744 - 12255 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:48,039 - 12255 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 07:36:49,063 - 12255 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 07:36:49,064 - 12255 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 07:36:49,064 - 12255 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:36:49,064 - 12255 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730275, 2730276, 2730277, 2730278, 2730279, 2730280) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:49,361 - 12255 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 07:36:49,362 - 12255 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:49,517 - 12256 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12256 - __SPLIT__ 2026-06-03 07:36:49,666 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 07:36:50,706 - 12256 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 07:36:50,707 - 12256 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 07:36:50,707 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12255;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:50,989 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:50,989 - 12256 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 07:36:50,989 - 12256 - src.utils.log - INFO - Time took to perform operation: 17.76 - __SPLIT__ 2026-06-03 07:36:50,989 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12255;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:51,276 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:51,276 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 03:36:51.276' WHERE GenerateWorkOrderHistoryId = 12255;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:51,559 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:51,560 - 12256 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 12256 - __SPLIT__ 2026-06-03 07:36:51,561 - 12256 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 07:36:51,561 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:53,575 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:53,575 - 12256 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 07:36:53,575 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:53,856 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:53,856 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-06-03 03:36:53.856' WHERE GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:54,143 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:54,144 - 12256 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:54,426 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:54,427 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-06-03 03:36:54.427' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:54,713 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:36:54,713 - 12256 - 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 = 12256), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12256), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12256 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:55,032 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:55,032 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:55,317 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:55,320 - 12256 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 07:36:55,321 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:55,601 - 12256 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 07:36:55,602 - 12256 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 07:36:55,606 - 12256 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 07:36:55,607 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-03 07:36:55,895 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:55,895 - 12256 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23978 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-03 07:36:56,180 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:56,771 - 12256 - src.utils.log - INFO - Generating work orders for setup: 23978 - __SPLIT__ 2026-06-03 07:36:56,817 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1033;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-03 07:36:57,104 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:57,111 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1349;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-03 07:36:57,395 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:57,434 - 12256 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 07:36:57,440 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-03 07:36:57,743 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:57,746 - 12256 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 07:36:57,746 - 12256 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-06-03 07:36:57,747 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-06-03 07:36:57,747 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_1) - __SPLIT__ 2026-06-03 07:36:57,748 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_2) - __SPLIT__ 2026-06-03 07:36:57,749 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_3) - __SPLIT__ 2026-06-03 07:36:57,749 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_4) - __SPLIT__ 2026-06-03 07:36:57,750 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_5) - __SPLIT__ 2026-06-03 07:36:57,751 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 ) (Thread: ThreadPoolExecutor-11_6) - __SPLIT__ 2026-06-03 07:36:58,044 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,896 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,906 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,916 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,924 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,925 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,945 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:58,946 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23978 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:59,295 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:36:59,297 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:36:59,583 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:59,583 - 12256 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 07:36:59,584 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23978... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-06-03 07:36:59,584 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23978... (Thread: ThreadPoolExecutor-12_1) - __SPLIT__ 2026-06-03 07:36:59,585 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23978... (Thread: ThreadPoolExecutor-12_2) - __SPLIT__ 2026-06-03 07:36:59,585 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23978... (Thread: ThreadPoolExecutor-12_3) - __SPLIT__ 2026-06-03 07:36:59,586 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23978;... (Thread: ThreadPoolExecutor-12_5) - __SPLIT__ 2026-06-03 07:36:59,586 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23978;... (Thread: ThreadPoolExecutor-12_4) - __SPLIT__ 2026-06-03 07:36:59,587 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23978;... (Thread: ThreadPoolExecutor-12_6) - __SPLIT__ 2026-06-03 07:36:59,587 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23978;... (Thread: ThreadPoolExecutor-12_7) - __SPLIT__ 2026-06-03 07:36:59,881 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:36:59,881 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23978... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-06-03 07:36:59,882 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:59,884 - 12256 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:36:59,885 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:59,887 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:59,888 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:36:59,890 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:00,174 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:00,817 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:00,830 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:01,119 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:37:01,119 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 03:37:01.119' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:01,407 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:37:01,407 - 12256 - src.utils.log - INFO - - __SPLIT__ 2026-06-03 07:37:01,407 - 12256 - src.utils.log - INFO - Work order generation successful - Time took: 9.85 - __SPLIT__ 2026-06-03 07:37:01,407 - 12256 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 12256 - __SPLIT__ 2026-06-03 07:37:01,407 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-06-03 03:37:01.407' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:01,692 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:37:01,693 - 12256 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:01,984 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:01,985 - 12256 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 07:37:01,985 - 12256 - 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 = 23978 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:02,281 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:02,282 - 12256 - 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 = 23978 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:02,576 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:02,577 - 12256 - 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 = 23978 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:02,868 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:02,873 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:03,161 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:03,161 - 12256 - 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-06-03 07:37:03,484 - 12256 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:37:03,484 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:03,766 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:03,766 - 12256 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 7 OUTPUT INSERTED.NextNumber - 7 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:04,066 - 12256 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:37:04,070 - 12256 - 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 = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:04,374 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:04,379 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:04,665 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:04,666 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8451' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:04,955 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:04,957 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167630R', '167631R', '167632R', '167633R', '167634R', '167635R', '167636R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:05,247 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:05,247 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:05,722 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 07:37:07,067 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:37:07,203 - 12256 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:37:07,204 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:07,490 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:37:07,491 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167630R', '167631R', '167632R', '167633R', '167634R', '167635R', '167636R') AND wo.AccountNumber = '8451' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-06-03 07:37:07,777 - 12256 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:37:07,782 - 12256 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 07:37:07,794 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:08,088 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:08,088 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:08,390 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:08,394 - 12256 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:37:08,394 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:08,706 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 07:37:10,044 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 07:37:10,045 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23978 AND WorkOrderNo IN (193531, 2697722, 9377201, 1037760, 2735042, 2456810, 3532205) AND GenerateWorkOrderHistoryId = 12256;... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-06-03 07:37:10,348 - 12256 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:37:10,348 - 12256 - src.utils.log - INFO - 🏁 Final merged rows: 7 - __SPLIT__ 2026-06-03 07:37:10,354 - 12256 - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-06-03 07:37:10,354 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:37:10,354 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 07:37:10,355 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 07:37:10,355 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 07:37:10,355 - 12256 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:37:10,355 - 12256 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:37:10,356 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 07:37:10,356 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-15_2) - __SPLIT__ 2026-06-03 07:37:10,356 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: ThreadPoolExecutor-15_3) - __SPLIT__ 2026-06-03 07:37:10,356 - 12256 - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-06-03 07:37:10,356 - 12256 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:37:10,357 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-15_1) - __SPLIT__ 2026-06-03 07:37:10,357 - 12256 - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-06-03 07:37:10,357 - 12256 - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-06-03 07:37:10,357 - 12256 - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-06-03 07:37:10,357 - 12256 - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-06-03 07:37:10,648 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 07:37:10,659 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 07:37:10,667 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-03 07:37:11,688 - 12256 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-03 07:37:11,688 - 12256 - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-06-03 07:37:11,693 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 07:37:11,693 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 07:37:11,693 - 12256 - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-06-03 07:37:11,693 - 12256 - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-06-03 07:37:11,694 - 12256 - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-06-03 07:37:11,694 - 12256 - 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 = 23978... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:11,982 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:11,988 - 12256 - src.utils.log - INFO - Size of Transaction: 7 - __SPLIT__ 2026-06-03 07:37:11,989 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:12,433 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 07:37:13,460 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:37:13,601 - 12256 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:37:13,602 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-03 03:37:11.983';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:13,934 - 12256 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:37:13,937 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:14,226 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:14,235 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916) AND CreatedDate = '2026-06-03 03:37:11.983'; ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-06-03 07:37:14,551 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:37:14,556 - 12256 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:37:14,556 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:14,857 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Invoice - __SPLIT__ 2026-06-03 07:37:15,866 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 07:37:15,867 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167630R', '167636R', '167635R', '167634R', '167633R', '167631R', '167632R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:16,189 - 12256 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:37:16,198 - 12256 - 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 = 23978 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:16,481 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:16,482 - 12256 - 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 = 23978 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:16,774 - 12256 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:37:16,775 - 12256 - 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 = 23978 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:17,065 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:17,065 - 12256 - 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 = 23978 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:17,366 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:17,380 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:17,669 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:17,674 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:17,960 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:17,963 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23978;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:18,255 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:18,256 - 12256 - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-06-03 07:37:18,256 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 07:37:18,257 - 12256 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:37:18,257 - 12256 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-06-03 07:37:18,257 - 12256 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 07:37:18,257 - 12256 - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-06-03 07:37:18,257 - 12256 - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-06-03 07:37:18,552 - 12256 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 07:37:19,565 - 12256 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 07:37:19,566 - 12256 - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-06-03 07:37:19,566 - 12256 - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 07:37:19,566 - 12256 - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 07:37:19,567 - 12256 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12256 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:19,858 - 12256 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:37:19,864 - 12256 - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 07:37:20,009 - 12256 - src.utils.log - INFO - πŸ›  Creating temp table #tbl_03b4f36676 - __SPLIT__ 2026-06-03 07:37:20,150 - 12256 - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_03b4f36676 - __SPLIT__ 2026-06-03 07:37:20,725 - 12256 - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-06-03 07:37:21,011 - 12256 - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 07:37:21,012 - 12256 - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_03b4f36676 - __SPLIT__ 2026-06-03 07:37:21,012 - 12256 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12256 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:21,308 - 12256 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:37:21,308 - 12256 - src.utils.log - INFO - Work order published ids: (0, 1, 2, 3, 4, 5, 6) - __SPLIT__ 2026-06-03 07:37:21,309 - 12256 - src.utils.log - INFO - Time took to perform operation in publishing 12256: 29.75 - __SPLIT__ 2026-06-03 07:37:21,309 - 12256 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 12256 - __SPLIT__ 2026-06-03 07:37:21,309 - 12256 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 03:37:21.308' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12256;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:37:21,599 - 12256 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:02,546 - 12257 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12257 - __SPLIT__ 2026-06-03 07:39:02,547 - 12257 - src.utils.log - INFO - Work order Generation/Publish algo started for GenerateWorkOrderHistoryId: 12257 - __SPLIT__ 2026-06-03 07:39:02,548 - 12257 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 07:39:02,548 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:04,571 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:04,572 - 12257 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 07:39:04,572 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:04,914 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:04,914 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WoGenStartDateTime = '2026-06-03 03:39:04.914' WHERE GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:05,201 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:05,201 - 12257 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:05,494 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:05,494 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'New', WoPublishStartDateTime = '2026-06-03 03:39:05.494' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:05,793 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:05,793 - 12257 - 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 = 12257), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12257), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12257 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:06,120 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:06,120 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:06,414 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:06,417 - 12257 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 07:39:06,418 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13039... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:06,720 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:06,720 - 12257 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 07:39:06,724 - 12257 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 07:39:06,725 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23979;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 07:39:07,013 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:07,013 - 12257 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23979 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 07:39:07,308 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:07,984 - 12257 - src.utils.log - INFO - Generating work orders for setup: 23979 - __SPLIT__ 2026-06-03 07:39:08,051 - 12257 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 07:39:08,057 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 07:39:08,351 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:08,355 - 12257 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 07:39:08,355 - 12257 - src.utils.log - INFO - Running deletes in PARALLEL… - __SPLIT__ 2026-06-03 07:39:08,355 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-03 07:39:08,356 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-06-03 07:39:08,356 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-06-03 07:39:08,357 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_3) - __SPLIT__ 2026-06-03 07:39:08,358 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_4) - __SPLIT__ 2026-06-03 07:39:08,359 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_6) - __SPLIT__ 2026-06-03 07:39:08,358 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 ) (Thread: ThreadPoolExecutor-1_5) - __SPLIT__ 2026-06-03 07:39:08,653 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,509 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,513 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,513 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,524 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,524 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,526 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,526 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23979 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:09,842 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:09,844 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23979;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:10,136 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:10,137 - 12257 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 07:39:10,137 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23979... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 07:39:10,138 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23979... (Thread: ThreadPoolExecutor-2_1) - __SPLIT__ 2026-06-03 07:39:10,138 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23979... (Thread: ThreadPoolExecutor-2_2) - __SPLIT__ 2026-06-03 07:39:10,139 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23979... (Thread: ThreadPoolExecutor-2_3) - __SPLIT__ 2026-06-03 07:39:10,140 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23979;... (Thread: ThreadPoolExecutor-2_4) - __SPLIT__ 2026-06-03 07:39:10,141 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23979;... (Thread: ThreadPoolExecutor-2_6) - __SPLIT__ 2026-06-03 07:39:10,141 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23979;... (Thread: ThreadPoolExecutor-2_5) - __SPLIT__ 2026-06-03 07:39:10,141 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23979;... (Thread: ThreadPoolExecutor-2_7) - __SPLIT__ 2026-06-03 07:39:10,426 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:10,427 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:10,429 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:10,430 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:10,430 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23979... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 07:39:10,431 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:10,432 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:10,453 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:10,718 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:11,288 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:11,300 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:11,580 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:11,580 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 03:39:11.580' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:11,883 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:11,883 - 12257 - src.utils.log - INFO - - __SPLIT__ 2026-06-03 07:39:11,883 - 12257 - src.utils.log - INFO - Work order generation successful - Time took: 9.34 - __SPLIT__ 2026-06-03 07:39:11,883 - 12257 - src.utils.log - INFO - Work order publish in progress for GenerateWorkOrderHistoryId: 12257 - __SPLIT__ 2026-06-03 07:39:11,883 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress', WoPublishStartDateTime = '2026-06-03 03:39:11.883' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:12,260 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:12,261 - 12257 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy from ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:12,548 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:12,548 - 12257 - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 07:39:12,549 - 12257 - 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 = 23979 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:12,842 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:12,842 - 12257 - 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 = 23979 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:13,134 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:13,135 - 12257 - 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 = 23979 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:13,430 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:13,435 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:13,717 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:13,718 - 12257 - 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-06-03 07:39:14,005 - 12257 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:39:14,005 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:14,297 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:14,298 - 12257 - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 7 OUTPUT INSERTED.NextNumber - 7 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:14,579 - 12257 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 07:39:14,583 - 12257 - 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 = 23979... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:14,883 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:14,888 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:15,176 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:15,176 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8451' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:15,458 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:15,460 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167637R', '167638R', '167639R', '167640R', '167641R', '167642R', '167643R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:15,743 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:15,744 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:16,205 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 07:39:17,562 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:39:17,709 - 12257 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:39:17,710 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23979;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:17,991 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:17,992 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167637R', '167638R', '167639R', '167640R', '167641R', '167642R', '167643R') AND wo.AccountNumber = '8451' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-03 07:39:18,284 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:18,286 - 12257 - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 07:39:18,306 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:18,591 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:18,592 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:18,889 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:18,890 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '18151' WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:19,182 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:19,186 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:19,186 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:19,502 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 07:39:20,689 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 07:39:20,690 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23979 AND WorkOrderNo IN (2342620, 9286777, 1364976, 4131008, 3635146, 9238988, 2139084) AND GenerateWorkOrderHistoryId = 12257;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-03 07:39:21,001 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:21,002 - 12257 - src.utils.log - INFO - 🏁 Final merged rows: 7 - __SPLIT__ 2026-06-03 07:39:21,008 - 12257 - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-06-03 07:39:21,009 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 07:39:21,009 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 07:39:21,009 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 07:39:21,009 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 07:39:21,010 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:21,010 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 07:39:21,010 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 07:39:21,010 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_2) - __SPLIT__ 2026-06-03 07:39:21,010 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:21,011 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_1) - __SPLIT__ 2026-06-03 07:39:21,010 - 12257 - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-06-03 07:39:21,011 - 12257 - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-06-03 07:39:21,011 - 12257 - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-06-03 07:39:21,011 - 12257 - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-06-03 07:39:21,011 - 12257 - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-06-03 07:39:21,011 - 12257 - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-06-03 07:39:21,305 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 07:39:21,312 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 07:39:22,330 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 07:39:22,330 - 12257 - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-06-03 07:39:22,335 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 07:39:22,335 - 12257 - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-06-03 07:39:22,336 - 12257 - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-06-03 07:39:22,336 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:22,336 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:22,665 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 07:39:24,044 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 07:39:24,045 - 12257 - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (809608, 809609, 809610, 809611, 809612, 809613, 809614)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:24,489 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:24,497 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:24,497 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:24,815 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 07:39:25,712 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 07:39:25,713 - 12257 - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (82198, 82199, 82200, 82201, 82202, 82203, 82204) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:26,006 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:26,007 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'Fortive' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005'); ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-03 07:39:26,681 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:26,689 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:26,689 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:27,005 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 07:39:27,884 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 07:39:27,884 - 12257 - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (147996, 147997, 147998, 147999, 148000, 148001, 148002)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:28,172 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:28,173 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'Fortive' WHERE ModifiedBy IN ('0___TMP___147996', '0___TMP___147997', '0___TMP___147998', '0___TMP___147999', '0___TMP___148000', '0___TMP___148001', '0___TMP___148002') AND CreatedDate = '2026-06-03 03:39:24.494'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-03 07:39:28,710 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:28,717 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:28,717 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:29,029 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 07:39:30,056 - 12257 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 07:39:30,064 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:30,064 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:30,380 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-03 07:39:31,578 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-03 07:39:31,579 - 12257 - 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 = 23979... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:31,868 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:31,874 - 12257 - src.utils.log - INFO - Size of Transaction: 7 - __SPLIT__ 2026-06-03 07:39:31,875 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:32,323 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 07:39:33,374 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 07:39:33,516 - 12257 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 07:39:33,516 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-03 03:39:31.869';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:33,839 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:33,842 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23979;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:34,135 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:34,144 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916) AND CreatedDate = '2026-06-03 03:39:31.869'; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-03 07:39:34,462 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 07:39:34,467 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:34,467 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:34,758 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.Invoice - __SPLIT__ 2026-06-03 07:39:35,812 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 07:39:35,813 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167637R', '167643R', '167642R', '167641R', '167640R', '167638R', '167639R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:36,145 - 12257 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-03 07:39:36,155 - 12257 - 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 = 23979 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:36,442 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:36,443 - 12257 - 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 = 23979 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:36,740 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:36,740 - 12257 - 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 = 23979 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:37,034 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:37,035 - 12257 - 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 = 23979 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:37,326 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:37,340 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23979;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:37,631 - 12257 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 07:39:37,637 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23979;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:37,945 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:37,948 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23979;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:38,231 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:38,232 - 12257 - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-06-03 07:39:38,232 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 07:39:38,233 - 12257 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 07:39:38,233 - 12257 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 07:39:38,233 - 12257 - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-06-03 07:39:38,233 - 12257 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 7 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-06-03 07:39:38,233 - 12257 - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-06-03 07:39:38,532 - 12257 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 07:39:39,557 - 12257 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 07:39:39,557 - 12257 - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-06-03 07:39:39,558 - 12257 - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 07:39:39,558 - 12257 - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 07:39:39,558 - 12257 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12257 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:39,844 - 12257 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 07:39:39,852 - 12257 - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 07:39:39,996 - 12257 - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c33cce3e10 - __SPLIT__ 2026-06-03 07:39:40,136 - 12257 - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_c33cce3e10 - __SPLIT__ 2026-06-03 07:39:40,721 - 12257 - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-06-03 07:39:41,014 - 12257 - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 07:39:41,014 - 12257 - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c33cce3e10 - __SPLIT__ 2026-06-03 07:39:41,014 - 12257 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12257 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:41,297 - 12257 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 07:39:41,297 - 12257 - src.utils.log - INFO - Work order published ids: (0, 1, 2, 3, 4, 5, 6) - __SPLIT__ 2026-06-03 07:39:41,298 - 12257 - src.utils.log - INFO - Time took to perform operation in publishing 12257: 38.75 - __SPLIT__ 2026-06-03 07:39:41,298 - 12257 - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: 12257 - __SPLIT__ 2026-06-03 07:39:41,298 - 12257 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 03:39:41.297' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12257;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 07:39:41,595 - 12257 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:38:30,042 - 124506 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124506 - __SPLIT__ 2026-06-03 11:38:30,043 - 124506 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124506 - __SPLIT__ 2026-06-03 11:38:30,044 - 124506 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 11:38:30,044 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:32,096 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:32,096 - 124506 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 11:38:32,097 - 124506 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 11:38:32,097 - 124506 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 11:38:32,097 - 124506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:33,976 - 124506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:38:33,976 - 124506 - 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 = 124506), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124506), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124506 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:34,286 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:34,287 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:34,556 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:34,559 - 124506 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 11:38:34,559 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14509... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:34,835 - 124506 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 11:38:34,835 - 124506 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 11:38:34,838 - 124506 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 11:38:34,839 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:35,109 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:35,110 - 124506 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150387 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:35,385 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:35,950 - 124506 - src.utils.log - INFO - Generating work orders for setup: 150387 - __SPLIT__ 2026-06-03 11:38:35,968 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:36,236 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:36,244 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:36,512 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:36,548 - 124506 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 11:38:36,552 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:36,819 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:36,822 - 124506 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 11:38:36,822 - 124506 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 11:38:36,822 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:37,143 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:37,143 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:37,464 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:37,465 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:37,742 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:37,742 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:38,063 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:38,063 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:38,384 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:38,384 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:38,668 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:38,668 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:38,940 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:38,940 - 124506 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150387 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:39,338 - 124506 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:38:39,339 - 124506 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:38:39,339 - 124506 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:39,643 - 124506 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 11:38:40,608 - 124506 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 11:38:40,609 - 124506 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.614' and ServiceSetupId = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:40,935 - 124506 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:38:40,936 - 124506 - src.utils.log - INFO - Id's of work order inserted to DB: [3679472 3679473] - __SPLIT__ 2026-06-03 11:38:40,936 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:41,206 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:41,207 - 124506 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 11:38:41,207 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:41,479 - 124506 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:41,479 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:41,748 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:41,752 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:42,028 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:42,029 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:42,298 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:42,298 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:42,566 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:42,567 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:42,837 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:42,838 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:43,106 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:43,107 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:43,481 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:43,481 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:43,752 - 124506 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:38:43,760 - 124506 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 11:38:43,761 - 124506 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:38:43,762 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679472, 3679473) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:44,030 - 124506 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:38:44,031 - 124506 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:44,313 - 124506 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-03 11:38:45,400 - 124506 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-03 11:38:45,401 - 124506 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 11:38:45,402 - 124506 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 11:38:45,402 - 124506 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 11:38:45,402 - 124506 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:38:45,402 - 124506 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679472, 3679473) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:45,669 - 124506 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:38:45,670 - 124506 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:45,947 - 124506 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 11:38:46,896 - 124506 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 11:38:46,896 - 124506 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 11:38:46,896 - 124506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:47,166 - 124506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:38:47,166 - 124506 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 11:38:47,166 - 124506 - src.utils.log - INFO - Time took to perform operation: 17.12 - __SPLIT__ 2026-06-03 11:38:47,166 - 124506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:47,436 - 124506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:38:47,436 - 124506 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 07:38:47.436' WHERE GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:47,705 - 124506 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:38:57,460 - [124506] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679472, 3679473] user_id=43135 company_id=133 project_id=[124506] publish_all=False - __SPLIT__ 2026-06-03 11:38:57,461 - [124506] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679472, 3679473] user_id=43135 company_id=133 project_id=[124506] publish_all=False - __SPLIT__ 2026-06-03 11:38:57,461 - [124506] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124506] - __SPLIT__ 2026-06-03 11:38:57,462 - [124506] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 11:38:57,462 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:38:59,486 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:38:59,487 - [124506] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 11:38:59,487 - [124506] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 11:38:59,488 - [124506] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 11:38:59,488 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:01,326 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:39:01,326 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:01,595 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:01,596 - [124506] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 11:39:01,596 - [124506] - 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 = 150387 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:01,870 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:01,870 - [124506] - 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 = 150387 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:02,142 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:02,143 - [124506] - 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 = 150387 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:02,418 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:02,422 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:02,684 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:02,684 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:02,947 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:02,947 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:03,209 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:03,210 - [124506] - 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-06-03 11:39:03,475 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:03,475 - [124506] - 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-06-03 11:39:03,739 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:03,744 - [124506] - 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 = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:04,013 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:04,015 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:04,278 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:04,278 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14904' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:04,541 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:04,543 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426618', '1426619') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:04,811 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:04,811 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:05,240 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 11:39:06,186 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 11:39:06,317 - [124506] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 11:39:06,318 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:06,582 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:39:06,583 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426618', '1426619') AND wo.AccountNumber = '14904' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-03 11:39:06,851 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:06,852 - [124506] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 11:39:06,852 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:07,154 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:07,155 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:07,422 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:07,423 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:07,707 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:07,707 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:07,971 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:07,971 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:08,236 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:08,236 - [124506] - 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 (3679472, 3679473)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:08,527 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:08,528 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679472, 3679473) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:08,793 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:08,793 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679472, 3679473);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:09,058 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:09,061 - [124506] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 11:39:09,079 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:09,341 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:09,342 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:09,604 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:09,605 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22788' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:09,872 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:39:09,876 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:09,876 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:10,165 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 11:39:11,101 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 11:39:11,102 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150387 AND WorkOrderNo IN ('6184470', '4606027') AND GenerateWorkOrderHistoryId = 124506;... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-06-03 11:39:11,552 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:11,553 - [124506] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 11:39:11,559 - [124506] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 11:39:11,559 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:11,559 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:11,829 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 11:39:12,757 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:12,758 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:13,029 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 11:39:13,956 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 11:39:13,956 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:13,956 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:14,235 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 11:39:15,300 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 11:39:15,300 - [124506] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156905, 2156906)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:15,579 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:15,587 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:15,587 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:15,855 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 11:39:16,650 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 11:39:16,651 - [124506] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230386, 230387) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:16,915 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:16,916 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-06-03 11:39:17,212 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:39:17,219 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:17,219 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:17,491 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 11:39:18,287 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 11:39:18,288 - [124506] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192562, 192563)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:18,551 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:18,552 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192562', '0___TMP___192563') AND CreatedDate = '2026-06-03 07:39:15.584'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-06-03 11:39:18,830 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:39:18,836 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:18,836 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:19,104 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 11:39:20,031 - [124506] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 11:39:20,032 - [124506] - 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 = 150387... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:20,295 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:20,301 - [124506] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 11:39:20,303 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:20,706 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 11:39:21,630 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 11:39:21,761 - [124506] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 11:39:21,761 - [124506] - 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-06-03 07:39:20.297';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:22,156 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:22,159 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:22,423 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:22,432 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 07:39:20.297'; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-06-03 11:39:22,820 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:39:22,825 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:22,825 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:23,097 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 11:39:24,022 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 11:39:24,023 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426618', '1426619')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:24,876 - [124506] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 11:39:24,885 - [124506] - 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 = 150387 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:25,150 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:25,151 - [124506] - 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 = 150387 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:25,416 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:25,417 - [124506] - 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 = 150387 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:25,685 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:25,686 - [124506] - 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 = 150387 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:25,951 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:25,963 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:26,228 - [124506] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:39:26,234 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:26,498 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:26,501 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150387;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:26,765 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:26,766 - [124506] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 11:39:26,766 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 11:39:26,766 - [124506] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 11:39:26,766 - [124506] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:27,036 - [124506] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 11:39:27,960 - [124506] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 11:39:27,960 - [124506] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 11:39:27,960 - [124506] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 11:39:27,961 - [124506] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 11:39:27,961 - [124506] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124506 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:28,224 - [124506] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:39:28,231 - [124506] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 11:39:28,362 - [124506] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_3a20830e74 - __SPLIT__ 2026-06-03 11:39:28,697 - [124506] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_3a20830e74 - __SPLIT__ 2026-06-03 11:39:28,959 - [124506] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 11:39:29,098 - [124506] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 11:39:29,234 - [124506] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_3a20830e74 - __SPLIT__ 2026-06-03 11:39:29,234 - [124506] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_3a20830e74 - __SPLIT__ 2026-06-03 11:39:29,234 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124506 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:29,496 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:29,497 - [124506] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 11:39:29,497 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:29,958 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:29,958 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:30,307 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:30,308 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:30,571 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:30,572 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:30,917 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:30,918 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:31,187 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:31,187 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:31,456 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:31,456 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:31,719 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:31,719 - [124506] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679472, 3679473) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:32,081 - [124506] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:39:32,081 - [124506] - src.utils.log - INFO - Work order published ids: (3679472, 3679473) - __SPLIT__ 2026-06-03 11:39:32,081 - [124506] - src.utils.log - INFO - Time took to perform operation in publishing [124506]: 34.62 - __SPLIT__ 2026-06-03 11:39:32,081 - [124506] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124506] - __SPLIT__ 2026-06-03 11:39:32,081 - [124506] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 07:39:32.081' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124506;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:39:32,349 - [124506] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:59:52,345 - 124507 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124507 - __SPLIT__ 2026-06-03 11:59:52,346 - 124507 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124507 - __SPLIT__ 2026-06-03 11:59:52,347 - 124507 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 11:59:52,347 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:54,362 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:54,362 - 124507 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 11:59:54,363 - 124507 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 11:59:54,363 - 124507 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 11:59:54,363 - 124507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:56,244 - 124507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 11:59:56,244 - 124507 - 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 = 124507), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124507), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124507 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:56,556 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:56,556 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:56,827 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:56,830 - 124507 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 11:59:56,831 - 124507 - 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 = 14775... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:57,111 - 124507 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 11:59:57,111 - 124507 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 11:59:57,114 - 124507 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 11:59:57,115 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:57,518 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:57,519 - 124507 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150386 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:57,796 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 11:59:58,361 - 124507 - src.utils.log - INFO - Generating work orders for setup: 150386 - __SPLIT__ 2026-06-03 11:59:58,400 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:58,670 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:58,678 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:58,947 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:58,983 - 124507 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 11:59:58,987 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:59,255 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 11:59:59,258 - 124507 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 11:59:59,258 - 124507 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 11:59:59,258 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:59,577 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:59:59,578 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 11:59:59,897 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 11:59:59,897 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:00,174 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:00:00,175 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:00,495 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:00:00,496 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:00,819 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:00:00,819 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:01,102 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:00:01,102 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:01,375 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:00:01,375 - 124507 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150386 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:01,765 - 124507 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:00:01,765 - 124507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:01,766 - 124507 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:02,072 - 124507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 12:00:03,206 - 124507 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 12:00:03,206 - 124507 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.576' and ServiceSetupId = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:03,528 - 124507 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 12:00:03,528 - 124507 - src.utils.log - INFO - Id's of work order inserted to DB: [3679474 3679475 3679476 3679477 3679478 3679479] - __SPLIT__ 2026-06-03 12:00:03,528 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:03,799 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:03,800 - 124507 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 12:00:03,800 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:04,073 - 124507 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:04,073 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:04,342 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:04,346 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:04,621 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:04,622 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:04,891 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:04,891 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:05,160 - 124507 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 12:00:05,162 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:05,432 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:05,433 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:05,701 - 124507 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:05,702 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:06,075 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:06,075 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:06,347 - 124507 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:06,361 - 124507 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 12:00:06,362 - 124507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 12:00:06,362 - 124507 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 12:00:06,362 - 124507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 12:00:06,362 - 124507 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 12:00:06,362 - 124507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:06,362 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3679474', '3679479', '3679475', '3679477', '3679476', '3679478') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:06,633 - 124507 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 12:00:06,634 - 124507 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:06,924 - 124507 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-03 12:00:06,925 - 124507 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 12:00:06,925 - 124507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 12:00:06,925 - 124507 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 12:00:06,925 - 124507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:06,925 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679474, 3679475, 3679476, 3679477, 3679478, 3679479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:07,194 - 124507 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 12:00:07,195 - 124507 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:07,478 - 124507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-03 12:00:08,861 - 124507 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 12:00:08,861 - 124507 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 12:00:08,861 - 124507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:08,862 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679474, 3679475, 3679476, 3679477, 3679478, 3679479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:09,130 - 124507 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 12:00:09,130 - 124507 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:09,424 - 124507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment - __SPLIT__ 2026-06-03 12:00:10,256 - 124507 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 12:00:10,257 - 124507 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:10,258 - 124507 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679474, 3679475, 3679476, 3679477, 3679478, 3679479) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:10,525 - 124507 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 12:00:10,526 - 124507 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:10,803 - 124507 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 12:00:11,761 - 124507 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 12:00:11,761 - 124507 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 12:00:11,761 - 124507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:12,032 - 124507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:12,032 - 124507 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 12:00:12,032 - 124507 - src.utils.log - INFO - Time took to perform operation: 19.69 - __SPLIT__ 2026-06-03 12:00:12,032 - 124507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:12,301 - 124507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:12,301 - 124507 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 08:00:12.301' WHERE GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:12,571 - 124507 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:32,531 - [124507] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679474, 3679479] user_id=43135 company_id=133 project_id=[124507] publish_all=False - __SPLIT__ 2026-06-03 12:00:32,532 - [124507] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679474, 3679479] user_id=43135 company_id=133 project_id=[124507] publish_all=False - __SPLIT__ 2026-06-03 12:00:32,532 - [124507] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124507] - __SPLIT__ 2026-06-03 12:00:32,533 - [124507] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 12:00:32,533 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:34,628 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:34,629 - [124507] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 12:00:34,629 - [124507] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 12:00:34,630 - [124507] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 12:00:34,630 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:36,477 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:36,477 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:36,745 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:36,746 - [124507] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 12:00:36,746 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:37,021 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:37,021 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:37,292 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:37,293 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:37,569 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:37,573 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:37,835 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:37,836 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:38,098 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:38,098 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:38,361 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:38,362 - [124507] - 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-06-03 12:00:38,627 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:38,627 - [124507] - 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-06-03 12:00:38,895 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:38,899 - [124507] - 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 = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:39,167 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:39,169 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:39,432 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:39,432 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14893' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:39,696 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:39,698 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426620', '1426621') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:39,966 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:39,967 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:40,396 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 12:00:41,366 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 12:00:41,497 - [124507] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 12:00:41,499 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:41,768 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:41,769 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426620', '1426621') AND wo.AccountNumber = '14893' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-06-03 12:00:42,039 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:42,040 - [124507] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 12:00:42,040 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:42,342 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:42,342 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:42,740 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:42,741 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:43,027 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:43,027 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:43,292 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:43,292 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:43,558 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:43,558 - [124507] - 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 (3679474, 3679479)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:43,849 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:43,849 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679474, 3679479) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:44,115 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:00:44,115 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679474, 3679479);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:44,380 - [124507] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 12:00:44,383 - [124507] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 12:00:44,398 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:44,662 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:44,671 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:44,934 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:44,935 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22790' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:45,200 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:45,205 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:45,205 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:45,491 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 12:00:46,439 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 12:00:46,440 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150386 AND WorkOrderNo IN ('7681403', '2888119') AND GenerateWorkOrderHistoryId = 124507;... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-06-03 12:00:46,891 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:46,892 - [124507] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 12:00:46,898 - [124507] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 12:00:46,898 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:46,898 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:47,170 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 12:00:48,101 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 12:00:48,101 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 12:00:48,102 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 12:00:48,102 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:48,102 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:48,392 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-03 12:00:49,197 - [124507] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-03 12:00:49,197 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 12:00:49,197 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 12:00:49,197 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 12:00:49,197 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:49,198 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:49,469 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 12:00:50,399 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 12:00:50,399 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:50,399 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:50,680 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 12:00:52,000 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 12:00:52,001 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156907, 2156908)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:52,405 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:00:52,413 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:52,413 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:52,684 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 12:00:53,492 - [124507] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 12:00:53,493 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230388, 230389) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:53,757 - [124507] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 12:00:53,758 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002'); ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-06-03 12:00:54,061 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:54,068 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:54,068 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:54,341 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 12:00:55,284 - [124507] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 12:00:55,285 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192566, 192567, 192568, 192569)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:55,550 - [124507] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 12:00:55,551 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192566', '1___TMP___192566', '0___TMP___192567', '1___TMP___192567', '0___TMP___192568', '1___TMP___192568', '0___TMP___192569', '1___TMP___192569') AND CreatedDate = '2026-06-03 08:00:52.410'; ... (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-06-03 12:00:55,833 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:00:55,840 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:55,840 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:56,108 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 12:00:57,050 - [124507] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 12:00:57,057 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:00:57,057 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:57,352 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-03 12:00:58,315 - [124507] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-03 12:00:58,316 - [124507] - 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 = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:58,583 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:00:58,589 - [124507] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 12:00:58,590 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:00:58,990 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 12:00:59,916 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 12:01:00,048 - [124507] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 12:01:00,049 - [124507] - 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-06-03 08:00:58.585';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:00,448 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:01:00,451 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:00,716 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:01:00,725 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 08:00:58.585'; ... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-06-03 12:01:01,107 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:01:01,112 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:01:01,112 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:01,384 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 12:01:02,320 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 12:01:02,321 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426620', '1426621')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:03,171 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:01:03,181 - [124507] - 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 = 150386 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:03,450 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:01:03,450 - [124507] - 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 = 150386 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:03,726 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:01:03,726 - [124507] - 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 = 150386 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:03,993 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:01:03,993 - [124507] - 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 = 150386 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:04,259 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:01:04,273 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:04,538 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:01:04,544 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:04,809 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:01:04,812 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:05,076 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:01:05,077 - [124507] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 12:01:05,077 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 12:01:05,077 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:01:05,077 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:05,349 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 12:01:06,276 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 12:01:06,276 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 12:01:06,276 - [124507] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 12:01:06,276 - [124507] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 12:01:06,277 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124507 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:06,542 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:01:06,548 - [124507] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 12:01:06,680 - [124507] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_fb9f232a0c - __SPLIT__ 2026-06-03 12:01:06,946 - [124507] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_fb9f232a0c - __SPLIT__ 2026-06-03 12:01:07,212 - [124507] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 12:01:07,353 - [124507] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 12:01:07,489 - [124507] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_fb9f232a0c - __SPLIT__ 2026-06-03 12:01:07,489 - [124507] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_fb9f232a0c - __SPLIT__ 2026-06-03 12:01:07,489 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124507 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:07,752 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:07,753 - [124507] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 12:01:07,753 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:08,146 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:08,147 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:08,493 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:08,493 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:08,759 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:08,759 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:09,101 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:09,101 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:09,371 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:09,371 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:09,642 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:09,642 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:09,908 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:09,908 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679474, 3679479) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:10,272 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:01:10,272 - [124507] - src.utils.log - INFO - Work order published ids: (3679474, 3679479) - __SPLIT__ 2026-06-03 12:01:10,272 - [124507] - src.utils.log - INFO - Time took to perform operation in publishing [124507]: 37.74 - __SPLIT__ 2026-06-03 12:01:10,272 - [124507] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124507] - __SPLIT__ 2026-06-03 12:01:10,272 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 08:01:10.272' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:01:10,537 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:18:58,002 - 12264 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12264 - __SPLIT__ 2026-06-03 12:18:58,003 - 12264 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12264 - __SPLIT__ 2026-06-03 12:18:58,018 - 12264 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 12:18:58,018 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:00,599 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:00,599 - 12264 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 12:19:00,600 - 12264 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:00,890 - 12264 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:19:00,890 - 12264 - 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 = 12264), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12264), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12264 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:01,213 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:01,213 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:01,508 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:01,512 - 12264 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 12:19:01,512 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:01,807 - 12264 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 12:19:01,807 - 12264 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 12:19:01,811 - 12264 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 12:19:01,812 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:02,105 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:02,106 - 12264 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 23986 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:02,393 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:02,988 - 12264 - src.utils.log - INFO - Generating work orders for setup: 23986 - __SPLIT__ 2026-06-03 12:19:03,005 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:03,295 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:03,303 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1421;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:03,588 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:03,624 - 12264 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 12:19:03,629 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:03,920 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:03,922 - 12264 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 12:19:03,922 - 12264 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 12:19:03,922 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:04,251 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:04,252 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:04,544 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:04,544 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:04,837 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:04,837 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:05,130 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:05,130 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:05,422 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:05,422 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:05,764 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:05,764 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:06,076 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:06,077 - 12264 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23986 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:06,379 - 12264 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:19:06,379 - 12264 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:06,380 - 12264 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:06,719 - 12264 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 12:19:07,765 - 12264 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 12:19:07,766 - 12264 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.260' and ServiceSetupId = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:08,058 - 12264 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:08,059 - 12264 - src.utils.log - INFO - Id's of work order inserted to DB: [2730323 2730324] - __SPLIT__ 2026-06-03 12:19:08,059 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:08,346 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:08,346 - 12264 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 12:19:08,347 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:08,643 - 12264 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 12:19:08,644 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:08,930 - 12264 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 12:19:08,937 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:09,223 - 12264 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:09,224 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:09,514 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:09,515 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:09,814 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:09,815 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:10,100 - 12264 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:10,102 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:10,397 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:10,397 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:10,693 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:10,694 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:10,976 - 12264 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:10,993 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730323, 2730324) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:11,293 - 12264 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:11,294 - 12264 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:11,604 - 12264 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-03 12:19:12,629 - 12264 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 12:19:12,629 - 12264 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 12:19:12,629 - 12264 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 12:19:12,629 - 12264 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 12:19:12,629 - 12264 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 12:19:12,629 - 12264 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 12:19:12,630 - 12264 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 12:19:12,630 - 12264 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 12:19:12,630 - 12264 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:12,630 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730323, 2730324) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:12,931 - 12264 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:12,932 - 12264 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:13,241 - 12264 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 12:19:14,261 - 12264 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 12:19:14,262 - 12264 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 12:19:14,262 - 12264 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:14,262 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2730323 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:14,555 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:14,556 - 12264 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:14,875 - 12264 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 12:19:15,904 - 12264 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 12:19:15,904 - 12264 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 12:19:15,904 - 12264 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:15,905 - 12264 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2730324 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:16,197 - 12264 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:16,198 - 12264 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:16,489 - 12264 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 12:19:17,518 - 12264 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 12:19:17,518 - 12264 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 12:19:17,518 - 12264 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:17,800 - 12264 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:19:17,800 - 12264 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 12:19:17,800 - 12264 - src.utils.log - INFO - Time took to perform operation: 19.8 - __SPLIT__ 2026-06-03 12:19:17,800 - 12264 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:18,092 - 12264 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:19:18,092 - 12264 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 08:19:18.092' WHERE GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:18,374 - 12264 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:19:40,646 - [12264] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730323, 2730324] user_id=122885 company_id=135 project_id=[12264] publish_all=False - __SPLIT__ 2026-06-03 12:19:40,647 - [12264] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730323, 2730324] user_id=122885 company_id=135 project_id=[12264] publish_all=False - __SPLIT__ 2026-06-03 12:19:40,647 - [12264] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12264] - __SPLIT__ 2026-06-03 12:19:40,648 - [12264] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 12:19:40,648 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:42,706 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:42,706 - [12264] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-03 12:19:42,706 - [12264] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:43,003 - [12264] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:19:43,003 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:43,300 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:43,301 - [12264] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 12:19:43,301 - [12264] - 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 = 23986 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:43,603 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:43,603 - [12264] - 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 = 23986 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:43,900 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:43,901 - [12264] - 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 = 23986 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:44,203 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:44,207 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:44,500 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:44,500 - [12264] - 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-06-03 12:19:44,792 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:44,793 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:45,090 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:45,091 - [12264] - 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-06-03 12:19:45,387 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:45,391 - [12264] - 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 = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:45,691 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:45,693 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:45,986 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:45,987 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8456' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:46,286 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:46,288 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167673R', '167674R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:46,586 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:46,586 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:47,081 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 12:19:48,155 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 12:19:48,305 - [12264] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 12:19:48,309 - [12264] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 135 AND ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:48,629 - [12264] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:19:48,630 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167673R', '167674R') AND wo.AccountNumber = '8456' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-06-03 12:19:48,920 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:48,921 - [12264] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 12:19:48,921 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:49,221 - [12264] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 12:19:49,221 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:49,521 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:49,522 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:49,818 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:49,818 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:50,109 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:50,109 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:50,404 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:50,404 - [12264] - 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 (2730323, 2730324)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:50,711 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:50,711 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2730323, 2730324) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:51,008 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:51,008 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2730323, 2730324);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:51,309 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:19:51,312 - [12264] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 12:19:51,325 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:51,622 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:51,626 - [12264] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1728 AND CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:51,919 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:51,921 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:52,217 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:52,221 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:52,221 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:52,556 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 12:19:53,616 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 12:19:53,618 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23986 AND WorkOrderNo IN ('899967', '1278325') AND GenerateWorkOrderHistoryId = 12264;... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-06-03 12:19:53,936 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:19:53,937 - [12264] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 12:19:53,942 - [12264] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 12:19:53,943 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:53,943 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:54,256 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 12:19:55,301 - [12264] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 12:19:55,302 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:55,302 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:55,615 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-03 12:19:56,646 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 12:19:56,646 - [12264] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 12:19:56,646 - [12264] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 12:19:56,646 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:56,646 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:56,961 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-03 12:19:57,998 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-03 12:19:57,998 - [12264] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 12:19:57,998 - [12264] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 12:19:57,998 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:19:57,999 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:58,309 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 12:19:59,378 - [12264] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 12:19:59,379 - [12264] - 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 = 23986... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:19:59,671 - [12264] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 12:19:59,677 - [12264] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 12:19:59,678 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:00,136 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 12:20:01,177 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 12:20:01,324 - [12264] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 12:20:01,324 - [12264] - 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-06-03 08:19:59.672';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:01,646 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:20:01,649 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:01,949 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:20:01,959 - [12264] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 08:19:59.672'; ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-06-03 12:20:02,306 - [12264] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 12:20:02,311 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:20:02,311 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:02,629 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 12:20:03,677 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 12:20:03,678 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167673R', '167674R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:04,000 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:20:04,009 - [12264] - 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 = 23986 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:04,308 - [12264] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 12:20:04,308 - [12264] - 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 = 23986 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:04,600 - [12264] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 12:20:04,600 - [12264] - 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 = 23986 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:04,903 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:20:04,904 - [12264] - 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 = 23986 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:05,204 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:20:05,217 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:05,508 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:20:05,513 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:05,809 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:20:05,819 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23986;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:06,112 - [12264] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 12:20:06,121 - [12264] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 12:20:06,121 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:20:06,121 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:06,445 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-03 12:20:07,472 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-03 12:20:07,472 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:20:07,472 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:07,798 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 12:20:08,893 - [12264] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 12:20:08,894 - [12264] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 12:20:08,894 - [12264] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:09,205 - [12264] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-03 12:20:10,249 - [12264] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-03 12:20:10,249 - [12264] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 12:20:10,250 - [12264] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 12:20:10,250 - [12264] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12264 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:10,547 - [12264] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 12:20:10,553 - [12264] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 12:20:10,703 - [12264] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_1e0bfd4382 - __SPLIT__ 2026-06-03 12:20:11,010 - [12264] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_1e0bfd4382 - __SPLIT__ 2026-06-03 12:20:11,302 - [12264] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 12:20:11,453 - [12264] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 12:20:11,600 - [12264] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_1e0bfd4382 - __SPLIT__ 2026-06-03 12:20:11,600 - [12264] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_1e0bfd4382 - __SPLIT__ 2026-06-03 12:20:11,600 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12264 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:11,892 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:11,892 - [12264] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 12:20:11,892 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:12,205 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:12,205 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:12,511 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:12,512 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:12,804 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:12,804 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:13,132 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:13,132 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:13,437 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:13,437 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:13,729 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:13,730 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:14,015 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:14,015 - [12264] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730323, 2730324) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:14,327 - [12264] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 12:20:14,327 - [12264] - src.utils.log - INFO - Work order published ids: (2730323, 2730324) - __SPLIT__ 2026-06-03 12:20:14,327 - [12264] - src.utils.log - INFO - Time took to perform operation in publishing [12264]: 33.68 - __SPLIT__ 2026-06-03 12:20:14,327 - [12264] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12264] - __SPLIT__ 2026-06-03 12:20:14,328 - [12264] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 08:20:14.327' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12264;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 12:20:14,624 - [12264] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:09:52,528 - 124509 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124509 - __SPLIT__ 2026-06-03 13:09:52,529 - 124509 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124509 - __SPLIT__ 2026-06-03 13:09:52,544 - 124509 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 13:09:52,544 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:55,187 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:09:55,188 - 124509 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 13:09:55,188 - 124509 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 13:09:55,189 - 124509 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 13:09:55,189 - 124509 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:57,598 - 124509 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:09:57,598 - 124509 - 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 = 124509), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124509), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124509 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:57,909 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:09:57,910 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:58,178 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:09:58,183 - 124509 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 13:09:58,184 - 124509 - 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 = 14513... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:58,459 - 124509 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 13:09:58,459 - 124509 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 13:09:58,463 - 124509 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 13:09:58,463 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:58,733 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:09:58,734 - 124509 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150389 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:59,009 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:09:59,571 - 124509 - src.utils.log - INFO - Generating work orders for setup: 150389 - __SPLIT__ 2026-06-03 13:09:59,589 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11426;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:09:59,857 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:09:59,865 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11426;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:00,133 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:00,168 - 124509 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 13:10:00,173 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:00,440 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:00,442 - 124509 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 13:10:00,443 - 124509 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 13:10:00,443 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:00,763 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:00,763 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:01,083 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:01,083 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:01,360 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:01,360 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:01,678 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:01,679 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:01,998 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:01,998 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:02,279 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:02,279 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:02,552 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:02,552 - 124509 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150389 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:02,941 - 124509 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:02,941 - 124509 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:02,941 - 124509 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:03,245 - 124509 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 13:10:04,209 - 124509 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 13:10:04,209 - 124509 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.262' and ServiceSetupId = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:04,533 - 124509 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:04,534 - 124509 - src.utils.log - INFO - Id's of work order inserted to DB: [3679481 3679482] - __SPLIT__ 2026-06-03 13:10:04,534 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:04,803 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:04,804 - 124509 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 13:10:04,805 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:05,076 - 124509 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:05,076 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:05,343 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:05,347 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:05,621 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:05,622 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:05,890 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:05,890 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:06,157 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:06,158 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:06,427 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:06,427 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:06,695 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:06,695 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:07,065 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:07,065 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:07,335 - 124509 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:07,343 - 124509 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:07,344 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679481, 3679482) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:07,612 - 124509 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:07,613 - 124509 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:07,895 - 124509 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-03 13:10:08,995 - 124509 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 13:10:08,995 - 124509 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 13:10:08,995 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:08,996 - 124509 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679481, 3679482) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:09,263 - 124509 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:09,264 - 124509 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:09,539 - 124509 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 13:10:10,482 - 124509 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 13:10:10,483 - 124509 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 13:10:10,483 - 124509 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:10,751 - 124509 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:10,751 - 124509 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 13:10:10,751 - 124509 - src.utils.log - INFO - Time took to perform operation: 18.22 - __SPLIT__ 2026-06-03 13:10:10,751 - 124509 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:11,019 - 124509 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:11,019 - 124509 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 09:10:11.019' WHERE GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:11,288 - 124509 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:19,877 - [124509] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679481, 3679482] user_id=43135 company_id=133 project_id=[124509] publish_all=False - __SPLIT__ 2026-06-03 13:10:19,878 - [124509] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679481, 3679482] user_id=43135 company_id=133 project_id=[124509] publish_all=False - __SPLIT__ 2026-06-03 13:10:19,878 - [124509] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124509] - __SPLIT__ 2026-06-03 13:10:19,879 - [124509] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 13:10:19,879 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:21,902 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:21,902 - [124509] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 13:10:21,902 - [124509] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 13:10:21,903 - [124509] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 13:10:21,903 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:23,736 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:23,736 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:24,005 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:24,005 - [124509] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 13:10:24,006 - [124509] - 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 = 150389 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:24,279 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:24,279 - [124509] - 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 = 150389 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:24,549 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:24,550 - [124509] - 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 = 150389 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:24,824 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:24,828 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:25,090 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:25,090 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:25,352 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:25,352 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:25,613 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:25,614 - [124509] - 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-06-03 13:10:25,882 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:25,882 - [124509] - 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-06-03 13:10:26,146 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:26,150 - [124509] - 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 = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:26,424 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:26,426 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:26,688 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:26,688 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14906' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:26,949 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:26,952 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426624', '1426625') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:27,218 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:27,219 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:27,645 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 13:10:28,590 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 13:10:28,720 - [124509] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 13:10:28,722 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:28,985 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:28,986 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426624', '1426625') AND wo.AccountNumber = '14906' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-06-03 13:10:29,254 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:29,255 - [124509] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 13:10:29,255 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:29,559 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:29,559 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:29,825 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:29,826 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:30,109 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:30,109 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:30,372 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:30,372 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:30,637 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:30,637 - [124509] - 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 (3679481, 3679482)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:30,927 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:30,927 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679481, 3679482) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:31,191 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:31,191 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679481, 3679482);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:31,454 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:31,457 - [124509] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 13:10:31,472 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:31,734 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:31,734 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:31,995 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:31,997 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22792' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:32,261 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:32,265 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:32,265 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:32,554 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 13:10:33,486 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 13:10:33,487 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150389 AND WorkOrderNo IN ('5826279', '5034295') AND GenerateWorkOrderHistoryId = 124509;... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-06-03 13:10:33,935 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:33,936 - [124509] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 13:10:33,942 - [124509] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 13:10:33,942 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:33,942 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:34,211 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 13:10:35,231 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 13:10:35,231 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:35,232 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:35,502 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 13:10:36,434 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 13:10:36,435 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:36,435 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:36,712 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 13:10:37,774 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 13:10:37,774 - [124509] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156911, 2156912)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:38,053 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:38,060 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:38,060 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:38,327 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 13:10:39,120 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 13:10:39,122 - [124509] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230390, 230391) and ModifiedBy in ('999999999', '1000000000')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:39,385 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:39,386 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-06-03 13:10:39,680 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:39,687 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:39,687 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:39,959 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 13:10:40,884 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 13:10:40,885 - [124509] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192574, 192575)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:41,148 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:41,149 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192574', '0___TMP___192575') AND CreatedDate = '2026-06-03 09:10:38.058'; ... (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-06-03 13:10:41,428 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:41,435 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:41,435 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:41,701 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 13:10:42,626 - [124509] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 13:10:42,627 - [124509] - 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 = 150389... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:42,890 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:42,896 - [124509] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 13:10:42,897 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:43,298 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 13:10:44,220 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 13:10:44,351 - [124509] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 13:10:44,352 - [124509] - 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-06-03 09:10:42.891';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:44,758 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:44,761 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:45,025 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:45,035 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 09:10:42.891'; ... (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-06-03 13:10:45,421 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:10:45,426 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:45,426 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:45,697 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 13:10:46,621 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 13:10:46,621 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426624', '1426625')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:47,474 - [124509] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:10:47,483 - [124509] - 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 = 150389 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:47,749 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:47,749 - [124509] - 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 = 150389 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:48,014 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:48,014 - [124509] - 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 = 150389 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:48,280 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:48,280 - [124509] - 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 = 150389 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:48,545 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:48,559 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:48,822 - [124509] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:10:48,828 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:49,092 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:49,095 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:49,360 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:49,361 - [124509] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 13:10:49,361 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 13:10:49,361 - [124509] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:10:49,361 - [124509] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:49,632 - [124509] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 13:10:50,555 - [124509] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 13:10:50,556 - [124509] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 13:10:50,556 - [124509] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 13:10:50,556 - [124509] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 13:10:50,556 - [124509] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124509 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:50,820 - [124509] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:10:50,826 - [124509] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 13:10:50,957 - [124509] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_bf368e6c40 - __SPLIT__ 2026-06-03 13:10:51,220 - [124509] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_bf368e6c40 - __SPLIT__ 2026-06-03 13:10:51,482 - [124509] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 13:10:51,622 - [124509] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 13:10:51,758 - [124509] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_bf368e6c40 - __SPLIT__ 2026-06-03 13:10:51,758 - [124509] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_bf368e6c40 - __SPLIT__ 2026-06-03 13:10:51,758 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124509 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:52,020 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:52,020 - [124509] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 13:10:52,020 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:52,414 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:52,414 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:52,760 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:52,760 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:53,024 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:53,024 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:53,363 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:53,364 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:53,634 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:53,634 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:53,902 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:53,902 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:54,164 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:54,165 - [124509] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679481, 3679482) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:54,521 - [124509] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:10:54,522 - [124509] - src.utils.log - INFO - Work order published ids: (3679481, 3679482) - __SPLIT__ 2026-06-03 13:10:54,522 - [124509] - src.utils.log - INFO - Time took to perform operation in publishing [124509]: 34.64 - __SPLIT__ 2026-06-03 13:10:54,522 - [124509] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124509] - __SPLIT__ 2026-06-03 13:10:54,522 - [124509] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 09:10:54.522' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:10:54,786 - [124509] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:37:55,948 - 124510 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124510 - __SPLIT__ 2026-06-03 13:37:55,949 - 124510 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124510 - __SPLIT__ 2026-06-03 13:37:55,950 - 124510 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 13:37:55,950 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:37:57,964 - 124510 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:37:57,964 - 124510 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 13:37:57,965 - 124510 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 13:37:57,965 - 124510 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 13:37:57,965 - 124510 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:00,353 - 124510 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:00,353 - 124510 - 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 = 124510), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124510), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124510 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:00,661 - 124510 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:00,661 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:00,927 - 124510 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:00,930 - 124510 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 13:38:00,931 - 124510 - 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 (14643, 14509)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:01,211 - 124510 - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-06-03 13:38:01,212 - 124510 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 13:38:01,215 - 124510 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 13:38:01,215 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:01,485 - 124510 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 13:38:01,486 - 124510 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:01,758 - 124510 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:02,321 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150390 - __SPLIT__ 2026-06-03 13:38:02,341 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150391 - __SPLIT__ 2026-06-03 13:38:02,355 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150392 - __SPLIT__ 2026-06-03 13:38:02,370 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150393 - __SPLIT__ 2026-06-03 13:38:02,384 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150394 - __SPLIT__ 2026-06-03 13:38:02,401 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150395 - __SPLIT__ 2026-06-03 13:38:02,416 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150396 - __SPLIT__ 2026-06-03 13:38:02,432 - 124510 - src.utils.log - INFO - Generating work orders for setup: 150397 - __SPLIT__ 2026-06-03 13:38:02,448 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11427.0, 11428.0, 1127.0, 1131.0, 1132.0, 11436.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:02,715 - 124510 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 13:38:02,725 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1131, 11436, 11427, 1127);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:02,991 - 124510 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 13:38:03,029 - 124510 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 13:38:03,034 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:03,298 - 124510 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:03,301 - 124510 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 13:38:03,301 - 124510 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 13:38:03,301 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:03,629 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:03,629 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:03,958 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:03,958 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:04,232 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:04,232 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:04,581 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:04,582 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:04,912 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:04,913 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:05,242 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:05,243 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:05,526 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:05,526 - 124510 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:05,927 - 124510 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:38:05,927 - 124510 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:05,928 - 124510 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:06,229 - 124510 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 13:38:07,887 - 124510 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 13:38:07,888 - 124510 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 16 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.260' and ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:08,210 - 124510 - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-03 13:38:08,210 - 124510 - src.utils.log - INFO - Id's of work order inserted to DB: [3679483 3679484 3679485 3679486 3679487 3679488 3679489 3679490 3679491 3679492 3679493 3679494 3679495 3679496 3679497 3679498] - __SPLIT__ 2026-06-03 13:38:08,210 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:08,477 - 124510 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 13:38:08,478 - 124510 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 13:38:08,478 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:08,746 - 124510 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 13:38:08,746 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:09,015 - 124510 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:09,023 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:09,300 - 124510 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-03 13:38:09,301 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:09,568 - 124510 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:09,569 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:09,834 - 124510 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:09,835 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:10,103 - 124510 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:10,104 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:10,371 - 124510 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:10,372 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:10,795 - 124510 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:10,795 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:11,063 - 124510 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 13:38:11,083 - 124510 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 13:38:11,084 - 124510 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:11,084 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679490 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:11,348 - 124510 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:11,349 - 124510 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:11,641 - 124510 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-03 13:38:12,577 - 124510 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 13:38:12,577 - 124510 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 13:38:12,577 - 124510 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:12,578 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679495, 3679496, 3679497, 3679498, 3679483, 3679484, 3679485, 3679486) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:12,845 - 124510 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:12,846 - 124510 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:13,126 - 124510 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-03 13:38:14,220 - 124510 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:14,221 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679487) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:14,487 - 124510 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:14,488 - 124510 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:14,758 - 124510 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 13:38:15,701 - 124510 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 13:38:15,701 - 124510 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 13:38:15,701 - 124510 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:15,702 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679488, 3679489, 3679490, 3679487) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:15,967 - 124510 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 13:38:15,968 - 124510 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:16,241 - 124510 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 13:38:17,187 - 124510 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 13:38:17,188 - 124510 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 13:38:17,188 - 124510 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:17,188 - 124510 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498, 3679483, 3679484, 3679485, 3679486) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:17,454 - 124510 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 13:38:17,455 - 124510 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:17,728 - 124510 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 13:38:18,681 - 124510 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 13:38:18,681 - 124510 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 13:38:18,681 - 124510 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:18,946 - 124510 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:18,947 - 124510 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 13:38:18,947 - 124510 - src.utils.log - INFO - Time took to perform operation: 23.0 - __SPLIT__ 2026-06-03 13:38:18,947 - 124510 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:19,214 - 124510 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:19,214 - 124510 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 09:38:19.214' WHERE GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:19,479 - 124510 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:31,332 - [124510] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498] user_id=43135 company_id=133 project_id=[124510] publish_all=False - __SPLIT__ 2026-06-03 13:38:31,333 - [124510] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498] user_id=43135 company_id=133 project_id=[124510] publish_all=False - __SPLIT__ 2026-06-03 13:38:31,333 - [124510] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124510] - __SPLIT__ 2026-06-03 13:38:31,334 - [124510] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 13:38:31,334 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:33,413 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:33,414 - [124510] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 13:38:33,414 - [124510] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 13:38:33,415 - [124510] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 13:38:33,415 - [124510] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:35,252 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:35,252 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:35,522 - [124510] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-03 13:38:35,522 - [124510] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 13:38:35,523 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:35,799 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:35,799 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:36,072 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:36,072 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:36,348 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:36,353 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:36,614 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:36,614 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:36,877 - [124510] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 13:38:36,877 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:37,139 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:37,140 - [124510] - 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-06-03 13:38:37,406 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:37,406 - [124510] - 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-06-03 13:38:37,673 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:37,677 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:37,947 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:37,956 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:38,218 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:38,219 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14907' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:38,485 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:38,488 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426626', '1426627', '1426628', '1426629', '1426630', '1426631', '1426632', '1426633', '1426634', '1426635', '1426636', '1426637', '1426638', '1426639', '1426640', '1426641') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:38,756 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:38,756 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:39,185 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 13:38:40,626 - [124510] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 13:38:40,757 - [124510] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 13:38:40,759 - [124510] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:41,028 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:41,029 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426626', '1426627', '1426628', '1426629', '1426630', '1426631', '1426632', '1426633', '1426634', '1426635', '1426636', '1426637', '1426638', '1426639', '1426640', '1426641') AND wo.AccountNumber = '14907' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-06-03 13:38:41,302 - [124510] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-03 13:38:41,302 - [124510] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 13:38:41,302 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:41,650 - [124510] - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-06-03 13:38:41,651 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:41,920 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:41,920 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:42,237 - [124510] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-03 13:38:42,238 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:42,503 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:42,504 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:42,772 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:42,773 - [124510] - 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 (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:43,084 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:43,084 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:43,354 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:43,354 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:43,619 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:38:43,621 - [124510] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 13:38:43,644 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:43,906 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:43,909 - [124510] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1159 AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:44,173 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:44,175 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:44,438 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:38:44,439 - [124510] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22800' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:44,703 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:44,707 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:44,707 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:44,995 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 13:38:45,987 - [124510] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 13:38:45,989 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) AND WorkOrderNo IN ('9747163', '1129558', '8303751', '1422512', '118751', '142065', '969230', '218970', '5930990', '8360598', '8538850', '7241085', '3818460', '8099485', '9322975', '3407290') AND GenerateWorkOrderHistoryId = 124510;... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-06-03 13:38:46,437 - [124510] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-03 13:38:46,438 - [124510] - src.utils.log - INFO - 🏁 Final merged rows: 16 - __SPLIT__ 2026-06-03 13:38:46,444 - [124510] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 13:38:46,444 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:46,444 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:46,715 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 13:38:47,672 - [124510] - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 13:38:47,673 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:47,673 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:47,962 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-03 13:38:48,891 - [124510] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 13:38:48,892 - [124510] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 13:38:48,892 - [124510] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 13:38:48,892 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:48,892 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:49,160 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-03 13:38:50,095 - [124510] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-03 13:38:50,096 - [124510] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 13:38:50,096 - [124510] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 13:38:50,096 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:50,096 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:50,367 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 13:38:51,321 - [124510] - src.utils.log - INFO - βœ… All 24 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 13:38:51,322 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:51,322 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:51,601 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 13:38:52,690 - [124510] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 13:38:52,691 - [124510] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156913, 2156914, 2156915, 2156916, 2156925, 2156926, 2156927, 2156928)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:52,973 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:52,980 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:52,981 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:53,248 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 13:38:54,053 - [124510] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 13:38:54,054 - [124510] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230394, 230392, 230393, 230398, 230396, 230397, 230395, 230399) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:54,319 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:54,320 - [124510] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002', '1000000003', '1000000004', '1000000005', '1000000006'); ... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-06-03 13:38:54,627 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:54,635 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:54,635 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:54,908 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 13:38:55,720 - [124510] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 13:38:55,720 - [124510] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192577, 192579, 192580, 192582, 192583, 192584)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:55,985 - [124510] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-03 13:38:55,986 - [124510] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192577', '0___TMP___192579', '0___TMP___192580', '0___TMP___192582', '0___TMP___192583', '0___TMP___192584') AND CreatedDate = '2026-06-03 09:38:52.978'; ... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-06-03 13:38:56,266 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:38:56,273 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:38:56,273 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:56,541 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 13:38:57,478 - [124510] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 13:38:57,479 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:57,742 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:38:57,749 - [124510] - src.utils.log - INFO - Size of Transaction: 16 - __SPLIT__ 2026-06-03 13:38:57,750 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:58,150 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 13:38:59,087 - [124510] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 13:38:59,220 - [124510] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 13:38:59,221 - [124510] - 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-06-03 09:38:57.744';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:59,608 - [124510] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-03 13:38:59,611 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150390, 150391, 150392, 150393, 150394, 150395, 150396, 150397);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:38:59,875 - [124510] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 13:38:59,885 - [124510] - 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-06-03 09:38:57.744'; ... (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-06-03 13:39:00,259 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:39:00,265 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:39:00,265 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:00,536 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into Billing.Invoice - __SPLIT__ 2026-06-03 13:39:01,486 - [124510] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 13:39:01,487 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426633', '1426637', '1426632', '1426636', '1426631', '1426635', '1426630', '1426634', '1426629', '1426641', '1426628', '1426640', '1426627', '1426639', '1426626', '1426638')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:03,097 - [124510] - src.utils.log - INFO - βœ… Fetched 16 rows - __SPLIT__ 2026-06-03 13:39:03,107 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:03,374 - [124510] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-03 13:39:03,374 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:03,642 - [124510] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-03 13:39:03,643 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:03,909 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:39:03,910 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:04,176 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:39:04,190 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150393, 150392, 150391, 150390, 150397, 150396, 150395, 150394);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:04,457 - [124510] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 13:39:04,463 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:04,728 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:39:04,739 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150397, 150396, 150395, 150394, 150393, 150392, 150391, 150390);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:05,004 - [124510] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:39:05,012 - [124510] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 13:39:05,013 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:39:05,013 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:05,300 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-03 13:39:06,226 - [124510] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-03 13:39:06,226 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:39:06,226 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:06,497 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 13:39:07,579 - [124510] - src.utils.log - INFO - βœ… All 24 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 13:39:07,579 - [124510] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 13:39:07,580 - [124510] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:07,866 - [124510] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-06-03 13:39:08,790 - [124510] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-03 13:39:08,790 - [124510] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 13:39:08,791 - [124510] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 13:39:08,791 - [124510] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124510 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:09,055 - [124510] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 13:39:09,062 - [124510] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 13:39:09,193 - [124510] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7bb481e624 - __SPLIT__ 2026-06-03 13:39:09,458 - [124510] - src.utils.log - INFO - πŸ“Œ Bulk inserting 8 rows into #tbl_7bb481e624 - __SPLIT__ 2026-06-03 13:39:10,635 - [124510] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 13:39:10,776 - [124510] - src.utils.log - INFO - βœ” SQL reported affected rows: 8 - __SPLIT__ 2026-06-03 13:39:10,912 - [124510] - src.utils.log - INFO - πŸ” Verified successfully updated 8 rows via #tbl_7bb481e624 - __SPLIT__ 2026-06-03 13:39:10,912 - [124510] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7bb481e624 - __SPLIT__ 2026-06-03 13:39:10,912 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124510 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:11,175 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:11,175 - [124510] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 13:39:11,176 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:11,611 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:11,611 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:11,991 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:11,991 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:12,256 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:12,256 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:12,618 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:12,619 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:12,892 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:12,892 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:13,163 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:13,163 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:13,428 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:13,428 - [124510] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:14,556 - [124510] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 13:39:14,556 - [124510] - src.utils.log - INFO - Work order published ids: (3679483, 3679484, 3679485, 3679486, 3679487, 3679488, 3679489, 3679490, 3679491, 3679492, 3679493, 3679494, 3679495, 3679496, 3679497, 3679498) - __SPLIT__ 2026-06-03 13:39:14,556 - [124510] - src.utils.log - INFO - Time took to perform operation in publishing [124510]: 43.22 - __SPLIT__ 2026-06-03 13:39:14,557 - [124510] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124510] - __SPLIT__ 2026-06-03 13:39:14,557 - [124510] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 09:39:14.556' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124510;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:39:14,820 - [124510] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 13:59:57,087 - 124511 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124511 - __SPLIT__ 2026-06-03 13:59:57,088 - 124511 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124511 - __SPLIT__ 2026-06-03 13:59:57,089 - 124511 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 13:59:57,090 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 13:59:59,200 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 13:59:59,201 - 124511 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 13:59:59,201 - 124511 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 13:59:59,202 - 124511 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 13:59:59,202 - 124511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:01,040 - 124511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:01,040 - 124511 - 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 = 124511), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124511), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124511 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:01,390 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:01,390 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:01,657 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:01,660 - 124511 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-03 14:00:01,661 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14643... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:01,934 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:01,934 - 124511 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-03 14:00:01,938 - 124511 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-03 14:00:01,938 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:02,202 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:02,202 - 124511 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-03 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 150398 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:02,473 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:03,022 - 124511 - src.utils.log - INFO - Generating work orders for setup: 150398 - __SPLIT__ 2026-06-03 14:00:03,039 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:03,300 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:03,309 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:03,571 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:03,608 - 124511 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-03 14:00:03,613 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:03,878 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:03,881 - 124511 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-03 14:00:03,881 - 124511 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-03 14:00:03,881 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:04,198 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:04,198 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:04,515 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:04,516 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:04,787 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:04,787 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:05,102 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:05,102 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:05,425 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:05,425 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:05,701 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:05,701 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:05,967 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:05,967 - 124511 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150398 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:06,350 - 124511 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:06,351 - 124511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:06,351 - 124511 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:06,650 - 124511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-03 14:00:07,592 - 124511 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-03 14:00:07,592 - 124511 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-03 12:12:55.576' and ServiceSetupId = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:07,908 - 124511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:07,908 - 124511 - src.utils.log - INFO - Id's of work order inserted to DB: [3679499 3679500] - __SPLIT__ 2026-06-03 14:00:07,909 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:08,171 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:08,171 - 124511 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-03 14:00:08,172 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:08,439 - 124511 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 14:00:08,440 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:08,703 - 124511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:08,710 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:08,979 - 124511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:08,980 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:09,245 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:09,245 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:09,507 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:09,508 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:09,772 - 124511 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 14:00:09,774 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:10,036 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:10,036 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:10,402 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:10,402 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:10,667 - 124511 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:10,684 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679499, 3679500) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:10,947 - 124511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:10,948 - 124511 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:11,219 - 124511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-03 14:00:12,151 - 124511 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 14:00:12,151 - 124511 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:12,152 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679499, 3679500) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:12,413 - 124511 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:12,414 - 124511 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:12,681 - 124511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-03 14:00:13,610 - 124511 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-03 14:00:13,610 - 124511 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-03 14:00:13,610 - 124511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:13,611 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679499 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:13,872 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:13,873 - 124511 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:14,144 - 124511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 14:00:15,074 - 124511 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 14:00:15,075 - 124511 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 14:00:15,075 - 124511 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:15,075 - 124511 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679500 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:15,337 - 124511 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:15,338 - 124511 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:15,609 - 124511 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-03 14:00:16,539 - 124511 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-03 14:00:16,539 - 124511 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-03 14:00:16,539 - 124511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:16,802 - 124511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:16,802 - 124511 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-03 14:00:16,802 - 124511 - src.utils.log - INFO - Time took to perform operation: 19.71 - __SPLIT__ 2026-06-03 14:00:16,803 - 124511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:17,067 - 124511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:17,067 - 124511 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-06-03 10:00:17.067' WHERE GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:17,330 - 124511 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:26,984 - [124511] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679499, 3679500] user_id=43135 company_id=133 project_id=[124511] publish_all=False - __SPLIT__ 2026-06-03 14:00:26,985 - [124511] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679499, 3679500] user_id=43135 company_id=133 project_id=[124511] publish_all=False - __SPLIT__ 2026-06-03 14:00:26,985 - [124511] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124511] - __SPLIT__ 2026-06-03 14:00:26,986 - [124511] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 14:00:26,986 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:28,997 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:28,997 - [124511] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 14:00:28,998 - [124511] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 14:00:28,998 - [124511] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 14:00:28,998 - [124511] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:30,861 - [124511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:30,861 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:31,132 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:31,132 - [124511] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 14:00:31,133 - [124511] - 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 = 150398 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:31,409 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:31,410 - [124511] - 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 = 150398 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:31,685 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:31,685 - [124511] - 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 = 150398 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:31,964 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:31,968 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:32,233 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:32,234 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:32,500 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:32,500 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:32,766 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:32,766 - [124511] - 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-06-03 14:00:33,036 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:33,036 - [124511] - 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-06-03 14:00:33,304 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:33,308 - [124511] - 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 = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:33,580 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:33,583 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:33,849 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:33,849 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14908' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:34,116 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:34,119 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426642', '1426643') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:34,390 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:34,390 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:34,825 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 14:00:35,781 - [124511] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 14:00:35,914 - [124511] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 14:00:35,916 - [124511] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:36,184 - [124511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:36,186 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426642', '1426643') AND wo.AccountNumber = '14908' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-03 14:00:36,458 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:36,458 - [124511] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 14:00:36,459 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:36,763 - [124511] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-03 14:00:36,764 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:37,033 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:37,033 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:37,322 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:37,322 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:37,590 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:37,591 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:37,860 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:37,860 - [124511] - 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 (3679499, 3679500)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:38,156 - [124511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 14:00:38,156 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679499, 3679500) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:38,425 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:38,425 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679499, 3679500);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:38,692 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:38,695 - [124511] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 14:00:38,707 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:38,973 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:38,977 - [124511] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1159, 1091) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:39,244 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:39,247 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:39,513 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:39,517 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:39,517 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:39,810 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 14:00:40,757 - [124511] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 14:00:40,758 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150398 AND WorkOrderNo IN ('802401', '5999812') AND GenerateWorkOrderHistoryId = 124511;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-03 14:00:41,208 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:41,209 - [124511] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-03 14:00:41,215 - [124511] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 14:00:41,215 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:41,215 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:41,490 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 14:00:42,441 - [124511] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 14:00:42,441 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:42,441 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:42,715 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-03 14:00:43,659 - [124511] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-03 14:00:43,660 - [124511] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 14:00:43,660 - [124511] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-03 14:00:43,660 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:43,660 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:43,932 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-03 14:00:44,872 - [124511] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-03 14:00:44,873 - [124511] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 14:00:44,873 - [124511] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 14:00:44,873 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:44,873 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:45,147 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 14:00:46,096 - [124511] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 14:00:46,096 - [124511] - 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 = 150398... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:46,364 - [124511] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 14:00:46,370 - [124511] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-03 14:00:46,371 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:46,777 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 14:00:47,713 - [124511] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 14:00:47,846 - [124511] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 14:00:47,847 - [124511] - 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-06-03 10:00:46.365';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:48,246 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:48,249 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:48,517 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:48,526 - [124511] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-03 10:00:46.365'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-03 14:00:48,911 - [124511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 14:00:48,916 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:48,916 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:49,191 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-03 14:00:50,130 - [124511] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 14:00:50,131 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426642', '1426643')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:50,992 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:51,001 - [124511] - 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 = 150398 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:51,272 - [124511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 14:00:51,272 - [124511] - 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 = 150398 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:51,542 - [124511] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 14:00:51,543 - [124511] - 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 = 150398 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:51,812 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:51,813 - [124511] - 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 = 150398 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:52,081 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:52,094 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:52,361 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:52,367 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:52,635 - [124511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 14:00:52,645 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:52,913 - [124511] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-03 14:00:52,923 - [124511] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 14:00:52,923 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:52,923 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:53,194 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-03 14:00:54,137 - [124511] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-03 14:00:54,138 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:54,138 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:54,412 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 14:00:55,359 - [124511] - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 14:00:55,360 - [124511] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 14:00:55,360 - [124511] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:55,630 - [124511] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-06-03 14:00:56,571 - [124511] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-03 14:00:56,572 - [124511] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 14:00:56,572 - [124511] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 14:00:56,572 - [124511] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124511 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:56,840 - [124511] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 14:00:56,847 - [124511] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 14:00:56,981 - [124511] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f97e0bf35b - __SPLIT__ 2026-06-03 14:00:57,250 - [124511] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f97e0bf35b - __SPLIT__ 2026-06-03 14:00:57,516 - [124511] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 14:00:57,657 - [124511] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 14:00:57,795 - [124511] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f97e0bf35b - __SPLIT__ 2026-06-03 14:00:57,795 - [124511] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f97e0bf35b - __SPLIT__ 2026-06-03 14:00:57,795 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124511 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:58,061 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:58,062 - [124511] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 14:00:58,062 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:58,463 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:58,463 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:58,816 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:58,816 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:59,085 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:59,085 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:59,433 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:59,433 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:59,706 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:59,706 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:00:59,977 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:00:59,977 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:01:00,244 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:01:00,245 - [124511] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679499, 3679500) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:01:00,605 - [124511] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 14:01:00,605 - [124511] - src.utils.log - INFO - Work order published ids: (3679499, 3679500) - __SPLIT__ 2026-06-03 14:01:00,605 - [124511] - src.utils.log - INFO - Time took to perform operation in publishing [124511]: 33.62 - __SPLIT__ 2026-06-03 14:01:00,605 - [124511] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124511] - __SPLIT__ 2026-06-03 14:01:00,606 - [124511] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 10:01:00.605' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124511;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 14:01:00,873 - [124511] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 15:19:57,873 - [124507] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679478] user_id=43135 company_id=133 project_id=[124507] publish_all=False - __SPLIT__ 2026-06-03 15:19:57,874 - [124507] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679478] user_id=43135 company_id=133 project_id=[124507] publish_all=False - __SPLIT__ 2026-06-03 15:19:57,874 - [124507] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124507] - __SPLIT__ 2026-06-03 15:19:57,875 - [124507] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-03 15:19:57,876 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:19:59,928 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:19:59,929 - [124507] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-03 15:19:59,929 - [124507] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-03 15:19:59,930 - [124507] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-03 15:19:59,930 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:01,914 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 15:20:01,915 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:02,203 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:02,204 - [124507] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-03 15:20:02,204 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:02,489 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:02,489 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:02,772 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:02,772 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:03,055 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:03,058 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:03,341 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:03,341 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:03,624 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 15:20:03,625 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:03,907 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:03,908 - [124507] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:04,196 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:04,196 - [124507] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:04,485 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:04,489 - [124507] - 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 = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:04,773 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:04,774 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:05,057 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:05,057 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14893' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:05,340 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:05,343 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1426645' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:05,627 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:05,628 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:06,087 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-03 15:20:07,109 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 15:20:07,250 - [124507] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 15:20:07,252 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1426645' AND wo.AccountNumber = '14893' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-06-03 15:20:07,537 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:07,538 - [124507] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-03 15:20:07,538 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:07,855 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:07,855 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:08,144 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:08,144 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:08,445 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:08,445 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:08,730 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:08,730 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:09,015 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:09,015 - [124507] - 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 = 3679478... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:09,323 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:09,323 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3679478 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:09,609 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:09,609 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3679478;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:09,894 - [124507] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 15:20:09,897 - [124507] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-03 15:20:09,912 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:10,195 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:10,204 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:10,488 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:10,489 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22801' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:10,776 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 15:20:10,780 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:10,780 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:11,091 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-03 15:20:12,100 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-03 15:20:12,101 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150386 AND WorkOrderNo = '9567217' AND GenerateWorkOrderHistoryId = 124507; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:12,552 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:12,558 - [124507] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-03 15:20:12,558 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:12,558 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:12,849 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-03 15:20:13,851 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-03 15:20:13,852 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-03 15:20:13,852 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-03 15:20:13,852 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:13,852 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:14,141 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-03 15:20:15,003 - [124507] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-03 15:20:15,004 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-03 15:20:15,004 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-03 15:20:15,004 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-03 15:20:15,004 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:15,004 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:15,295 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-03 15:20:16,295 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-03 15:20:16,296 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:16,296 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:16,596 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-03 15:20:17,748 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-03 15:20:17,748 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId = 2156932... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:18,047 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:18,054 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:18,054 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:18,342 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-03 15:20:19,199 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-03 15:20:19,200 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId = 230400 and ModifiedBy in ('999999999', '1000000000') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:19,484 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-03 15:20:19,484 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000'); ... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-06-03 15:20:19,804 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 15:20:19,811 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:19,811 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:20,103 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-03 15:20:21,111 - [124507] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-03 15:20:21,112 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192585, 192586)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:21,397 - [124507] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-03 15:20:21,397 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192585', '1___TMP___192585', '0___TMP___192586', '1___TMP___192586') AND CreatedDate = '2026-06-03 11:20:18.052'; ... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-06-03 15:20:21,697 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 15:20:21,704 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:21,704 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:21,992 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-03 15:20:22,997 - [124507] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-03 15:20:23,004 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:23,004 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:23,298 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-03 15:20:24,315 - [124507] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-03 15:20:24,316 - [124507] - 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 = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:24,600 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:24,606 - [124507] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-06-03 15:20:24,607 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:25,036 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-03 15:20:26,033 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-03 15:20:26,174 - [124507] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-03 15:20:26,174 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-03 11:20:24.601';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:26,562 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:26,565 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:26,850 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:26,859 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-06-03 11:20:24.601'; ... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-06-03 15:20:27,758 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-03 15:20:27,763 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:27,763 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:28,055 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-03 15:20:29,055 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-03 15:20:29,056 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1426645'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:29,850 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:29,858 - [124507] - 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 = 150386 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:30,141 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:30,142 - [124507] - 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 = 150386 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:30,426 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:30,426 - [124507] - 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 = 150386 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:30,709 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:30,710 - [124507] - 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 = 150386 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:30,993 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:31,005 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:31,290 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-03 15:20:31,296 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:31,579 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:31,582 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:31,865 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:31,865 - [124507] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-03 15:20:31,866 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-03 15:20:31,866 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-03 15:20:31,866 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:32,157 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-06-03 15:20:33,156 - [124507] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-03 15:20:33,156 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-03 15:20:33,156 - [124507] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-03 15:20:33,157 - [124507] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-03 15:20:33,157 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124507 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:33,439 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-03 15:20:33,446 - [124507] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-03 15:20:33,588 - [124507] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_afe4daa761 - __SPLIT__ 2026-06-03 15:20:33,873 - [124507] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_afe4daa761 - __SPLIT__ 2026-06-03 15:20:34,156 - [124507] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-03 15:20:34,307 - [124507] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-03 15:20:34,454 - [124507] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_afe4daa761 - __SPLIT__ 2026-06-03 15:20:34,454 - [124507] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_afe4daa761 - __SPLIT__ 2026-06-03 15:20:34,455 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124507 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:34,738 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:34,738 - [124507] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-03 15:20:34,738 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:35,150 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:35,151 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:35,512 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:35,512 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:35,797 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:35,797 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:36,154 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:36,155 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:36,444 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:36,444 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:36,734 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:36,735 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:37,020 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:37,021 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3679478 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:37,353 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-03 15:20:37,354 - [124507] - src.utils.log - INFO - Work order published ids: (3679478,) - __SPLIT__ 2026-06-03 15:20:37,354 - [124507] - src.utils.log - INFO - Time took to perform operation in publishing [124507]: 39.48 - __SPLIT__ 2026-06-03 15:20:37,354 - [124507] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124507] - __SPLIT__ 2026-06-03 15:20:37,354 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-03 11:20:37.354' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-03 15:20:37,639 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 04:43:02,374 - [124507] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679475, 3679476] user_id=43135 company_id=133 project_id=[124507] publish_all=False - __SPLIT__ 2026-06-04 04:43:02,375 - [124507] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679475, 3679476] user_id=43135 company_id=133 project_id=[124507] publish_all=False - __SPLIT__ 2026-06-04 04:43:02,375 - [124507] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124507] - __SPLIT__ 2026-06-04 04:43:02,376 - [124507] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-04 04:43:02,376 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:04,454 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:04,455 - [124507] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-04 04:43:04,455 - [124507] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-04 04:43:04,456 - [124507] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-04 04:43:04,456 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:06,534 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 04:43:06,534 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:06,809 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:06,809 - [124507] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-04 04:43:06,809 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:07,092 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:07,092 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:07,372 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:07,372 - [124507] - 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 = 150386 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:07,658 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:07,662 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:07,939 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:07,939 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:08,210 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:08,211 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:08,484 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:08,484 - [124507] - 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-06-04 04:43:08,760 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:08,761 - [124507] - 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-06-04 04:43:09,034 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:09,038 - [124507] - 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 = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:09,323 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:09,326 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:09,596 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:09,596 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14893' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:09,867 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:09,869 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426648', '1426649') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:10,146 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:10,146 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:10,710 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-04 04:43:11,968 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-04 04:43:12,102 - [124507] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-04 04:43:12,104 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426648', '1426649') AND wo.AccountNumber = '14893' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-04 04:43:12,383 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:12,384 - [124507] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-04 04:43:12,384 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:12,769 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:12,769 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:13,197 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:13,197 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:13,549 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:13,549 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:13,836 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:13,837 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:14,140 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:14,140 - [124507] - 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 (3679475, 3679476)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:14,513 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:14,514 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679475, 3679476) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:14,786 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:14,786 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679475, 3679476);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:15,067 - [124507] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-04 04:43:15,070 - [124507] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-04 04:43:15,087 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:15,357 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:15,366 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:15,637 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:15,638 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22803' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:15,911 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 04:43:15,915 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:15,915 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:16,252 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-04 04:43:17,225 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-04 04:43:17,227 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150386 AND WorkOrderNo IN ('4186534', '3365221') AND GenerateWorkOrderHistoryId = 124507;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-04 04:43:17,783 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:17,784 - [124507] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-04 04:43:17,790 - [124507] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-04 04:43:17,790 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:17,790 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:18,096 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-04 04:43:19,055 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-04 04:43:19,056 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-04 04:43:19,056 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-04 04:43:19,056 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:19,056 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:19,362 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-04 04:43:20,204 - [124507] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-04 04:43:20,205 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-04 04:43:20,205 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-04 04:43:20,205 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-04 04:43:20,205 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:20,205 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:20,517 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-04 04:43:21,499 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-04 04:43:21,499 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:21,499 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:21,826 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-04 04:43:23,123 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-04 04:43:23,124 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156935, 2156936)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:23,538 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:23,546 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:23,546 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:23,852 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-04 04:43:24,674 - [124507] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-04 04:43:24,675 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230402, 230401) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:24,957 - [124507] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-04 04:43:24,957 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002'); ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-04 04:43:25,288 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 04:43:25,296 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:25,296 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:25,603 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-04 04:43:26,601 - [124507] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-04 04:43:26,602 - [124507] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192587, 192588, 192589, 192590)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:26,887 - [124507] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-04 04:43:26,887 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192587', '1___TMP___192587', '0___TMP___192588', '1___TMP___192588', '0___TMP___192589', '1___TMP___192589', '0___TMP___192590', '1___TMP___192590') AND CreatedDate = '2026-06-04 00:43:23.543'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-04 04:43:27,185 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 04:43:27,192 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:27,192 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:27,512 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-04 04:43:28,482 - [124507] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-04 04:43:28,488 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:28,488 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:28,794 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-04 04:43:29,802 - [124507] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-04 04:43:29,803 - [124507] - 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 = 150386... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:30,072 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:30,078 - [124507] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-04 04:43:30,079 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:30,534 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-04 04:43:31,489 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-04 04:43:31,623 - [124507] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-04 04:43:31,624 - [124507] - 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-06-04 00:43:30.074';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:32,078 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:32,081 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:32,367 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:32,376 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-04 00:43:30.074'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-04 04:43:32,859 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 04:43:32,864 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:32,864 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:33,176 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-04 04:43:34,141 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-04 04:43:34,142 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426649', '1426648')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:35,130 - [124507] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 04:43:35,139 - [124507] - 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 = 150386 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:35,413 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:35,414 - [124507] - 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 = 150386 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:35,686 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:35,686 - [124507] - 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 = 150386 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:35,960 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:35,960 - [124507] - 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 = 150386 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:36,232 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:36,244 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:36,516 - [124507] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 04:43:36,523 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:36,794 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:36,797 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:37,068 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:37,068 - [124507] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-04 04:43:37,068 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-04 04:43:37,069 - [124507] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 04:43:37,069 - [124507] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:37,371 - [124507] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-04 04:43:38,330 - [124507] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-04 04:43:38,330 - [124507] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-04 04:43:38,330 - [124507] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-04 04:43:38,331 - [124507] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-04 04:43:38,331 - [124507] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124507 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:38,629 - [124507] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 04:43:38,635 - [124507] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-04 04:43:38,770 - [124507] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7100667d54 - __SPLIT__ 2026-06-04 04:43:39,051 - [124507] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7100667d54 - __SPLIT__ 2026-06-04 04:43:39,320 - [124507] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-04 04:43:39,467 - [124507] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-04 04:43:39,626 - [124507] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7100667d54 - __SPLIT__ 2026-06-04 04:43:39,627 - [124507] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7100667d54 - __SPLIT__ 2026-06-04 04:43:39,627 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124507 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:39,897 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:39,897 - [124507] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-04 04:43:39,897 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:40,325 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:40,325 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:40,701 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:40,701 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:40,972 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:40,973 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:41,346 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:41,346 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:41,623 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:41,624 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:41,900 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:41,901 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:42,173 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:42,173 - [124507] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679475, 3679476) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:42,557 - [124507] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 04:43:42,557 - [124507] - src.utils.log - INFO - Work order published ids: (3679475, 3679476) - __SPLIT__ 2026-06-04 04:43:42,557 - [124507] - src.utils.log - INFO - Time took to perform operation in publishing [124507]: 40.18 - __SPLIT__ 2026-06-04 04:43:42,557 - [124507] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124507] - __SPLIT__ 2026-06-04 04:43:42,558 - [124507] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-04 00:43:42.557' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124507;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 04:43:42,830 - [124507] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 14:55:20,408 - 12275 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12275 - __SPLIT__ 2026-06-04 14:55:20,410 - 12275 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12275 - __SPLIT__ 2026-06-04 14:55:20,430 - 12275 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-04 14:55:20,430 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:23,043 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:23,044 - 12275 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-04 14:55:23,044 - 12275 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12275;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:23,352 - 12275 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 14:55:23,352 - 12275 - 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 = 12275), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12275), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12275 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:23,672 - 12275 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:23,672 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12275;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:23,969 - 12275 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:23,973 - 12275 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-04 14:55:23,973 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13014... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:24,268 - 12275 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-04 14:55:24,268 - 12275 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-04 14:55:24,272 - 12275 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-04 14:55:24,272 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:24,582 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:24,583 - 12275 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-04 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 23995 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:24,886 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:25,484 - 12275 - src.utils.log - INFO - Generating work orders for setup: 23995 - __SPLIT__ 2026-06-04 14:55:25,500 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1395;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:25,786 - 12275 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:25,826 - 12275 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-04 14:55:25,831 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:26,140 - 12275 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:26,141 - 12275 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-04 14:55:26,142 - 12275 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-04 14:55:26,142 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:26,440 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:26,440 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:26,734 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:26,735 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:27,031 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:27,031 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:27,329 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:27,330 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:27,647 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:27,647 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:27,960 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:27,960 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:28,258 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:28,259 - 12275 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23995 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:28,575 - 12275 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:55:28,575 - 12275 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:55:28,576 - 12275 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:28,916 - 12275 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-04 14:55:29,965 - 12275 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-04 14:55:29,966 - 12275 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.703' and ServiceSetupId = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:30,269 - 12275 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:30,270 - 12275 - src.utils.log - INFO - Id's of work order inserted to DB: [2730379 2730380] - __SPLIT__ 2026-06-04 14:55:30,270 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:30,565 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:30,565 - 12275 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-04 14:55:30,566 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:30,857 - 12275 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-04 14:55:30,857 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:31,171 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:31,175 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:31,470 - 12275 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:31,472 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:31,760 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:31,760 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:32,052 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:32,052 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:32,337 - 12275 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:32,338 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:32,631 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:32,632 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:33,181 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:33,181 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:33,474 - 12275 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:33,487 - 12275 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-04 14:55:33,487 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:55:33,488 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730379, 2730380) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:33,786 - 12275 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:33,787 - 12275 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:34,103 - 12275 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-04 14:55:35,295 - 12275 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-04 14:55:35,295 - 12275 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-04 14:55:35,295 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-04 14:55:35,295 - 12275 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-04 14:55:35,295 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-04 14:55:35,295 - 12275 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-04 14:55:35,296 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-04 14:55:35,296 - 12275 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-04 14:55:35,296 - 12275 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:55:35,296 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730379, 2730380) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:35,584 - 12275 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:35,585 - 12275 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:35,896 - 12275 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-04 14:55:36,950 - 12275 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-04 14:55:36,950 - 12275 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-04 14:55:36,950 - 12275 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-04 14:55:36,951 - 12275 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-04 14:55:36,951 - 12275 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:55:36,951 - 12275 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730379, 2730380) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:37,233 - 12275 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:37,234 - 12275 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:37,562 - 12275 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-04 14:55:38,594 - 12275 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-04 14:55:38,594 - 12275 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-04 14:55:38,594 - 12275 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12275;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:38,873 - 12275 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 14:55:38,874 - 12275 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-04 14:55:38,874 - 12275 - src.utils.log - INFO - Time took to perform operation: 18.46 - __SPLIT__ 2026-06-04 14:55:52,798 - [12275] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730379, 2730380] user_id=122885 company_id=135 project_id=[12275] publish_all=False - __SPLIT__ 2026-06-04 14:55:52,799 - [12275] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730379, 2730380] user_id=122885 company_id=135 project_id=[12275] publish_all=False - __SPLIT__ 2026-06-04 14:55:52,800 - [12275] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12275] - __SPLIT__ 2026-06-04 14:55:52,814 - [12275] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-04 14:55:52,814 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:55,483 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:55,484 - [12275] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-04 14:55:55,484 - [12275] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12275;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:55,772 - [12275] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 14:55:55,772 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:56,086 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:56,087 - [12275] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-04 14:55:56,087 - [12275] - 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 = 23995 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:56,383 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:56,383 - [12275] - 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 = 23995 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:56,685 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:56,686 - [12275] - 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 = 23995 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:56,988 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:56,992 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:57,280 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:57,280 - [12275] - 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-06-04 14:55:57,572 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:57,573 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:57,887 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:57,887 - [12275] - 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-06-04 14:55:58,208 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:55:58,212 - [12275] - 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 = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:58,516 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:58,519 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:58,817 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:58,818 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8461' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:59,119 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:55:59,122 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167695R', '167696R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:59,413 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:55:59,413 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:55:59,904 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-04 14:56:01,159 - [12275] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-04 14:56:01,301 - [12275] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-04 14:56:01,304 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167695R', '167696R') AND wo.AccountNumber = '8461' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-04 14:56:01,589 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:01,590 - [12275] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-04 14:56:01,591 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:01,887 - [12275] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-04 14:56:01,888 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:02,186 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:02,186 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:02,481 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:02,481 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:02,801 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:02,801 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:03,218 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:03,219 - [12275] - 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 (2730379, 2730380)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:03,808 - [12275] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-04 14:56:03,808 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2730379, 2730380) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:04,113 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:04,113 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2730379, 2730380);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:04,437 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:04,440 - [12275] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-04 14:56:04,453 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:04,738 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:56:04,742 - [12275] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1864, 1865) AND CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:05,046 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:05,049 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:05,369 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:56:05,373 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:05,374 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:05,698 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-04 14:56:06,775 - [12275] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-04 14:56:06,776 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23995 AND WorkOrderNo IN ('5545115', '6794609') AND GenerateWorkOrderHistoryId = 12275;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-04 14:56:07,153 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:07,154 - [12275] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-04 14:56:07,160 - [12275] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-04 14:56:07,160 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:07,160 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:07,474 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-04 14:56:08,503 - [12275] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-04 14:56:08,504 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:08,504 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:08,813 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-04 14:56:09,873 - [12275] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-04 14:56:09,873 - [12275] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-04 14:56:09,873 - [12275] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-04 14:56:09,874 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:09,874 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:10,187 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-04 14:56:11,235 - [12275] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-04 14:56:11,235 - [12275] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-04 14:56:11,235 - [12275] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-04 14:56:11,236 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:11,236 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:11,552 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-04 14:56:12,652 - [12275] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-04 14:56:12,652 - [12275] - 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 = 23995... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:12,935 - [12275] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-04 14:56:12,941 - [12275] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-04 14:56:12,942 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:13,404 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-04 14:56:14,496 - [12275] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-04 14:56:14,645 - [12275] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-04 14:56:14,645 - [12275] - 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-06-04 10:56:12.937';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:14,956 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:14,958 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:15,244 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:15,252 - [12275] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-04 10:56:12.937'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-04 14:56:15,591 - [12275] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-04 14:56:15,597 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:15,597 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:15,921 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-04 14:56:16,982 - [12275] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-04 14:56:16,983 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167696R', '167695R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:17,304 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:17,314 - [12275] - 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 = 23995 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:17,616 - [12275] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-04 14:56:17,616 - [12275] - 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 = 23995 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:17,904 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:17,904 - [12275] - 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 = 23995 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:18,203 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:18,203 - [12275] - 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 = 23995 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:18,499 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:18,512 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:18,808 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:18,814 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:19,103 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:19,114 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23995;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:19,416 - [12275] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-04 14:56:19,425 - [12275] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-04 14:56:19,425 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:19,426 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:19,770 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-04 14:56:20,797 - [12275] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-04 14:56:20,797 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:20,797 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:21,118 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-06-04 14:56:22,153 - [12275] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-04 14:56:22,153 - [12275] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-04 14:56:22,153 - [12275] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:22,464 - [12275] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-06-04 14:56:23,482 - [12275] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-04 14:56:23,482 - [12275] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-04 14:56:23,483 - [12275] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-04 14:56:23,483 - [12275] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12275 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:23,776 - [12275] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-04 14:56:23,782 - [12275] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-04 14:56:23,931 - [12275] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_da87f082e0 - __SPLIT__ 2026-06-04 14:56:24,218 - [12275] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_da87f082e0 - __SPLIT__ 2026-06-04 14:56:24,506 - [12275] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-04 14:56:24,735 - [12275] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-04 14:56:24,884 - [12275] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_da87f082e0 - __SPLIT__ 2026-06-04 14:56:24,885 - [12275] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_da87f082e0 - __SPLIT__ 2026-06-04 14:56:24,885 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12275 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:25,171 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:25,171 - [12275] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-04 14:56:25,171 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:25,483 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:25,483 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:25,817 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:25,818 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:26,108 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:26,108 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:26,451 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:26,451 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:26,783 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:26,784 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:27,123 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:27,123 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:27,408 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:27,409 - [12275] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730379, 2730380) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:27,726 - [12275] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-04 14:56:27,727 - [12275] - src.utils.log - INFO - Work order published ids: (2730379, 2730380) - __SPLIT__ 2026-06-04 14:56:27,727 - [12275] - src.utils.log - INFO - Time took to perform operation in publishing [12275]: 34.93 - __SPLIT__ 2026-06-04 14:56:27,727 - [12275] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12275] - __SPLIT__ 2026-06-04 14:56:27,727 - [12275] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-04 10:56:27.727' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12275;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-04 14:56:28,019 - [12275] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:35:24,826 - 124520 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124520 - __SPLIT__ 2026-06-05 07:35:24,827 - 124520 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124520 - __SPLIT__ 2026-06-05 07:35:24,828 - 124520 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 07:35:24,828 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:26,824 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:26,825 - 124520 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 07:35:26,825 - 124520 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 07:35:26,826 - 124520 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 07:35:26,826 - 124520 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:29,251 - 124520 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:35:29,252 - 124520 - 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 = 124520), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124520), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124520 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:29,607 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:29,607 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:29,878 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:29,881 - 124520 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 07:35:29,882 - 124520 - 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 = 14447... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:30,171 - 124520 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 07:35:30,172 - 124520 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 07:35:30,175 - 124520 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-05 07:35:30,175 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:30,449 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:30,449 - 124520 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-05 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150408 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:30,729 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:31,293 - 124520 - src.utils.log - INFO - Generating work orders for setup: 150408 - __SPLIT__ 2026-06-05 07:35:31,320 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:31,592 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:31,600 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:31,868 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:31,903 - 124520 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-05 07:35:31,908 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:32,233 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:32,235 - 124520 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-05 07:35:32,236 - 124520 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-05 07:35:32,236 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:32,711 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:32,712 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:33,078 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:33,078 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:33,369 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:33,370 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:33,738 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:33,738 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:34,102 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:34,102 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:34,398 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:34,398 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:34,673 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:34,673 - 124520 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:35,224 - 124520 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:35:35,224 - 124520 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:35:35,224 - 124520 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:35,574 - 124520 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-05 07:35:36,729 - 124520 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 07:35:36,730 - 124520 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.703' and ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:37,116 - 124520 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:35:37,117 - 124520 - src.utils.log - INFO - Id's of work order inserted to DB: [3679545 3679546 3679547 3679548] - __SPLIT__ 2026-06-05 07:35:37,117 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:37,387 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:37,387 - 124520 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-05 07:35:37,388 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:37,661 - 124520 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:35:37,661 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:37,931 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:37,935 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:38,217 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:38,217 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:38,488 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:38,489 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:38,758 - 124520 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:35:38,760 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:39,031 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:39,031 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:39,300 - 124520 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 07:35:39,301 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:39,798 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:39,798 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:40,070 - 124520 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:35:40,084 - 124520 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-05 07:35:40,084 - 124520 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 07:35:40,084 - 124520 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-05 07:35:40,084 - 124520 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-05 07:35:40,084 - 124520 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-05 07:35:40,084 - 124520 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:35:40,085 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3679546', '3679547', '3679545', '3679548') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:40,353 - 124520 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:35:40,354 - 124520 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:40,679 - 124520 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-05 07:35:40,679 - 124520 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-05 07:35:40,679 - 124520 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-05 07:35:40,679 - 124520 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-05 07:35:40,680 - 124520 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:35:40,680 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679545, 3679546, 3679547, 3679548) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:40,950 - 124520 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:35:40,951 - 124520 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:41,283 - 124520 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-05 07:35:42,644 - 124520 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 07:35:42,645 - 124520 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 07:35:42,645 - 124520 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:35:42,645 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679545, 3679546, 3679547, 3679548) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:42,911 - 124520 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:35:42,912 - 124520 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:43,224 - 124520 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment - __SPLIT__ 2026-06-05 07:35:44,053 - 124520 - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-05 07:35:44,053 - 124520 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 07:35:44,053 - 124520 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-05 07:35:44,053 - 124520 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-05 07:35:44,054 - 124520 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-05 07:35:44,054 - 124520 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-05 07:35:44,054 - 124520 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-05 07:35:44,054 - 124520 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 07:35:44,054 - 124520 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:35:44,054 - 124520 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3679545, 3679546, 3679547, 3679548) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:44,321 - 124520 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:35:44,322 - 124520 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:44,637 - 124520 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 07:35:45,600 - 124520 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 07:35:45,601 - 124520 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 07:35:45,601 - 124520 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:35:45,869 - 124520 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:35:45,869 - 124520 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-05 07:35:45,869 - 124520 - src.utils.log - INFO - Time took to perform operation: 21.04 - __SPLIT__ 2026-06-05 07:36:02,452 - [124520] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679545, 3679546] user_id=43135 company_id=133 project_id=[124520] publish_all=False - __SPLIT__ 2026-06-05 07:36:02,454 - [124520] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3679545, 3679546] user_id=43135 company_id=133 project_id=[124520] publish_all=False - __SPLIT__ 2026-06-05 07:36:02,454 - [124520] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124520] - __SPLIT__ 2026-06-05 07:36:02,469 - [124520] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 07:36:02,469 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:05,204 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:05,204 - [124520] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 07:36:05,205 - [124520] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 07:36:05,205 - [124520] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 07:36:05,206 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:07,732 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:36:07,732 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:08,003 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:08,004 - [124520] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-05 07:36:08,004 - [124520] - 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 = 150408 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:08,297 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:08,297 - [124520] - 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 = 150408 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:08,579 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:08,580 - [124520] - 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 = 150408 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:08,866 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:08,871 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:09,148 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:09,148 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:09,415 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:09,415 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:09,684 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:09,684 - [124520] - 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-06-05 07:36:09,956 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:09,957 - [124520] - 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-06-05 07:36:10,229 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:10,234 - [124520] - 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 = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:10,507 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:10,509 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:10,775 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:10,775 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14893' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:11,042 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:11,045 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426680', '1426681') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:11,319 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:11,319 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:11,859 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-05 07:36:12,940 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 07:36:13,072 - [124520] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 07:36:13,073 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:13,352 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:36:13,354 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426680', '1426681') AND wo.AccountNumber = '14893' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-05 07:36:13,632 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:13,632 - [124520] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-05 07:36:13,633 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:14,060 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:14,061 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:14,348 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:14,349 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:14,660 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:14,660 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:14,927 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:14,927 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:15,197 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:15,197 - [124520] - 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 (3679545, 3679546)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:15,516 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:15,516 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3679545, 3679546) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:15,785 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:15,785 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3679545, 3679546);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:16,053 - [124520] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 07:36:16,057 - [124520] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-05 07:36:16,075 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:16,340 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:16,350 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:16,619 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:16,620 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22806' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:16,901 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:36:16,905 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:16,905 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:17,300 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-05 07:36:18,317 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-05 07:36:18,319 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150408 AND WorkOrderNo IN ('7572948', '1880651') AND GenerateWorkOrderHistoryId = 124520;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-05 07:36:19,341 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:19,342 - [124520] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-05 07:36:19,348 - [124520] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-05 07:36:19,348 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:19,348 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:19,700 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-05 07:36:20,664 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-05 07:36:20,665 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-05 07:36:20,665 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-05 07:36:20,665 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:20,665 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:20,981 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-05 07:36:21,809 - [124520] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-05 07:36:21,810 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-05 07:36:21,810 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-05 07:36:21,810 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 07:36:21,810 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:21,810 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:22,126 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-05 07:36:23,082 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-05 07:36:23,082 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:23,082 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:23,398 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-05 07:36:24,637 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-05 07:36:24,638 - [124520] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2156967, 2156968)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:24,933 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:24,941 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:24,941 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:25,261 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-05 07:36:26,217 - [124520] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-05 07:36:26,218 - [124520] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230404, 230405) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:26,497 - [124520] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 07:36:26,498 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-05 07:36:26,874 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:36:26,882 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:26,882 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:27,198 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-05 07:36:28,167 - [124520] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-05 07:36:28,168 - [124520] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192595, 192596, 192597, 192598)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:28,434 - [124520] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 07:36:28,435 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192595', '1___TMP___192595', '0___TMP___192596', '1___TMP___192596', '0___TMP___192597', '1___TMP___192597', '0___TMP___192598', '1___TMP___192598') AND CreatedDate = '2026-06-05 03:36:24.938'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-05 07:36:28,739 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:36:28,746 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:28,746 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:29,064 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-05 07:36:30,030 - [124520] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-05 07:36:30,036 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:30,036 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:30,357 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-05 07:36:31,327 - [124520] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-05 07:36:31,328 - [124520] - 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 = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:31,596 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:31,603 - [124520] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-05 07:36:31,604 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:32,080 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-05 07:36:33,036 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 07:36:33,168 - [124520] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 07:36:33,169 - [124520] - 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-06-05 03:36:31.598';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:33,752 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:33,754 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:34,022 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:34,031 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-05 03:36:31.598'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-05 07:36:34,487 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 07:36:34,492 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:34,492 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:34,809 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-05 07:36:35,762 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-05 07:36:35,763 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426680', '1426681')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:37,391 - [124520] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 07:36:37,401 - [124520] - 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 = 150408 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:37,676 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:37,676 - [124520] - 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 = 150408 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:37,949 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:37,950 - [124520] - 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 = 150408 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:38,221 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:38,221 - [124520] - 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 = 150408 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:38,490 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:38,503 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:38,770 - [124520] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 07:36:38,776 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:39,043 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:39,047 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:39,314 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:39,314 - [124520] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-05 07:36:39,315 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-05 07:36:39,315 - [124520] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 07:36:39,315 - [124520] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:39,631 - [124520] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-05 07:36:40,580 - [124520] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-05 07:36:40,581 - [124520] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-05 07:36:40,581 - [124520] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-05 07:36:40,581 - [124520] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-05 07:36:40,581 - [124520] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124520 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:40,849 - [124520] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 07:36:40,855 - [124520] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-05 07:36:40,988 - [124520] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_fad68df3fb - __SPLIT__ 2026-06-05 07:36:41,270 - [124520] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_fad68df3fb - __SPLIT__ 2026-06-05 07:36:41,534 - [124520] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-05 07:36:41,698 - [124520] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-05 07:36:41,840 - [124520] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_fad68df3fb - __SPLIT__ 2026-06-05 07:36:41,840 - [124520] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_fad68df3fb - __SPLIT__ 2026-06-05 07:36:41,840 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124520 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:42,106 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:42,107 - [124520] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-05 07:36:42,107 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:42,637 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:42,637 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:43,064 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:43,064 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:43,331 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:43,332 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:43,761 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:43,761 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:44,039 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:44,040 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:44,316 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:44,316 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:44,584 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:44,584 - [124520] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3679545, 3679546) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:45,032 - [124520] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 07:36:45,032 - [124520] - src.utils.log - INFO - Work order published ids: (3679545, 3679546) - __SPLIT__ 2026-06-05 07:36:45,032 - [124520] - src.utils.log - INFO - Time took to perform operation in publishing [124520]: 42.58 - __SPLIT__ 2026-06-05 07:36:45,032 - [124520] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124520] - __SPLIT__ 2026-06-05 07:36:45,032 - [124520] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-05 03:36:45.032' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124520;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 07:36:45,301 - [124520] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:15:29,112 - 124537 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124537 - __SPLIT__ 2026-06-05 10:15:29,113 - 124537 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124537 - __SPLIT__ 2026-06-05 10:15:29,114 - 124537 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 10:15:29,115 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:31,133 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:31,133 - 124537 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 10:15:31,134 - 124537 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 10:15:31,134 - 124537 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 10:15:31,134 - 124537 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:33,552 - 124537 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:15:33,552 - 124537 - 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 = 124537), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124537), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124537 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:33,912 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:33,913 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:34,183 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:34,186 - 124537 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 10:15:34,186 - 124537 - 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 = 14447... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:34,474 - 124537 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 10:15:34,474 - 124537 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 10:15:34,477 - 124537 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-05 10:15:34,478 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:34,747 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:34,748 - 124537 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-05 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 150408 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:35,029 - 124537 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:15:35,592 - 124537 - src.utils.log - INFO - Generating work orders for setup: 150408 - __SPLIT__ 2026-06-05 10:15:35,708 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11427;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:35,977 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:36,025 - 124537 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-05 10:15:36,033 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:36,301 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:36,303 - 124537 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-05 10:15:36,303 - 124537 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-05 10:15:36,303 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:36,732 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:36,732 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:37,136 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:37,137 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:37,422 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:37,422 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:37,808 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:37,808 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:38,171 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:38,171 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:38,473 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:38,474 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:38,747 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:38,747 - 124537 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150408 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:39,420 - 124537 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:15:39,421 - 124537 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:15:39,421 - 124537 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:39,764 - 124537 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-05 10:15:41,543 - 124537 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 10:15:41,544 - 124537 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 18 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.706' and ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:41,913 - 124537 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 10:15:41,914 - 124537 - src.utils.log - INFO - Id's of work order inserted to DB: [3680025 3680026 3680027 3680028 3680029 3680030 3680031 3680032 3680033 3680034 3680035 3680036 3680037 3680038 3680039 3680040 3680041 3680042] - __SPLIT__ 2026-06-05 10:15:41,914 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:42,183 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:42,184 - 124537 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-05 10:15:42,184 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:42,456 - 124537 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:15:42,456 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:42,726 - 124537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:15:42,730 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:43,014 - 124537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:15:43,014 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:43,290 - 124537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:15:43,290 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:43,558 - 124537 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 10:15:43,560 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:43,830 - 124537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:15:43,830 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:44,099 - 124537 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:15:44,101 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:44,566 - 124537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:15:44,566 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:44,838 - 124537 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:15:44,853 - 124537 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-05 10:15:44,853 - 124537 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 10:15:44,853 - 124537 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-05 10:15:44,853 - 124537 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-05 10:15:44,853 - 124537 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-05 10:15:44,854 - 124537 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:15:44,854 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3680040', '3680028', '3680037', '3680026', '3680025', '3680039', '3680041', '3680031', '3680027', '3680029', '3680034', '3680035', '3680032', '3680033', '3680042', '3680030', '3680036', '3680038') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:45,123 - 124537 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 10:15:45,124 - 124537 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:45,433 - 124537 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-05 10:15:45,433 - 124537 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-05 10:15:45,433 - 124537 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-05 10:15:45,433 - 124537 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-05 10:15:45,433 - 124537 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:15:45,434 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680032, 3680033, 3680034, 3680035, 3680036, 3680037, 3680038, 3680039, 3680040, 3680041, 3680042, 3680025, 3680026, 3680027, 3680028, 3680029, 3680030, 3680031) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:45,703 - 124537 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 10:15:45,704 - 124537 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:46,030 - 124537 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-05 10:15:47,485 - 124537 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 10:15:47,485 - 124537 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:15:47,485 - 124537 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:15:47,486 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680032, 3680033, 3680034, 3680035, 3680036, 3680037, 3680038, 3680039, 3680040, 3680041, 3680042, 3680025, 3680026, 3680027, 3680028, 3680029, 3680030, 3680031) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:47,752 - 124537 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 10:15:47,752 - 124537 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 72 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:48,063 - 124537 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 72) into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment - __SPLIT__ 2026-06-05 10:15:48,955 - 124537 - src.utils.log - INFO - βœ… All 72 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-05 10:15:48,955 - 124537 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:15:48,955 - 124537 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:15:48,956 - 124537 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680032, 3680033, 3680034, 3680035, 3680036, 3680037, 3680038, 3680039, 3680040, 3680041, 3680042, 3680025, 3680026, 3680027, 3680028, 3680029, 3680030, 3680031) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:49,223 - 124537 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 10:15:49,224 - 124537 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:49,544 - 124537 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:15:50,536 - 124537 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:15:50,536 - 124537 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:15:50,537 - 124537 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:15:50,806 - 124537 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:15:50,806 - 124537 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-05 10:15:50,806 - 124537 - src.utils.log - INFO - Time took to perform operation: 21.69 - __SPLIT__ 2026-06-05 10:16:06,683 - [124537] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680025, 3680026] user_id=43135 company_id=133 project_id=[124537] publish_all=False - __SPLIT__ 2026-06-05 10:16:06,684 - [124537] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680025, 3680026] user_id=43135 company_id=133 project_id=[124537] publish_all=False - __SPLIT__ 2026-06-05 10:16:06,684 - [124537] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124537] - __SPLIT__ 2026-06-05 10:16:06,685 - [124537] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 10:16:06,685 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:08,681 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:08,681 - [124537] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 10:16:08,682 - [124537] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 10:16:08,682 - [124537] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 10:16:08,683 - [124537] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:10,546 - [124537] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:16:10,546 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:10,817 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:10,817 - [124537] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-05 10:16:10,817 - [124537] - 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 = 150408 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:11,104 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:11,104 - [124537] - 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 = 150408 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:11,384 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:11,384 - [124537] - 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 = 150408 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:11,683 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:11,688 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:11,957 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:11,957 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:12,224 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:12,224 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:12,493 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:12,493 - [124537] - 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-06-05 10:16:12,764 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:12,764 - [124537] - 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-06-05 10:16:13,036 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:13,040 - [124537] - 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 = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:13,314 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:13,317 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:13,584 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:13,585 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14893' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:13,852 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:13,854 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426741', '1426742') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:14,130 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:14,130 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:14,605 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-05 10:16:15,608 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 10:16:15,740 - [124537] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 10:16:15,742 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426741', '1426742') AND wo.AccountNumber = '14893' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-05 10:16:16,022 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:16,023 - [124537] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-05 10:16:16,023 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:16,378 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:16,378 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:16,651 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:16,651 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:16,963 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:16,964 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:17,232 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:17,232 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:17,502 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:17,503 - [124537] - 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 (3680025, 3680026)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:17,837 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:17,837 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3680025, 3680026) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:18,106 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:18,107 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3680025, 3680026);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:18,374 - [124537] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 10:16:18,377 - [124537] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-05 10:16:18,394 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:18,660 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:18,669 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:18,936 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:18,937 - [124537] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22826' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:19,208 - [124537] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:16:19,212 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:19,212 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:19,601 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-05 10:16:20,573 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-05 10:16:20,574 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150408 AND WorkOrderNo IN ('6372677', '6291087') AND GenerateWorkOrderHistoryId = 124537;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-05 10:16:21,231 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:21,232 - [124537] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-05 10:16:21,237 - [124537] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-05 10:16:21,238 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:21,238 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:21,554 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-05 10:16:22,500 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-05 10:16:22,501 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-05 10:16:22,501 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-05 10:16:22,501 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:22,501 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:22,808 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.WorkOrderCommissionAdjustment - __SPLIT__ 2026-06-05 10:16:23,618 - [124537] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 1 batches - __SPLIT__ 2026-06-05 10:16:23,618 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-06-05 10:16:23,618 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-05 10:16:23,618 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 10:16:23,618 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:23,618 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:23,930 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-05 10:16:24,873 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-05 10:16:24,873 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:24,873 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:25,239 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-05 10:16:26,449 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-05 10:16:26,450 - [124537] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2157028, 2157029)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:26,753 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:26,763 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:26,763 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:27,076 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-05 10:16:28,023 - [124537] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-05 10:16:28,024 - [124537] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230425, 230424) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:28,291 - [124537] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 10:16:28,292 - [124537] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002'); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-05 10:16:28,662 - [124537] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:16:28,669 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:28,670 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:28,974 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-05 10:16:29,920 - [124537] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-05 10:16:29,921 - [124537] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192603, 192604, 192605, 192606)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:30,189 - [124537] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 10:16:30,190 - [124537] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192603', '1___TMP___192603', '0___TMP___192604', '1___TMP___192604', '0___TMP___192605', '1___TMP___192605', '0___TMP___192606', '1___TMP___192606') AND CreatedDate = '2026-06-05 06:16:26.760'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-05 10:16:30,490 - [124537] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:16:30,497 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:30,497 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 16 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:30,810 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 16) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-05 10:16:31,766 - [124537] - src.utils.log - INFO - βœ… All 16 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-05 10:16:31,772 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:31,772 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairPart: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:32,090 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.SubWOIssueRepairPart - __SPLIT__ 2026-06-05 10:16:33,111 - [124537] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.SubWOIssueRepairPart in 1 batches - __SPLIT__ 2026-06-05 10:16:33,112 - [124537] - 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 = 150408... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:33,377 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:33,384 - [124537] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-05 10:16:33,386 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:33,832 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-05 10:16:34,781 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 10:16:34,913 - [124537] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 10:16:34,914 - [124537] - 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-06-05 06:16:33.379';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:35,543 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:35,546 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:35,818 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:35,828 - [124537] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-05 06:16:33.379'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-05 10:16:36,340 - [124537] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:16:36,346 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:36,346 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:36,701 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-05 10:16:37,674 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-05 10:16:37,674 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426742', '1426741')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:40,651 - [124537] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:16:40,660 - [124537] - 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 = 150408 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:40,946 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:40,947 - [124537] - 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 = 150408 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:41,228 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:41,228 - [124537] - 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 = 150408 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:41,505 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:41,506 - [124537] - 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 = 150408 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:41,775 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:41,788 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:42,056 - [124537] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:16:42,062 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:42,330 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:42,333 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150408;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:42,601 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:42,602 - [124537] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-05 10:16:42,602 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-05 10:16:42,602 - [124537] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:16:42,602 - [124537] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:42,922 - [124537] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-05 10:16:43,858 - [124537] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-05 10:16:43,858 - [124537] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-05 10:16:43,859 - [124537] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-05 10:16:43,859 - [124537] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-05 10:16:43,859 - [124537] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124537 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:44,126 - [124537] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:16:44,133 - [124537] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-05 10:16:44,267 - [124537] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_015d0c8050 - __SPLIT__ 2026-06-05 10:16:44,536 - [124537] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_015d0c8050 - __SPLIT__ 2026-06-05 10:16:44,801 - [124537] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-05 10:16:44,946 - [124537] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-05 10:16:45,088 - [124537] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_015d0c8050 - __SPLIT__ 2026-06-05 10:16:45,088 - [124537] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_015d0c8050 - __SPLIT__ 2026-06-05 10:16:45,088 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124537 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:45,355 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:45,356 - [124537] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-05 10:16:45,356 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:45,883 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:45,883 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:46,312 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:46,312 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:46,581 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:46,581 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:47,006 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:47,006 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:47,285 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:47,285 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:47,562 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:47,563 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:47,834 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:47,834 - [124537] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680025, 3680026) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:48,283 - [124537] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:16:48,284 - [124537] - src.utils.log - INFO - Work order published ids: (3680025, 3680026) - __SPLIT__ 2026-06-05 10:16:48,284 - [124537] - src.utils.log - INFO - Time took to perform operation in publishing [124537]: 41.6 - __SPLIT__ 2026-06-05 10:16:48,284 - [124537] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124537] - __SPLIT__ 2026-06-05 10:16:48,284 - [124537] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-05 06:16:48.283' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124537;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:16:48,555 - [124537] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:51:21,423 - 124539 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124539 - __SPLIT__ 2026-06-05 10:51:21,424 - 124539 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124539 - __SPLIT__ 2026-06-05 10:51:21,424 - 124539 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 10:51:21,424 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:23,524 - 124539 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:51:23,524 - 124539 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 10:51:23,525 - 124539 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 10:51:23,525 - 124539 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 10:51:23,525 - 124539 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:25,427 - 124539 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:51:25,427 - 124539 - 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 = 124539), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124539), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124539 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:25,782 - 124539 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 10:51:25,782 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:26,058 - 124539 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:51:26,061 - 124539 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 10:51:26,062 - 124539 - 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 (14627, 14728, 14637, 14447, 14578, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:26,376 - 124539 - src.utils.log - INFO - βœ… Fetched 132 rows - __SPLIT__ 2026-06-05 10:51:26,376 - 124539 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 10:51:26,379 - 124539 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-05 10:51:26,379 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:26,657 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:26,657 - 124539 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-05 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:26,943 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:27,542 - 124539 - src.utils.log - INFO - Generating work orders for setup: 150414 - __SPLIT__ 2026-06-05 10:51:27,565 - 124539 - src.utils.log - INFO - Generating work orders for setup: 150415 - __SPLIT__ 2026-06-05 10:51:27,573 - 124539 - src.utils.log - INFO - Generating work orders for setup: 150416 - __SPLIT__ 2026-06-05 10:51:27,581 - 124539 - src.utils.log - INFO - Generating work orders for setup: 150417 - __SPLIT__ 2026-06-05 10:51:27,668 - 124539 - src.utils.log - INFO - Generating work orders for setup: 150418 - __SPLIT__ 2026-06-05 10:51:27,850 - 124539 - src.utils.log - INFO - Generating work orders for setup: 150420 - __SPLIT__ 2026-06-05 10:51:27,889 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1133.0, 1127.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:28,161 - 124539 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:51:28,171 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11427, 1131, 1132, 11435, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:28,444 - 124539 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:51:28,490 - 124539 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-05 10:51:28,495 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:28,771 - 124539 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:51:28,774 - 124539 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-05 10:51:28,774 - 124539 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-05 10:51:28,774 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:29,165 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:29,165 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:29,562 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:29,562 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:29,851 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:29,851 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:30,240 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:30,240 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:30,630 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:30,631 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:30,930 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:30,931 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:31,211 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:31,211 - 124539 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:31,737 - 124539 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:51:31,737 - 124539 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:51:31,737 - 124539 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 50 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:32,075 - 124539 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 50) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-05 10:51:35,334 - 124539 - src.utils.log - INFO - βœ… All 50 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 10:51:35,334 - 124539 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 50 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.706' and ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:35,711 - 124539 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-05 10:51:35,712 - 124539 - src.utils.log - INFO - Id's of work order inserted to DB: [3680047 3680048 3680049 3680050 3680051 3680052 3680053 3680054 3680055 3680056 3680057 3680058 3680059 3680060 3680061 3680062 3680063 3680064 3680065 3680066 3680067 3680068 3680069 3680070 3680071 3680072 3680073 3680074 3680075 3680076 3680077 3680078 3680079 3680080 3680081 3680082 3680083 3680084 3680085 3680086 3680087 3680088 3680089 3680090 3680091 3680092 3680093 3680094 3680095 3680096] - __SPLIT__ 2026-06-05 10:51:35,712 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:35,985 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:35,985 - 124539 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-05 10:51:35,985 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:36,261 - 124539 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-05 10:51:36,261 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:36,539 - 124539 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:51:36,546 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:36,841 - 124539 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-05 10:51:36,842 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:37,118 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:37,119 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:37,392 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:37,392 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:37,667 - 124539 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 10:51:37,668 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:37,942 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:37,943 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:38,545 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:38,545 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:38,821 - 124539 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-05 10:51:38,838 - 124539 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:51:38,839 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680047, 3680049, 3680050, 3680051, 3680052, 3680053, 3680054, 3680055, 3680056, 3680057, 3680058, 3680059, 3680060, 3680061, 3680062, 3680063, 3680064, 3680065, 3680066, 3680067, 3680068, 3680070, 3680071, 3680072, 3680073, 3680074, 3680075, 3680076, 3680077, 3680078, 3680079, 3680080, 3680081, 3680082, 3680083, 3680084, 3680085, 3680086, 3680087, 3680088, 3680089, 3680090, 3680091, 3680092, 3680093, 3680094, 3680095, 3680096) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:39,115 - 124539 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-06-05 10:51:39,116 - 124539 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 50 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:39,435 - 124539 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 50) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-05 10:51:40,625 - 124539 - src.utils.log - INFO - βœ… All 50 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 10:51:40,625 - 124539 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:51:40,626 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680047, 3680048, 3680049, 3680050, 3680051, 3680052, 3680053, 3680054, 3680055, 3680056, 3680057, 3680058, 3680059, 3680060, 3680061, 3680062, 3680063, 3680064, 3680065, 3680066, 3680067, 3680068, 3680069, 3680070, 3680071, 3680072, 3680073, 3680074, 3680075, 3680076, 3680077, 3680078, 3680079, 3680080, 3680081, 3680082, 3680083, 3680084, 3680085, 3680086, 3680087, 3680088, 3680089, 3680090, 3680091, 3680092, 3680093, 3680094, 3680095, 3680096) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:40,902 - 124539 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-05 10:51:40,903 - 124539 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 50 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:41,219 - 124539 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 50) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-05 10:51:42,239 - 124539 - src.utils.log - INFO - βœ… All 50 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-05 10:51:42,239 - 124539 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-05 10:51:42,240 - 124539 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:51:42,240 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680048, 3680049, 3680047) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:42,512 - 124539 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-05 10:51:42,513 - 124539 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:42,835 - 124539 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:51:43,814 - 124539 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:51:43,815 - 124539 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:51:43,815 - 124539 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:51:43,815 - 124539 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680050, 3680051, 3680052, 3680053, 3680054, 3680055, 3680056, 3680057, 3680058, 3680059, 3680060, 3680061, 3680062, 3680063, 3680064, 3680065, 3680066, 3680067, 3680068, 3680069, 3680070, 3680071, 3680072, 3680073, 3680074, 3680075, 3680076, 3680077, 3680078, 3680079, 3680080, 3680081, 3680082, 3680083, 3680084, 3680085, 3680086, 3680087, 3680088, 3680089, 3680090, 3680091, 3680092, 3680093, 3680094, 3680095, 3680096) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:44,092 - 124539 - src.utils.log - INFO - βœ… Fetched 47 rows - __SPLIT__ 2026-06-05 10:51:44,093 - 124539 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 121 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:44,372 - 124539 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 121) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:51:45,916 - 124539 - src.utils.log - INFO - βœ… All 121 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:51:45,916 - 124539 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:51:45,916 - 124539 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124539;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:51:46,192 - 124539 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:51:46,192 - 124539 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-05 10:51:46,193 - 124539 - src.utils.log - INFO - Time took to perform operation: 24.77 - __SPLIT__ 2026-06-05 10:56:26,685 - 124540 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124540 - __SPLIT__ 2026-06-05 10:56:26,686 - 124540 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124540 - __SPLIT__ 2026-06-05 10:56:26,686 - 124540 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 10:56:26,686 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:28,772 - 124540 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:56:28,773 - 124540 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 10:56:28,773 - 124540 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 10:56:28,774 - 124540 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 10:56:28,774 - 124540 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:30,641 - 124540 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:56:30,642 - 124540 - 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 = 124540), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124540), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124540 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:30,991 - 124540 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 10:56:30,991 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:31,257 - 124540 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:56:31,260 - 124540 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 10:56:31,261 - 124540 - 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 (14627, 14728, 14637, 14447, 14578, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:31,547 - 124540 - src.utils.log - INFO - βœ… Fetched 132 rows - __SPLIT__ 2026-06-05 10:56:31,548 - 124540 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 10:56:31,551 - 124540 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-05 10:56:31,551 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:31,817 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:31,818 - 124540 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-05 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:32,082 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:32,658 - 124540 - src.utils.log - INFO - Generating work orders for setup: 150414 - __SPLIT__ 2026-06-05 10:56:32,680 - 124540 - src.utils.log - INFO - Generating work orders for setup: 150415 - __SPLIT__ 2026-06-05 10:56:32,688 - 124540 - src.utils.log - INFO - Generating work orders for setup: 150416 - __SPLIT__ 2026-06-05 10:56:32,696 - 124540 - src.utils.log - INFO - Generating work orders for setup: 150417 - __SPLIT__ 2026-06-05 10:56:32,784 - 124540 - src.utils.log - INFO - Generating work orders for setup: 150418 - __SPLIT__ 2026-06-05 10:56:32,953 - 124540 - src.utils.log - INFO - Generating work orders for setup: 150420 - __SPLIT__ 2026-06-05 10:56:32,992 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1133.0, 1127.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:33,256 - 124540 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:56:33,265 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11427, 1131, 1132, 11435, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:33,530 - 124540 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:56:33,574 - 124540 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-05 10:56:33,580 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:33,844 - 124540 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:56:33,846 - 124540 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-05 10:56:33,846 - 124540 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-05 10:56:33,846 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:34,278 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:34,278 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:34,703 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:34,704 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:34,979 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:34,979 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:35,394 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:35,394 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:35,774 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:35,775 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:36,059 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:36,059 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:36,325 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:36,326 - 124540 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:41,033 - 124540 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:56:41,033 - 124540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:56:41,033 - 124540 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 50 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:41,335 - 124540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 50) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-05 10:56:43,857 - 124540 - src.utils.log - INFO - βœ… All 50 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 10:56:43,858 - 124540 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 50 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.706' and ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:44,219 - 124540 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-05 10:56:44,219 - 124540 - src.utils.log - INFO - Id's of work order inserted to DB: [3680097 3680098 3680099 3680100 3680101 3680102 3680103 3680104 3680105 3680106 3680107 3680108 3680109 3680110 3680111 3680112 3680113 3680114 3680115 3680116 3680117 3680118 3680119 3680120 3680121 3680122 3680123 3680124 3680125 3680126 3680127 3680128 3680129 3680130 3680131 3680132 3680133 3680134 3680135 3680136 3680137 3680138 3680139 3680140 3680141 3680142 3680143 3680144 3680145 3680146] - __SPLIT__ 2026-06-05 10:56:44,219 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:44,486 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:44,486 - 124540 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-05 10:56:44,487 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:44,751 - 124540 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-05 10:56:44,752 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:45,019 - 124540 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:56:45,028 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:45,315 - 124540 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-05 10:56:45,317 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:45,582 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:45,583 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:45,847 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:45,847 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:46,112 - 124540 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 10:56:46,114 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:46,378 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:46,379 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:46,910 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:46,910 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150414, 150415, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:47,174 - 124540 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-05 10:56:47,192 - 124540 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-05 10:56:47,193 - 124540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:56:47,193 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680128, 3680129, 3680130, 3680131, 3680132, 3680133, 3680134, 3680135, 3680136, 3680137, 3680138, 3680139, 3680140, 3680141, 3680142, 3680143, 3680144, 3680145, 3680146, 3680097, 3680099, 3680100, 3680101, 3680102, 3680103, 3680104, 3680105, 3680106, 3680107, 3680108, 3680109, 3680110, 3680111, 3680112, 3680113, 3680114, 3680115, 3680116, 3680117, 3680118, 3680120, 3680121, 3680122, 3680123, 3680124, 3680125, 3680126, 3680127) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:47,463 - 124540 - src.utils.log - INFO - βœ… Fetched 48 rows - __SPLIT__ 2026-06-05 10:56:47,464 - 124540 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 50 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:47,740 - 124540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 50) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-05 10:56:48,723 - 124540 - src.utils.log - INFO - βœ… All 50 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 10:56:48,723 - 124540 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-05 10:56:48,723 - 124540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-05 10:56:48,723 - 124540 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:56:48,724 - 124540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-05 10:56:48,724 - 124540 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:56:48,724 - 124540 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-05 10:56:48,724 - 124540 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-05 10:56:48,724 - 124540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:56:48,724 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680128, 3680129, 3680130, 3680131, 3680132, 3680133, 3680134, 3680135, 3680136, 3680137, 3680138, 3680139, 3680140, 3680141, 3680142, 3680143, 3680144, 3680145, 3680146, 3680097, 3680098, 3680099, 3680100, 3680101, 3680102, 3680103, 3680104, 3680105, 3680106, 3680107, 3680108, 3680109, 3680110, 3680111, 3680112, 3680113, 3680114, 3680115, 3680116, 3680117, 3680118, 3680119, 3680120, 3680121, 3680122, 3680123, 3680124, 3680125, 3680126, 3680127) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:48,996 - 124540 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-05 10:56:48,997 - 124540 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 50 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:49,267 - 124540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 50) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-05 10:56:50,222 - 124540 - src.utils.log - INFO - βœ… All 50 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-05 10:56:50,223 - 124540 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-05 10:56:50,223 - 124540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:56:50,223 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680097, 3680098, 3680099) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:50,489 - 124540 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-05 10:56:50,490 - 124540 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:50,762 - 124540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:56:51,704 - 124540 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:56:51,704 - 124540 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:56:51,704 - 124540 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:56:51,705 - 124540 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680128, 3680129, 3680130, 3680131, 3680132, 3680133, 3680134, 3680135, 3680136, 3680137, 3680138, 3680139, 3680140, 3680141, 3680142, 3680143, 3680144, 3680145, 3680146, 3680100, 3680101, 3680102, 3680103, 3680104, 3680105, 3680106, 3680107, 3680108, 3680109, 3680110, 3680111, 3680112, 3680113, 3680114, 3680115, 3680116, 3680117, 3680118, 3680119, 3680120, 3680121, 3680122, 3680123, 3680124, 3680125, 3680126, 3680127) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:51,976 - 124540 - src.utils.log - INFO - βœ… Fetched 47 rows - __SPLIT__ 2026-06-05 10:56:51,977 - 124540 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 121 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:52,250 - 124540 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 121) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:56:53,468 - 124540 - src.utils.log - INFO - βœ… All 121 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:56:53,469 - 124540 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:56:53,469 - 124540 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124540;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:56:53,735 - 124540 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:56:53,736 - 124540 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-05 10:56:53,736 - 124540 - src.utils.log - INFO - Time took to perform operation: 27.05 - __SPLIT__ 2026-06-05 10:58:13,812 - 124541 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124541 - __SPLIT__ 2026-06-05 10:58:13,813 - 124541 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124541 - __SPLIT__ 2026-06-05 10:58:13,814 - 124541 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 10:58:13,814 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:15,875 - 124541 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:58:15,876 - 124541 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 10:58:15,876 - 124541 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 10:58:15,877 - 124541 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 10:58:15,877 - 124541 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:17,716 - 124541 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:58:17,716 - 124541 - 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 = 124541), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124541), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124541 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:18,074 - 124541 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:58:18,074 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:18,338 - 124541 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:58:18,341 - 124541 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 10:58:18,341 - 124541 - 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 (14627, 14728, 14637, 14578, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:18,638 - 124541 - src.utils.log - INFO - βœ… Fetched 126 rows - __SPLIT__ 2026-06-05 10:58:18,638 - 124541 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 10:58:18,641 - 124541 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-05 10:58:18,642 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:18,909 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:18,910 - 124541 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-05 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (150414, 150415, 150417, 150418, 150420) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:19,187 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:19,839 - 124541 - src.utils.log - INFO - Generating work orders for setup: 150414 - __SPLIT__ 2026-06-05 10:58:19,855 - 124541 - src.utils.log - INFO - Generating work orders for setup: 150415 - __SPLIT__ 2026-06-05 10:58:19,862 - 124541 - src.utils.log - INFO - Generating work orders for setup: 150417 - __SPLIT__ 2026-06-05 10:58:19,922 - 124541 - src.utils.log - INFO - Generating work orders for setup: 150418 - __SPLIT__ 2026-06-05 10:58:20,029 - 124541 - src.utils.log - INFO - Generating work orders for setup: 150420 - __SPLIT__ 2026-06-05 10:58:20,055 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1133.0, 1127.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:20,317 - 124541 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:58:20,326 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11427, 1131, 1132, 11435, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:20,589 - 124541 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:58:20,630 - 124541 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-05 10:58:20,636 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:20,898 - 124541 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:58:20,900 - 124541 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-05 10:58:20,900 - 124541 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-05 10:58:20,900 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:21,359 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:21,359 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:21,772 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:21,772 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:22,052 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:22,052 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:22,477 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:22,477 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:22,860 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:22,860 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:23,149 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:23,150 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:23,424 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:23,424 - 124541 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:28,182 - 124541 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:58:28,182 - 124541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:58:28,183 - 124541 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:28,482 - 124541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-05 10:58:30,874 - 124541 - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 10:58:30,875 - 124541 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 33 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.705' and ServiceSetupId in (150414, 150415, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:31,247 - 124541 - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:58:31,248 - 124541 - src.utils.log - INFO - Id's of work order inserted to DB: [3680147 3680148 3680149 3680150 3680151 3680152 3680153 3680154 3680155 3680156 3680157 3680158 3680159 3680160 3680161 3680162 3680163 3680164 3680165 3680166 3680167 3680168 3680169 3680170 3680171 3680172 3680173 3680174 3680175 3680176 3680177 3680178 3680179] - __SPLIT__ 2026-06-05 10:58:31,248 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:31,512 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:31,512 - 124541 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-05 10:58:31,513 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150414, 150415, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:31,779 - 124541 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-05 10:58:31,780 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150414, 150415, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:32,049 - 124541 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:58:32,056 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150414, 150415, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:32,340 - 124541 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 10:58:32,341 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150414, 150415, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:32,607 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:32,608 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150414, 150415, 150417, 150418, 150420)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:32,872 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:32,873 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:33,139 - 124541 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:58:33,141 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:33,405 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:33,406 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:34,004 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:34,004 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:34,271 - 124541 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-05 10:58:34,289 - 124541 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-05 10:58:34,290 - 124541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:58:34,290 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680148, 3680149, 3680150, 3680151, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:34,556 - 124541 - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-06-05 10:58:34,557 - 124541 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:34,827 - 124541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-05 10:58:35,816 - 124541 - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 10:58:35,816 - 124541 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-05 10:58:35,816 - 124541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:58:35,817 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:36,083 - 124541 - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:58:36,084 - 124541 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:36,352 - 124541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-05 10:58:37,322 - 124541 - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-05 10:58:37,322 - 124541 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-05 10:58:37,323 - 124541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:58:37,323 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680147, 3680148, 3680149) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:37,588 - 124541 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-05 10:58:37,589 - 124541 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:37,859 - 124541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:58:38,791 - 124541 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:58:38,792 - 124541 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:58:38,792 - 124541 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:58:38,792 - 124541 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:39,058 - 124541 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-05 10:58:39,059 - 124541 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 77 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:39,329 - 124541 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 77) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 10:58:40,739 - 124541 - src.utils.log - INFO - βœ… All 77 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 10:58:40,740 - 124541 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 10:58:40,740 - 124541 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:58:41,002 - 124541 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:58:41,002 - 124541 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-05 10:58:41,002 - 124541 - src.utils.log - INFO - Time took to perform operation: 27.19 - __SPLIT__ 2026-06-05 10:59:07,709 - [124541] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124541] publish_all=True - __SPLIT__ 2026-06-05 10:59:07,710 - [124541] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124541] publish_all=True - __SPLIT__ 2026-06-05 10:59:07,710 - [124541] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124541] - __SPLIT__ 2026-06-05 10:59:07,711 - [124541] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 10:59:07,711 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:09,795 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:09,795 - [124541] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 10:59:09,796 - [124541] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 10:59:09,796 - [124541] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 10:59:09,796 - [124541] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:11,677 - [124541] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:59:11,677 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124541... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:12,038 - [124541] - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:59:12,039 - [124541] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-05 10:59:12,039 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150414, 150420, 150418, 150417, 150415) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:12,331 - [124541] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:59:12,331 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150414, 150420, 150418, 150417, 150415) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:12,615 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:12,616 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150414, 150420, 150418, 150417, 150415) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:12,909 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:12,913 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:13,183 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:13,184 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:13,454 - [124541] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 10:59:13,454 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:13,726 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:13,727 - [124541] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 33 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:14,001 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:14,002 - [124541] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 33 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:14,277 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:14,281 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150414, 150420, 150418, 150417, 150415)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:14,562 - [124541] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:59:14,580 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:14,849 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:14,849 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14917' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:15,119 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:15,122 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426754', '1426755', '1426756', '1426757', '1426758', '1426759', '1426760', '1426761', '1426762', '1426763', '1426764', '1426765', '1426766', '1426767', '1426768', '1426769', '1426770', '1426771', '1426772', '1426773', '1426774', '1426775', '1426776', '1426777', '1426778', '1426779', '1426780', '1426781', '1426782', '1426783', '1426784', '1426785', '1426786') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:15,404 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:15,404 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:15,880 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-05 10:59:18,397 - [124541] - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 10:59:18,530 - [124541] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 10:59:18,532 - [124541] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId in (150414, 150420, 150418);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:18,813 - [124541] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:59:18,814 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426754', '1426755', '1426756', '1426757', '1426758', '1426759', '1426760', '1426761', '1426762', '1426763', '1426764', '1426765', '1426766', '1426767', '1426768', '1426769', '1426770', '1426771', '1426772', '1426773', '1426774', '1426775', '1426776', '1426777', '1426778', '1426779', '1426780', '1426781', '1426782', '1426783', '1426784', '1426785', '1426786') AND wo.AccountNumber = '14917' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-05 10:59:19,101 - [124541] - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:59:19,101 - [124541] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-05 10:59:19,102 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:19,615 - [124541] - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-06-05 10:59:19,615 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:19,894 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:19,894 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:20,320 - [124541] - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:59:20,321 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:20,597 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:20,597 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:20,877 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:20,877 - [124541] - 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 (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:21,283 - [124541] - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-06-05 10:59:21,283 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:21,558 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:21,558 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:21,831 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:21,835 - [124541] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-05 10:59:21,847 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:22,116 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:22,120 - [124541] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (904, 899, 1159) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:22,390 - [124541] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-05 10:59:22,393 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:22,662 - [124541] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 10:59:22,666 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:22,666 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:22,998 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-05 10:59:24,697 - [124541] - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-05 10:59:24,698 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150414, 150420, 150418, 150417, 150415) AND WorkOrderNo IN ('664004', '254966', '130267', '2737762', '6024230', '5734867', '6652122', '9971386', '7374521', '5431247', '8720887', '4526516', '4088369', '8902195', '3566050', '9027468', '8325983', '4573877', '1639096', '4917461', '2944703', '1529184', '6915614', '6935891', '7559063', '9183870', '5563957', '5514540', '5913536', '8540817', '4848681', '5153640', '1599084') AND GenerateWorkOrderHistoryId = 124541;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-05 10:59:25,389 - [124541] - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:59:25,390 - [124541] - src.utils.log - INFO - 🏁 Final merged rows: 33 - __SPLIT__ 2026-06-05 10:59:25,396 - [124541] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-05 10:59:25,396 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:25,396 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:25,718 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-05 10:59:27,305 - [124541] - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-05 10:59:27,306 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:27,306 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:27,620 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-05 10:59:28,645 - [124541] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 10:59:28,646 - [124541] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-05 10:59:28,646 - [124541] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-05 10:59:28,646 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:28,646 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:28,962 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-05 10:59:30,121 - [124541] - src.utils.log - INFO - βœ… All 33 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-05 10:59:30,122 - [124541] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-05 10:59:30,122 - [124541] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 10:59:30,122 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:30,122 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:30,444 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-05 10:59:31,772 - [124541] - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-05 10:59:31,773 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150414, 150420, 150418, 150417, 150415)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:32,041 - [124541] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 10:59:32,048 - [124541] - src.utils.log - INFO - Size of Transaction: 33 - __SPLIT__ 2026-06-05 10:59:32,049 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:32,498 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-05 10:59:33,486 - [124541] - src.utils.log - INFO - βœ… All 33 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 10:59:33,619 - [124541] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 10:59:33,620 - [124541] - 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, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-05 06:59:32.043';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:34,137 - [124541] - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:59:34,140 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150415, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:34,409 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:34,418 - [124541] - 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,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942) AND CreatedDate = '2026-06-05 06:59:32.043'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-05 10:59:34,866 - [124541] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 10:59:34,871 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:34,872 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 33 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:35,192 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 33) into Billing.Invoice - __SPLIT__ 2026-06-05 10:59:36,307 - [124541] - src.utils.log - INFO - βœ… All 33 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-05 10:59:36,308 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426754', '1426772', '1426759', '1426786', '1426782', '1426781', '1426777', '1426771', '1426765', '1426770', '1426761', '1426757', '1426756', '1426784', '1426785', '1426779', '1426780', '1426775', '1426778', '1426776', '1426774', '1426773', '1426766', '1426764', '1426763', '1426769', '1426762', '1426760', '1426758', '1426755', '1426783', '1426767', '1426768')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:40,961 - [124541] - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-05 10:59:40,972 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150414, 150420, 150418, 150417, 150415) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:41,249 - [124541] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-05 10:59:41,249 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150414, 150420, 150418, 150417, 150415) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:41,524 - [124541] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:59:41,524 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150414, 150420, 150418, 150417, 150415) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:41,799 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:41,799 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150414, 150420, 150418, 150417, 150415) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:42,073 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:42,088 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150414, 150420, 150418, 150417, 150415);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:42,361 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:42,366 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150414, 150420, 150418, 150417, 150415);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:42,640 - [124541] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:59:42,651 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150414, 150420, 150418, 150417, 150415);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:42,922 - [124541] - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-05 10:59:42,931 - [124541] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-05 10:59:42,931 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:42,932 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:43,246 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-05 10:59:44,373 - [124541] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-05 10:59:44,373 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:44,373 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:44,702 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into Billing.InvoiceCharges - __SPLIT__ 2026-06-05 10:59:46,170 - [124541] - src.utils.log - INFO - βœ… All 84 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-05 10:59:46,170 - [124541] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 10:59:46,170 - [124541] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:46,481 - [124541] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into Billing.DiscountApplied - __SPLIT__ 2026-06-05 10:59:47,467 - [124541] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-05 10:59:47,468 - [124541] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-05 10:59:47,468 - [124541] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-05 10:59:47,468 - [124541] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124541 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:47,738 - [124541] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 10:59:47,745 - [124541] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-05 10:59:47,879 - [124541] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_45f369cde8 - __SPLIT__ 2026-06-05 10:59:48,151 - [124541] - src.utils.log - INFO - πŸ“Œ Bulk inserting 5 rows into #tbl_45f369cde8 - __SPLIT__ 2026-06-05 10:59:48,953 - [124541] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-05 10:59:49,101 - [124541] - src.utils.log - INFO - βœ” SQL reported affected rows: 5 - __SPLIT__ 2026-06-05 10:59:49,244 - [124541] - src.utils.log - INFO - πŸ” Verified successfully updated 5 rows via #tbl_45f369cde8 - __SPLIT__ 2026-06-05 10:59:49,244 - [124541] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_45f369cde8 - __SPLIT__ 2026-06-05 10:59:49,244 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124541 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:49,514 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:49,514 - [124541] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-05 10:59:49,514 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:50,204 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:50,204 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:50,743 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:50,743 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:51,017 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:51,018 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:51,526 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:51,526 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:51,815 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:51,816 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:52,095 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:52,096 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:52,370 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:52,371 - [124541] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:55,516 - [124541] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 10:59:55,516 - [124541] - src.utils.log - INFO - Work order published ids: (3680147, 3680148, 3680149, 3680150, 3680151, 3680152, 3680153, 3680154, 3680155, 3680156, 3680157, 3680158, 3680159, 3680160, 3680161, 3680162, 3680163, 3680164, 3680165, 3680166, 3680167, 3680168, 3680169, 3680170, 3680171, 3680172, 3680173, 3680174, 3680175, 3680176, 3680177, 3680178, 3680179) - __SPLIT__ 2026-06-05 10:59:55,517 - [124541] - src.utils.log - INFO - Time took to perform operation in publishing [124541]: 47.81 - __SPLIT__ 2026-06-05 10:59:55,517 - [124541] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124541] - __SPLIT__ 2026-06-05 10:59:55,517 - [124541] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-05 06:59:55.516' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124541;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 10:59:55,796 - [124541] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:09:40,687 - 42419 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42419 - __SPLIT__ 2026-06-05 14:09:40,689 - 42419 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 14:09:40,689 - 42419 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:42,759 - 42419 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 14:09:42,760 - 42419 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 14:09:42,760 - 42419 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 14:09:42,760 - 42419 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 14:09:42,760 - 42419 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42419 - __SPLIT__ 2026-06-05 14:09:42,761 - 42419 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:44,628 - 42419 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:09:44,628 - 42419 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:44,897 - 42419 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 14:09:44,898 - 42419 - 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 = '14918' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:45,191 - 42419 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-05 14:09:45,196 - 42419 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-05 14:09:45,196 - 42419 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 14:09:45,197 - 42419 - 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 (14821, 14823, 14728, 14027, 13966)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:45,500 - 42419 - src.utils.log - INFO - βœ… Fetched 156 rows - __SPLIT__ 2026-06-05 14:09:45,500 - 42419 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 14:09:45,536 - 42419 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (150422, 150423, 150424, 150425, 150428) AND TransactionDate BETWEEN '2026-06-05 00:00:00' AND '2026-08-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:45,833 - 42419 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 14:09:45,841 - 42419 - 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-06-05 00:00:00' AND '2026-08-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (150422, 150423, 150424, 150425, 150428) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:46,182 - 42419 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 14:09:46,192 - 42419 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:09:46,192 - 42419 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:46,506 - 42419 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-05 14:09:47,741 - 42419 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 14:09:47,741 - 42419 - src.utils.log - INFO - - __SPLIT__ 2026-06-05 14:09:47,741 - 42419 - src.utils.log - INFO - Total invoice generated: 18 - __SPLIT__ 2026-06-05 14:09:47,741 - 42419 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 18 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.733' and ServiceSetupId in (150422, 150423, 150424, 150425, 150428) and GenerateWorkOrderHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:48,020 - 42419 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 14:09:48,028 - 42419 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:09:48,029 - 42419 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:48,339 - 42419 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-05 14:09:49,315 - 42419 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 14:09:49,316 - 42419 - 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 (636864, 636865, 636866, 636867, 636868, 636869, 636870, 636871, 636872, 636873, 636856, 636857, 636858, 636859, 636860, 636861, 636862, 636863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:49,634 - 42419 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 14:09:49,635 - 42419 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150422, 150423, 150424, 150425, 150428) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:49,910 - 42419 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-05 14:09:49,923 - 42419 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (150422, 150423, 150424, 150425, 150428);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:50,193 - 42419 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 14:09:50,200 - 42419 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:09:50,200 - 42419 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:50,512 - 42419 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-05 14:09:51,473 - 42419 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 14:09:51,474 - 42419 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:09:51,474 - 42419 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 39 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:51,790 - 42419 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 39) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-05 14:09:53,073 - 42419 - src.utils.log - INFO - βœ… All 39 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 14:09:53,073 - 42419 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:53,340 - 42419 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:09:53,340 - 42419 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-05 10:09:53.340' WHERE GenerateInvoiceHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:09:53,609 - 42419 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:09:53,609 - 42419 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 14:09:53,609 - 42419 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42419 - Time took: 12.92 - __SPLIT__ 2026-06-05 14:12:14,637 - [42419] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=43135 company_id=133 project_id=[42419] publish_all=True - __SPLIT__ 2026-06-05 14:12:14,638 - [42419] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-05 14:12:14,638 - [42419] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-05 14:12:14,639 - [42419] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 14:12:14,640 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:16,739 - [42419] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 14:12:16,739 - [42419] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 14:12:16,740 - [42419] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 14:12:16,740 - [42419] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 14:12:16,740 - [42419] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-05 10:12:16.740' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:18,641 - [42419] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:12:18,642 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 42419; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:18,941 - [42419] - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 14:12:18,942 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (636856, 636857, 636858, 636859, 636860, 636861, 636862, 636863, 636864, 636865, 636866, 636867, 636868, 636869, 636870, 636871, 636872, 636873);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:19,214 - [42419] - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-05 14:12:19,216 - [42419] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:19,664 - [42419] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-05 14:12:20,775 - [42419] - src.utils.log - INFO - βœ… All 18 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 14:12:20,909 - [42419] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 14:12:20,910 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:22,119 - [42419] - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-06-05 14:12:22,123 - [42419] - 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,12345678926,12345678927); ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-05 14:12:23,364 - [42419] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:12:23,368 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:23,639 - [42419] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 14:12:23,640 - [42419] - src.utils.log - INFO - 34 Invoice Generated : [1484678, 1484679, 1484680, 1484681, 1484682, 1484683, 1484684, 1484685, 1484686, 1484687, 1484688, 1484689, 1484690, 1484691, 1484692, 1484693, 1484694, 1484695, 1484696, 1484697, 1484698, 1484699, 1484700, 1484701, 1484702, 1484703, 1484704, 1484705, 1484706, 1484707, 1484708, 1484709, 1484710, 1484711] - __SPLIT__ 2026-06-05 14:12:23,640 - [42419] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1484712' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:23,913 - [42419] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:12:23,916 - [42419] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:12:23,916 - [42419] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 34 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:24,227 - [42419] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 34) into Billing.Invoice - __SPLIT__ 2026-06-05 14:12:25,537 - [42419] - src.utils.log - INFO - βœ… All 34 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-05 14:12:25,538 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3699339, 3699340, 3699341, 3699342, 3699343, 3699344, 3699345, 3699346, 3699347, 3699348, 3540519, 3623944, 3699349, 3540520, 3623945, 3699350, 3540521, 3623946, 3699351, 3540522, 3623947, 3699352, 3540523, 3623948, 3699353, 3540524, 3623949, 3699354, 3540525, 3623950, 3699355, 3540526, 3623951, 3699356);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:25,810 - [42419] - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-06-05 14:12:25,813 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (444941, 444942, 444943, 444944, 444945, 444946, 444947, 444948, 444949, 444950, 444951, 444952, 444953, 444954, 444955, 444956, 444957, 444958);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:26,340 - [42419] - src.utils.log - INFO - βœ… Fetched 39 rows - __SPLIT__ 2026-06-05 14:12:26,340 - [42419] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (444941, 444942, 444943, 444944, 444945, 444946, 444947, 444948, 444949, 444950, 444951, 444952, 444953, 444954, 444955, 444956, 444957, 444958);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:26,626 - [42419] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-05 14:12:26,634 - [42419] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:12:26,634 - [42419] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 73 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:26,961 - [42419] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 73) into Billing.InvoiceCharges - __SPLIT__ 2026-06-05 14:12:28,523 - [42419] - src.utils.log - INFO - βœ… All 73 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-05 14:12:28,523 - [42419] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:12:28,523 - [42419] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:28,839 - [42419] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-05 14:12:29,804 - [42419] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-05 14:12:29,805 - [42419] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 14:12:29,805 - [42419] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:30,161 - [42419] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into Billing.DiscountApplied - __SPLIT__ 2026-06-05 14:12:31,121 - [42419] - src.utils.log - INFO - βœ… All 7 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-05 14:12:31,121 - [42419] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (444941, 444942, 444943, 444944, 444945, 444946, 444947, 444948, 444949, 444950, 444951, 444952, 444953, 444954, 444955, 444956, 444957, 444958) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:31,405 - [42419] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 14:12:31,406 - [42419] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (444941, 444942, 444943, 444944, 444945, 444946, 444947, 444948, 444949, 444950, 444951, 444952, 444953, 444954, 444955, 444956, 444957, 444958) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:31,756 - [42419] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 14:12:31,756 - [42419] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (444941, 444942, 444943, 444944, 444945, 444946, 444947, 444948, 444949, 444950, 444951, 444952, 444953, 444954, 444955, 444956, 444957, 444958) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:32,573 - [42419] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 14:12:32,573 - [42419] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (636856, 636857, 636858, 636859, 636860, 636861, 636862, 636863, 636864, 636865, 636866, 636867, 636868, 636869, 636870, 636871, 636872, 636873) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:32,949 - [42419] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 14:12:32,950 - [42419] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-05 10:12:16.740' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42419;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 14:12:33,223 - [42419] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 14:12:33,223 - [42419] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 18.58 - __SPLIT__ 2026-06-05 17:13:18,567 - 124548 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124548 - __SPLIT__ 2026-06-05 17:13:18,568 - 124548 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124548 - __SPLIT__ 2026-06-05 17:13:18,568 - 124548 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 17:13:18,568 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:20,873 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:20,874 - 124548 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 17:13:20,874 - 124548 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 17:13:20,875 - 124548 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 17:13:20,875 - 124548 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124548;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:23,554 - 124548 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 17:13:23,554 - 124548 - 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 = 124548), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124548), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124548 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:23,892 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:23,892 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124548;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:24,164 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:24,167 - 124548 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-05 17:13:24,168 - 124548 - 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 = 14447... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:24,449 - 124548 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 17:13:24,449 - 124548 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-05 17:13:24,453 - 124548 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-05 17:13:24,453 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:24,857 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:24,857 - 124548 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-05 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150432 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:25,752 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:26,325 - 124548 - src.utils.log - INFO - Generating work orders for setup: 150432 - __SPLIT__ 2026-06-05 17:13:26,390 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:26,660 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:26,668 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1129;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:26,937 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:26,974 - 124548 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-05 17:13:26,979 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:27,258 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:27,260 - 124548 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-05 17:13:27,261 - 124548 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-05 17:13:27,261 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:27,600 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:27,601 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:27,945 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:27,946 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:28,240 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:28,240 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:28,593 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:28,593 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:28,927 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:28,927 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:29,312 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:29,312 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:29,606 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:29,606 - 124548 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150432 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:30,027 - 124548 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:13:30,027 - 124548 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:13:30,027 - 124548 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:30,396 - 124548 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-05 17:13:31,908 - 124548 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-05 17:13:31,909 - 124548 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.706' and ServiceSetupId = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:32,238 - 124548 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-05 17:13:32,239 - 124548 - src.utils.log - INFO - Id's of work order inserted to DB: [3680243 3680244 3680245 3680246 3680247 3680248 3680249 3680250 3680251 3680252] - __SPLIT__ 2026-06-05 17:13:32,239 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:32,508 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:32,509 - 124548 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-05 17:13:32,509 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:32,781 - 124548 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-05 17:13:32,782 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:33,053 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:33,060 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:33,410 - 124548 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 17:13:33,411 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:33,690 - 124548 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 17:13:33,691 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:33,967 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:33,968 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:34,239 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:34,241 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:34,511 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:34,512 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:35,857 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:35,857 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:36,209 - 124548 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:13:36,230 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680243 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:36,500 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:36,501 - 124548 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:36,821 - 124548 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-05 17:13:37,803 - 124548 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 17:13:37,803 - 124548 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-05 17:13:37,804 - 124548 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-05 17:13:37,804 - 124548 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 17:13:37,804 - 124548 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-05 17:13:37,804 - 124548 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-05 17:13:37,804 - 124548 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:13:37,804 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680243, 3680244, 3680245, 3680246, 3680247, 3680248, 3680249, 3680250, 3680251, 3680252) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:38,074 - 124548 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-05 17:13:38,075 - 124548 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 56 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:38,376 - 124548 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 56) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-05 17:13:39,524 - 124548 - src.utils.log - INFO - βœ… All 56 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-05 17:13:39,524 - 124548 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-05 17:13:39,524 - 124548 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:13:39,525 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680243, 3680244, 3680245, 3680246, 3680247, 3680248, 3680249, 3680250, 3680251, 3680252) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:39,792 - 124548 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-05 17:13:39,793 - 124548 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:40,091 - 124548 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-05 17:13:41,244 - 124548 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-05 17:13:41,244 - 124548 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-05 17:13:41,244 - 124548 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:13:41,244 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3680243 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:41,513 - 124548 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:13:41,514 - 124548 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:41,817 - 124548 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 17:13:42,787 - 124548 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 17:13:42,787 - 124548 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 17:13:42,788 - 124548 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:13:42,788 - 124548 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680244, 3680245, 3680246, 3680247, 3680248, 3680249, 3680250, 3680251, 3680252) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:43,057 - 124548 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-05 17:13:43,058 - 124548 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:43,335 - 124548 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-05 17:13:44,483 - 124548 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-05 17:13:44,484 - 124548 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-05 17:13:44,484 - 124548 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124548;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:13:44,753 - 124548 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 17:13:44,754 - 124548 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-05 17:13:44,754 - 124548 - src.utils.log - INFO - Time took to perform operation: 26.19 - __SPLIT__ 2026-06-05 17:14:14,790 - [124548] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680243, 3680244] user_id=43135 company_id=133 project_id=[124548] publish_all=False - __SPLIT__ 2026-06-05 17:14:14,791 - [124548] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3680243, 3680244] user_id=43135 company_id=133 project_id=[124548] publish_all=False - __SPLIT__ 2026-06-05 17:14:14,792 - [124548] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124548] - __SPLIT__ 2026-06-05 17:14:14,792 - [124548] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-05 17:14:14,792 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:16,832 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:16,832 - [124548] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-05 17:14:16,833 - [124548] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-05 17:14:16,833 - [124548] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-05 17:14:16,833 - [124548] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124548;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:18,729 - [124548] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 17:14:18,729 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:19,004 - [124548] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 17:14:19,004 - [124548] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-05 17:14:19,005 - [124548] - 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 = 150432 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:19,289 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:19,289 - [124548] - 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 = 150432 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:19,572 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:19,573 - [124548] - 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 = 150432 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:19,858 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:19,862 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:20,135 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:20,136 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:20,423 - [124548] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 17:14:20,424 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:20,697 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:20,697 - [124548] - 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-06-05 17:14:20,971 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:20,972 - [124548] - 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-06-05 17:14:21,246 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:21,251 - [124548] - 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 = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:21,568 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:21,571 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:21,842 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:21,842 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14910' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:22,114 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:22,116 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426818', '1426819') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:22,405 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:22,405 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:22,869 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-05 17:14:24,951 - [124548] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 17:14:25,086 - [124548] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 17:14:25,087 - [124548] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:25,390 - [124548] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 17:14:25,392 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426818', '1426819') AND wo.AccountNumber = '14910' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-05 17:14:25,673 - [124548] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 17:14:25,674 - [124548] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-05 17:14:25,674 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:26,507 - [124548] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-05 17:14:26,507 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:26,781 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:26,782 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:27,272 - [124548] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-05 17:14:27,272 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:27,545 - [124548] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-05 17:14:27,545 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:27,837 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:27,837 - [124548] - 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 (3680243, 3680244)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:28,469 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:28,469 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3680243, 3680244) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:28,752 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:28,752 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3680243, 3680244);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:29,026 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:29,028 - [124548] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-05 17:14:29,047 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:29,318 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:29,322 - [124548] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1147 AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:29,630 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:29,632 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:29,905 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:29,909 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:29,909 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:30,232 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-05 17:14:31,270 - [124548] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-05 17:14:31,272 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150432 AND WorkOrderNo IN ('279621', '7867334') AND GenerateWorkOrderHistoryId = 124548;... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-05 17:14:33,904 - [124548] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 17:14:33,905 - [124548] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-05 17:14:33,911 - [124548] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-05 17:14:33,911 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:33,911 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:34,215 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-05 17:14:35,303 - [124548] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-05 17:14:35,304 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:35,304 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:35,608 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-05 17:14:36,648 - [124548] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-05 17:14:36,648 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:36,648 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:36,952 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-06-05 17:14:37,932 - [124548] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-05 17:14:37,932 - [124548] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-05 17:14:37,932 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:37,932 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:38,234 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-05 17:14:39,230 - [124548] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-05 17:14:39,230 - [124548] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-05 17:14:39,230 - [124548] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-05 17:14:39,230 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:39,230 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:39,532 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-05 17:14:40,521 - [124548] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-05 17:14:40,522 - [124548] - 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 = 150432... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:40,792 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:40,799 - [124548] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-05 17:14:40,800 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:41,233 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-05 17:14:42,312 - [124548] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-05 17:14:42,450 - [124548] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-05 17:14:42,451 - [124548] - 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-06-05 13:14:40.794';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:49,615 - [124548] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 17:14:49,618 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:49,888 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:49,896 - [124548] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-05 13:14:40.794'; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-05 17:14:50,461 - [124548] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-05 17:14:50,465 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:50,465 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:50,771 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-05 17:14:51,830 - [124548] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-05 17:14:51,830 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426818', '1426819')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:53,026 - [124548] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-05 17:14:53,035 - [124548] - 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 = 150432 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:53,309 - [124548] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-05 17:14:53,310 - [124548] - 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 = 150432 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:53,584 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:53,585 - [124548] - 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 = 150432 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:53,859 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:53,859 - [124548] - 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 = 150432 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:54,131 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:54,144 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:54,415 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:54,421 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:54,692 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:54,702 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150432;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:54,974 - [124548] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-05 17:14:54,983 - [124548] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-05 17:14:54,983 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:54,983 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:55,283 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-05 17:14:56,265 - [124548] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-05 17:14:56,265 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:56,265 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:56,566 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-06-05 17:14:57,605 - [124548] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-05 17:14:57,605 - [124548] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-05 17:14:57,605 - [124548] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:57,903 - [124548] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-06-05 17:14:58,896 - [124548] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-05 17:14:58,896 - [124548] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-05 17:14:58,896 - [124548] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-05 17:14:58,897 - [124548] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124548 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:14:59,189 - [124548] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-05 17:14:59,195 - [124548] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-05 17:14:59,330 - [124548] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_2d85416c1b - __SPLIT__ 2026-06-05 17:14:59,602 - [124548] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_2d85416c1b - __SPLIT__ 2026-06-05 17:14:59,872 - [124548] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-05 17:15:00,017 - [124548] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-05 17:15:00,158 - [124548] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_2d85416c1b - __SPLIT__ 2026-06-05 17:15:00,158 - [124548] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_2d85416c1b - __SPLIT__ 2026-06-05 17:15:00,158 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124548 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:00,430 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:00,431 - [124548] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-05 17:15:00,431 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:00,854 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:00,854 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:01,259 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:01,259 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:01,533 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:01,533 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:01,897 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:01,897 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:02,175 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:02,175 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:02,450 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:02,450 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:02,721 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:02,722 - [124548] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680243, 3680244) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:03,096 - [124548] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-05 17:15:03,096 - [124548] - src.utils.log - INFO - Work order published ids: (3680243, 3680244) - __SPLIT__ 2026-06-05 17:15:03,096 - [124548] - src.utils.log - INFO - Time took to perform operation in publishing [124548]: 48.3 - __SPLIT__ 2026-06-05 17:15:03,096 - [124548] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124548] - __SPLIT__ 2026-06-05 17:15:03,096 - [124548] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-05 13:15:03.096' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124548;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-05 17:15:03,369 - [124548] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 03:50:45,787 - 12281 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12281 - __SPLIT__ 2026-06-06 03:50:45,788 - 12281 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12281 - __SPLIT__ 2026-06-06 03:50:45,789 - 12281 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 03:50:45,789 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:47,798 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:47,798 - 12281 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 03:50:47,798 - 12281 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:48,089 - 12281 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 03:50:48,090 - 12281 - 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 = 12281), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12281), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12281 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:48,430 - 12281 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-06 03:50:48,430 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:48,718 - 12281 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:50:48,721 - 12281 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 03:50:48,721 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (13057, 13000, 13004, 13044, 12922)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:49,024 - 12281 - src.utils.log - INFO - βœ… Fetched 182 rows - __SPLIT__ 2026-06-06 03:50:49,025 - 12281 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 03:50:49,028 - 12281 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-06 03:50:49,028 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:49,316 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:49,316 - 12281 - 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 >= '2028-12-28 00:00:00' and ServiceDate <= '2029-02-01 00:00:00' and ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:49,613 - 12281 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:50:50,258 - 12281 - src.utils.log - INFO - Generating work orders for setup: 22657 - __SPLIT__ 2026-06-06 03:50:50,268 - 12281 - src.utils.log - INFO - Generating work orders for setup: 22866 - __SPLIT__ 2026-06-06 03:50:50,282 - 12281 - src.utils.log - INFO - Generating work orders for setup: 22885 - __SPLIT__ 2026-06-06 03:50:50,295 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23011 - __SPLIT__ 2026-06-06 03:50:50,302 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23012 - __SPLIT__ 2026-06-06 03:50:50,310 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23013 - __SPLIT__ 2026-06-06 03:50:50,329 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23014 - __SPLIT__ 2026-06-06 03:50:50,338 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23015 - __SPLIT__ 2026-06-06 03:50:50,346 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23081 - __SPLIT__ 2026-06-06 03:50:50,354 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23088 - __SPLIT__ 2026-06-06 03:50:50,361 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23183 - __SPLIT__ 2026-06-06 03:50:50,368 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23200 - __SPLIT__ 2026-06-06 03:50:50,376 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23405 - __SPLIT__ 2026-06-06 03:50:50,383 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23435 - __SPLIT__ 2026-06-06 03:50:50,390 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23528 - __SPLIT__ 2026-06-06 03:50:50,404 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23696 - __SPLIT__ 2026-06-06 03:50:50,417 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23805 - __SPLIT__ 2026-06-06 03:50:50,431 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23882 - __SPLIT__ 2026-06-06 03:50:50,445 - 12281 - src.utils.log - INFO - Generating work orders for setup: 23948 - __SPLIT__ 2026-06-06 03:50:50,460 - 12281 - src.utils.log - INFO - Generating work orders for setup: 24000 - __SPLIT__ 2026-06-06 03:50:50,473 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1413.0, 1415.0, 1390.0, 1422.0, 1361.0, 1427.0, 1364.0, 1398.0, 1435.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:50,757 - 12281 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-06-06 03:50:50,807 - 12281 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-06 03:50:50,815 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:51,104 - 12281 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:50:51,106 - 12281 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-06 03:50:51,106 - 12281 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-06 03:50:51,106 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:51,441 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:51,442 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:51,744 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:51,744 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:52,051 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:52,051 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:52,364 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:52,364 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:52,671 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:52,671 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:52,989 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:52,989 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:53,286 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:53,286 - 12281 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:53,714 - 12281 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:50:53,714 - 12281 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:50:53,715 - 12281 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:54,049 - 12281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-06 03:50:56,259 - 12281 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 03:50:56,260 - 12281 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 30 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.706' and ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:56,553 - 12281 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:50:56,553 - 12281 - src.utils.log - INFO - Id's of work order inserted to DB: [2730389 2730390 2730391 2730392 2730393 2730394 2730395 2730396 2730397 2730398 2730399 2730400 2730401 2730402 2730403 2730404 2730405 2730406 2730407 2730408 2730409 2730410 2730411 2730412 2730413 2730414 2730415 2730416 2730417 2730418] - __SPLIT__ 2026-06-06 03:50:56,554 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23014, 23015, 23528, 23405, 23805);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:56,850 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:56,850 - 12281 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-06 03:50:56,850 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:57,143 - 12281 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-06-06 03:50:57,143 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:57,440 - 12281 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-06 03:50:57,448 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:57,744 - 12281 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-06-06 03:50:57,745 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:58,034 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:58,035 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:58,316 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:58,317 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:58,600 - 12281 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:50:58,602 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:58,886 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:58,887 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:59,203 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:59,204 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (22657, 23435, 23948, 23183, 23696, 23200, 23081, 23088, 24000, 23882, 22866, 23011, 23012, 22885, 23013, 23015, 23528, 23014, 23405, 23805);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:59,556 - 12281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:50:59,572 - 12281 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:50:59,573 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730404, 2730390) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:50:59,859 - 12281 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 03:50:59,860 - 12281 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:51:00,184 - 12281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 03:51:01,214 - 12281 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-06 03:51:01,215 - 12281 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:51:01,216 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:51:01,497 - 12281 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:51:01,498 - 12281 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:51:01,814 - 12281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-06 03:51:02,852 - 12281 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-06 03:51:02,852 - 12281 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-06 03:51:02,852 - 12281 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-06 03:51:02,852 - 12281 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 03:51:02,852 - 12281 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:51:02,853 - 12281 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:51:03,135 - 12281 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:51:03,136 - 12281 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:51:03,460 - 12281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 03:51:04,540 - 12281 - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 03:51:04,540 - 12281 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 03:51:04,541 - 12281 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:51:04,838 - 12281 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 03:51:04,839 - 12281 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-06 03:51:04,839 - 12281 - src.utils.log - INFO - Time took to perform operation: 19.05 - __SPLIT__ 2026-06-06 03:52:27,359 - [12281] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418] user_id=122885 company_id=135 project_id=[12281] publish_all=False - __SPLIT__ 2026-06-06 03:52:27,360 - [12281] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418] user_id=122885 company_id=135 project_id=[12281] publish_all=False - __SPLIT__ 2026-06-06 03:52:27,361 - [12281] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12281] - __SPLIT__ 2026-06-06 03:52:27,361 - [12281] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 03:52:27,361 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:29,424 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:29,424 - [12281] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 03:52:29,425 - [12281] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:29,716 - [12281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 03:52:29,717 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:30,019 - [12281] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:52:30,019 - [12281] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-06 03:52:30,020 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:30,328 - [12281] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-06 03:52:30,328 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:30,639 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:30,640 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:30,937 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:30,941 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:31,239 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:31,239 - [12281] - 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-06-06 03:52:31,527 - [12281] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 03:52:31,527 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:31,818 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:31,819 - [12281] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 30 OUTPUT INSERTED.NextNumber - 30 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:32,111 - [12281] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 03:52:32,115 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:32,410 - [12281] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-06 03:52:32,427 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:32,721 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:32,721 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('5808', '5925', '5811', '5809', '5306', '8139', '5928', '8337', '7337', '7805', '5807', '7033', '6170', '8147', '5804', '5629', '8443', '8351', '5657', '6105') and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:33,028 - [12281] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-06 03:52:33,031 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('167729R', '167730R', '167731R', '167732R', '167733R', '167734R', '167735R', '167736R', '167737R', '167738R', '167739R', '167740R', '167741R', '167742R', '167743R', '167744R', '167745R', '167746R', '167747R', '167748R', '167749R', '167750R', '167751R', '167752R', '167753R', '167754R', '167755R', '167756R', '167757R', '167758R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:33,326 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:33,326 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:33,835 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-06 03:52:36,182 - [12281] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 03:52:36,323 - [12281] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 03:52:36,325 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('167729R', '167730R', '167731R', '167732R', '167733R', '167734R', '167735R', '167736R', '167737R', '167738R', '167739R', '167740R', '167741R', '167742R', '167743R', '167744R', '167745R', '167746R', '167747R', '167748R', '167749R', '167750R', '167751R', '167752R', '167753R', '167754R', '167755R', '167756R', '167757R', '167758R') AND wo.AccountNumber IN ('5808', '8443', '5629', '7805', '5657', '8351', '8139', '8337', '8147', '7337', '5306', '7033', '6105', '5928', '5925', '5811', '5809', '5807', '5804', '6170') AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-06 03:52:36,632 - [12281] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:52:36,633 - [12281] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-06 03:52:36,633 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:36,941 - [12281] - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-06-06 03:52:36,942 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:37,237 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:37,237 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:37,570 - [12281] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:52:37,570 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:37,856 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:37,856 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:38,170 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:38,170 - [12281] - 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 (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:38,487 - [12281] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 03:52:38,487 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:38,789 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:38,789 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:39,072 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:39,074 - [12281] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-06 03:52:39,086 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:39,368 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:39,371 - [12281] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1831 AND CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:39,661 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:39,664 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:39,953 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:39,957 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:39,958 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:40,296 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-06 03:52:41,727 - [12281] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-06 03:52:41,728 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) AND WorkOrderNo IN ('7173228', '2849265', '1103921', '5209182', '7968781', '4041768', '6099423', '2598201', '9599700', '7016500', '6757191', '7105748', '4682777', '8990849', '6639643', '3062142', '8257180', '9690598', '1985326', '3075889', '1621659', '1363902', '6693176', '1703497', '8261022', '7639122', '4621137', '9096053', '1768637', '1631902') AND GenerateWorkOrderHistoryId = 12281;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-06 03:52:42,035 - [12281] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:52:42,036 - [12281] - src.utils.log - INFO - 🏁 Final merged rows: 30 - __SPLIT__ 2026-06-06 03:52:42,042 - [12281] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-06 03:52:42,042 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:42,042 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:42,375 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-06 03:52:43,436 - [12281] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-06 03:52:43,436 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:43,436 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:43,751 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-06 03:52:44,836 - [12281] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 03:52:44,837 - [12281] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-06 03:52:44,837 - [12281] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-06 03:52:44,837 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:44,837 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:45,144 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-06 03:52:46,202 - [12281] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-06 03:52:46,202 - [12281] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-06 03:52:46,203 - [12281] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 03:52:46,203 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:46,203 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:46,512 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-06 03:52:47,573 - [12281] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-06 03:52:47,574 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:47,866 - [12281] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-06 03:52:47,872 - [12281] - src.utils.log - INFO - Size of Transaction: 30 - __SPLIT__ 2026-06-06 03:52:47,873 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:48,320 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 03:52:49,463 - [12281] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 03:52:49,604 - [12281] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 03:52:49,605 - [12281] - 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, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939) and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-05 23:52:47.868';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:49,925 - [12281] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:52:49,928 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (22657, 22866, 22885, 23011, 23012, 23013, 23014, 23015, 23081, 23088, 23183, 23200, 23405, 23435, 23528, 23696, 23805, 23882, 23948, 24000);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:50,210 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:50,219 - [12281] - 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,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939) AND CreatedDate = '2026-06-05 23:52:47.868'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-06 03:52:50,537 - [12281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 03:52:50,542 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:50,542 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:50,864 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.Invoice - __SPLIT__ 2026-06-06 03:52:51,958 - [12281] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 03:52:51,958 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('167746R', '167748R', '167731R', '167757R', '167733R', '167756R', '167755R', '167754R', '167738R', '167729R', '167753R', '167752R', '167751R', '167750R', '167749R', '167758R', '167747R', '167740R', '167745R', '167732R', '167743R', '167735R', '167741R', '167737R', '167739R', '167736R', '167742R', '167734R', '167744R', '167730R')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:52,352 - [12281] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 03:52:52,361 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:52,659 - [12281] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-06-06 03:52:52,660 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:52,947 - [12281] - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-06 03:52:52,947 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:53,239 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:53,239 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:53,531 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:53,544 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:53,834 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:53,839 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:54,121 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:54,133 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (23013, 24000, 22866, 23528, 22885, 23948, 23696, 23882, 23805, 23435, 22657, 23405, 23183, 23088, 23081, 23015, 23014, 23012, 23011, 23200);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:54,439 - [12281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 03:52:54,448 - [12281] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-06 03:52:54,448 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:54,448 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:54,756 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-06 03:52:55,769 - [12281] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-06 03:52:55,769 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:55,769 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:56,079 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 03:52:57,144 - [12281] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 03:52:57,145 - [12281] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 03:52:57,145 - [12281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:57,457 - [12281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-06 03:52:58,510 - [12281] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-06 03:52:58,510 - [12281] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-06 03:52:58,511 - [12281] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-06 03:52:58,511 - [12281] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12281 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:52:58,787 - [12281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 03:52:58,794 - [12281] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-06 03:52:58,938 - [12281] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_c17eda68d8 - __SPLIT__ 2026-06-06 03:52:59,226 - [12281] - src.utils.log - INFO - πŸ“Œ Bulk inserting 20 rows into #tbl_c17eda68d8 - __SPLIT__ 2026-06-06 03:53:02,280 - [12281] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-06 03:53:02,426 - [12281] - src.utils.log - INFO - βœ” SQL reported affected rows: 20 - __SPLIT__ 2026-06-06 03:53:02,577 - [12281] - src.utils.log - INFO - πŸ” Verified successfully updated 20 rows via #tbl_c17eda68d8 - __SPLIT__ 2026-06-06 03:53:02,578 - [12281] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_c17eda68d8 - __SPLIT__ 2026-06-06 03:53:02,578 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12281 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:02,875 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:02,875 - [12281] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-06 03:53:02,875 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:03,192 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:03,192 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:03,495 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:03,495 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:03,796 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:03,797 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:04,140 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:04,140 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:04,462 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:04,462 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:04,749 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:04,750 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:05,042 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:05,042 - [12281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:05,465 - [12281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 03:53:05,465 - [12281] - src.utils.log - INFO - Work order published ids: (2730389, 2730390, 2730391, 2730392, 2730393, 2730394, 2730395, 2730396, 2730397, 2730398, 2730399, 2730400, 2730401, 2730402, 2730403, 2730404, 2730405, 2730406, 2730407, 2730408, 2730409, 2730410, 2730411, 2730412, 2730413, 2730414, 2730415, 2730416, 2730417, 2730418) - __SPLIT__ 2026-06-06 03:53:05,465 - [12281] - src.utils.log - INFO - Time took to perform operation in publishing [12281]: 38.1 - __SPLIT__ 2026-06-06 03:53:05,465 - [12281] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12281] - __SPLIT__ 2026-06-06 03:53:05,465 - [12281] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-05 23:53:05.465' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 03:53:05,853 - [12281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:30:35,670 - 42420 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42420 - __SPLIT__ 2026-06-06 12:30:35,671 - 42420 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 12:30:35,671 - 42420 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:37,736 - 42420 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:30:37,736 - 42420 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 12:30:37,736 - 42420 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-06 12:30:37,737 - 42420 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-06 12:30:37,737 - 42420 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42420 - __SPLIT__ 2026-06-06 12:30:37,737 - 42420 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:39,746 - 42420 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:30:39,746 - 42420 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:40,037 - 42420 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:30:40,038 - 42420 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14831' and ss.ServiceSetupId = 150292 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:40,349 - 42420 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:30:40,353 - 42420 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-06 12:30:40,354 - 42420 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 12:30:40,354 - 42420 - 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-06-06 12:30:40,654 - 42420 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-06 12:30:40,655 - 42420 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 12:30:40,665 - 42420 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150292 AND TransactionDate BETWEEN '2026-06-06 00:00:00' AND '2027-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:40,967 - 42420 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:30:40,974 - 42420 - 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-06-06 00:00:00' AND '2027-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150292 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:41,378 - 42420 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:30:41,387 - 42420 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:30:41,387 - 42420 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:41,714 - 42420 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-06 12:30:42,989 - 42420 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:30:42,989 - 42420 - src.utils.log - INFO - - __SPLIT__ 2026-06-06 12:30:42,989 - 42420 - src.utils.log - INFO - Total invoice generated: 18 - __SPLIT__ 2026-06-06 12:30:42,990 - 42420 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 18 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.741' and ServiceSetupId = 150292 and GenerateWorkOrderHistoryId= 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:43,284 - 42420 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-06 12:30:43,292 - 42420 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:30:43,292 - 42420 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:43,618 - 42420 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-06 12:30:44,653 - 42420 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:30:44,654 - 42420 - 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 (636874, 636875, 636876, 636877, 636878, 636879, 636880, 636881, 636882, 636883, 636884, 636885, 636886, 636887, 636888, 636889, 636890, 636891);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:44,949 - 42420 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-06 12:30:44,950 - 42420 - 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 = 150292 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:45,245 - 42420 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:30:45,252 - 42420 - 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 = 14654;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:45,544 - 42420 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:30:45,547 - 42420 - 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-06-06 12:30:45,836 - 42420 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:30:45,841 - 42420 - 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 = 150292;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:46,130 - 42420 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:30:46,130 - 42420 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-06 12:30:46,130 - 42420 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:30:46,130 - 42420 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:46,460 - 42420 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-06 12:30:47,570 - 42420 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:30:47,570 - 42420 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:47,858 - 42420 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:30:47,858 - 42420 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-06 08:30:47.858' WHERE GenerateInvoiceHistoryId = 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:30:48,147 - 42420 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:30:48,148 - 42420 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 12:30:48,148 - 42420 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42420 - Time took: 12.48 - __SPLIT__ 2026-06-06 12:32:25,991 - [42420] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[636874, 636875] user_id=43135 company_id=133 project_id=[42420] publish_all=False - __SPLIT__ 2026-06-06 12:32:25,991 - [42420] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-06 12:32:25,992 - [42420] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-06 12:32:25,993 - [42420] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 12:32:25,993 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:28,054 - [42420] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:32:28,055 - [42420] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 12:32:28,055 - [42420] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-06 12:32:28,056 - [42420] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-06 12:32:28,056 - [42420] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-06 08:32:28.056' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:30,075 - [42420] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:32:30,076 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (636874, 636875);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:30,370 - [42420] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:32:30,371 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (636874, 636875);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:30,660 - [42420] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:32:30,662 - [42420] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:31,127 - [42420] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 12:32:32,144 - [42420] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 12:32:32,287 - [42420] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 12:32:32,288 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:33,873 - [42420] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:32:33,876 - [42420] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-06 12:32:35,315 - [42420] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:32:35,319 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:35,608 - [42420] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:32:35,609 - [42420] - src.utils.log - INFO - 2 Invoice Generated : [1484754, 1484755] - __SPLIT__ 2026-06-06 12:32:35,610 - [42420] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1484756' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:35,900 - [42420] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:32:35,902 - [42420] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:32:35,902 - [42420] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:36,226 - [42420] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-06 12:32:37,248 - [42420] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 12:32:37,249 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3699518, 3699519);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:37,537 - [42420] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:32:37,539 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (444959, 444960);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:37,842 - [42420] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:32:37,843 - [42420] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (444959, 444960);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:38,133 - [42420] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:32:38,135 - [42420] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:32:38,136 - [42420] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:38,460 - [42420] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 12:32:39,480 - [42420] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 12:32:39,480 - [42420] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-06 12:32:39,480 - [42420] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-06 12:32:39,481 - [42420] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (444959, 444960) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:39,774 - [42420] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:32:39,774 - [42420] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (444959, 444960) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:40,100 - [42420] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:32:40,100 - [42420] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (444959, 444960) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:40,423 - [42420] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:32:40,423 - [42420] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (636874, 636875) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:40,719 - [42420] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:32:40,720 - [42420] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 08:32:28.056' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42420;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:32:41,011 - [42420] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:32:41,011 - [42420] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 15.02 - __SPLIT__ 2026-06-06 12:48:30,805 - 13562 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13562 - __SPLIT__ 2026-06-06 12:48:30,807 - 13562 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 12:48:30,807 - 13562 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:33,101 - 13562 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:48:33,101 - 13562 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 12:48:33,101 - 13562 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13562 - __SPLIT__ 2026-06-06 12:48:33,101 - 13562 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:33,670 - 13562 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:48:33,670 - 13562 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:33,971 - 13562 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:48:33,972 - 13562 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '4260' and ss.ServiceSetupId = 22415 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:34,328 - 13562 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:48:34,332 - 13562 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-06 12:48:34,333 - 13562 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 12:48:34,333 - 13562 - 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 = 13056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:34,639 - 13562 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-06 12:48:34,640 - 13562 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 12:48:34,654 - 13562 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 22415 AND TransactionDate BETWEEN '2026-06-06 00:00:00' AND '2028-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:34,961 - 13562 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:48:34,968 - 13562 - 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-06-06 00:00:00' AND '2028-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 22415 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:35,344 - 13562 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:48:35,360 - 13562 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:48:35,361 - 13562 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:35,735 - 13562 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-06 12:48:37,127 - 13562 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:48:37,128 - 13562 - src.utils.log - INFO - - __SPLIT__ 2026-06-06 12:48:37,128 - 13562 - src.utils.log - INFO - Total invoice generated: 30 - __SPLIT__ 2026-06-06 12:48:37,128 - 13562 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 30 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.741' and ServiceSetupId = 22415 and GenerateWorkOrderHistoryId= 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:37,426 - 13562 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 12:48:37,434 - 13562 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:48:37,434 - 13562 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:37,786 - 13562 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-06 12:48:38,891 - 13562 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:48:38,892 - 13562 - 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 (799232, 799233, 799234, 799235, 799236, 799237, 799238, 799239, 799240, 799241, 799242, 799243, 799244, 799245, 799246, 799247, 799248, 799249, 799250, 799251, 799252, 799223, 799224, 799225, 799226, 799227, 799228, 799229, 799230, 799231);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:39,844 - 13562 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 12:48:39,845 - 13562 - 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 = 22415 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:40,132 - 13562 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:48:40,143 - 13562 - 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 = 22415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:40,455 - 13562 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:48:40,462 - 13562 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:48:40,462 - 13562 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:40,774 - 13562 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 12:48:42,061 - 13562 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 12:48:42,062 - 13562 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:48:42,062 - 13562 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:42,383 - 13562 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-06 12:48:43,559 - 13562 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:48:43,560 - 13562 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:43,861 - 13562 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:48:43,861 - 13562 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-06 08:48:43.861' WHERE GenerateInvoiceHistoryId = 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:48:44,174 - 13562 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:48:44,174 - 13562 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 12:48:44,174 - 13562 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13562 - Time took: 13.37 - __SPLIT__ 2026-06-06 12:50:57,717 - [13562] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799223, 799224] user_id=122885 company_id=135 project_id=[13562] publish_all=False - __SPLIT__ 2026-06-06 12:50:57,717 - [13562] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-06 12:50:57,718 - [13562] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-06 12:50:57,718 - [13562] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 12:50:57,718 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:50:59,880 - [13562] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:50:59,880 - [13562] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 12:50:59,880 - [13562] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-06 08:50:59.880' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:00,196 - [13562] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:51:00,197 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (799223, 799224);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:00,501 - [13562] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:51:00,501 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799223, 799224);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:00,802 - [13562] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:51:00,804 - [13562] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:01,286 - [13562] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 12:51:02,505 - [13562] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 12:51:02,681 - [13562] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 12:51:02,681 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:03,080 - [13562] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:51:03,082 - [13562] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-06-06 12:51:03,568 - [13562] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:51:03,572 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:03,866 - [13562] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:51:03,868 - [13562] - src.utils.log - INFO - 2 Invoice Generated : [167780, 167781] - __SPLIT__ 2026-06-06 12:51:03,868 - [13562] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '167782' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:04,203 - [13562] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:51:04,205 - [13562] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:51:04,205 - [13562] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:04,535 - [13562] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-06 12:51:05,629 - [13562] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 12:51:05,630 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (408252, 408253);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:05,927 - [13562] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:51:05,929 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (854124, 854125);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:06,225 - [13562] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:51:06,226 - [13562] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (854124, 854125);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:06,518 - [13562] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:51:06,525 - [13562] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:51:06,525 - [13562] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:06,843 - [13562] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 12:51:07,973 - [13562] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 12:51:07,973 - [13562] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:51:07,973 - [13562] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:08,305 - [13562] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-06 12:51:09,338 - [13562] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-06 12:51:09,339 - [13562] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:51:09,339 - [13562] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:09,653 - [13562] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-06 12:51:10,558 - [13562] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-06 12:51:10,559 - [13562] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (854124, 854125) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:10,851 - [13562] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:51:10,851 - [13562] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (854124, 854125) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:11,148 - [13562] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:51:11,148 - [13562] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (854124, 854125) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:11,475 - [13562] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:51:11,476 - [13562] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799223, 799224) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:11,778 - [13562] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:51:11,779 - [13562] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 08:50:59.880' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13562;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:51:12,075 - [13562] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:51:12,075 - [13562] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 14.36 - __SPLIT__ 2026-06-06 12:56:47,763 - 13563 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13563 - __SPLIT__ 2026-06-06 12:56:47,779 - 13563 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 12:56:47,780 - 13563 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:50,369 - 13563 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:56:50,369 - 13563 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 12:56:50,369 - 13563 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13563 - __SPLIT__ 2026-06-06 12:56:50,369 - 13563 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:50,674 - 13563 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:56:50,675 - 13563 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:50,972 - 13563 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:56:50,973 - 13563 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '4260' and ss.ServiceSetupId = 22415 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:51,271 - 13563 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:56:51,276 - 13563 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-06 12:56:51,277 - 13563 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 12:56:51,277 - 13563 - 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 = 13056... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:51,579 - 13563 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-06 12:56:51,579 - 13563 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 12:56:51,595 - 13563 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 22415 AND TransactionDate BETWEEN '2026-06-06 00:00:00' AND '2029-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:51,890 - 13563 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-06-06 12:56:51,890 - 13563 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (799232, 799233, 799234, 799235, 799236, 799237, 799238, 799239, 799240, 799241, 799242, 799243, 799244, 799245, 799246, 799247, 799248, 799249, 799250, 799251, 799252, 799225, 799226, 799227, 799228, 799229, 799230, 799231) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:52,192 - 13563 - src.utils.log - INFO - βœ… Fetched 28 rows - __SPLIT__ 2026-06-06 12:56:52,192 - 13563 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (854144, 854145, 854146, 854147, 854148, 854149, 854150, 854151, 854152, 854153, 854126, 854127, 854128, 854129, 854130, 854131, 854132, 854133, 854134, 854135, 854136, 854137, 854138, 854139, 854140, 854141, 854142, 854143) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:52,479 - 13563 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:56:52,479 - 13563 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (854144, 854145, 854146, 854147, 854148, 854149, 854150, 854151, 854152, 854153, 854126, 854127, 854128, 854129, 854130, 854131, 854132, 854133, 854134, 854135, 854136, 854137, 854138, 854139, 854140, 854141, 854142, 854143) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:52,776 - 13563 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:56:52,777 - 13563 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (854144, 854145, 854146, 854147, 854148, 854149, 854150, 854151, 854152, 854153, 854126, 854127, 854128, 854129, 854130, 854131, 854132, 854133, 854134, 854135, 854136, 854137, 854138, 854139, 854140, 854141, 854142, 854143) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:53,124 - 13563 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:56:53,124 - 13563 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (799232, 799233, 799234, 799235, 799236, 799237, 799238, 799239, 799240, 799241, 799242, 799243, 799244, 799245, 799246, 799247, 799248, 799249, 799250, 799251, 799252, 799225, 799226, 799227, 799228, 799229, 799230, 799231) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:53,467 - 13563 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:56:53,473 - 13563 - 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-06-06 00:00:00' AND '2029-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 22415 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:53,800 - 13563 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:56:53,815 - 13563 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:56:53,815 - 13563 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 40 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:54,153 - 13563 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 40) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-06 12:56:55,518 - 13563 - src.utils.log - INFO - βœ… All 40 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:56:55,518 - 13563 - src.utils.log - INFO - - __SPLIT__ 2026-06-06 12:56:55,518 - 13563 - src.utils.log - INFO - Total invoice generated: 40 - __SPLIT__ 2026-06-06 12:56:55,518 - 13563 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 40 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.738' and ServiceSetupId = 22415 and GenerateWorkOrderHistoryId= 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:55,806 - 13563 - src.utils.log - INFO - βœ… Fetched 40 rows - __SPLIT__ 2026-06-06 12:56:55,815 - 13563 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:56:55,815 - 13563 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 40 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:56,125 - 13563 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 40) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-06 12:56:57,181 - 13563 - src.utils.log - INFO - βœ… All 40 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:56:57,182 - 13563 - 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 (799253, 799254, 799255, 799256, 799257, 799258, 799259, 799260, 799261, 799262, 799263, 799264, 799265, 799266, 799267, 799268, 799269, 799270, 799271, 799272, 799273, 799274, 799275, 799276, 799277, 799278, 799279, 799280, 799281, 799282, 799283, 799284, 799285, 799286, 799287, 799288, 799289, 799290, 799291, 799292);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:57,474 - 13563 - src.utils.log - INFO - βœ… Fetched 40 rows - __SPLIT__ 2026-06-06 12:56:57,475 - 13563 - 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 = 22415 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:57,767 - 13563 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:56:57,777 - 13563 - 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 = 22415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:58,074 - 13563 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:56:58,084 - 13563 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:56:58,084 - 13563 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 40 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:58,474 - 13563 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 40) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 12:56:59,590 - 13563 - src.utils.log - INFO - βœ… All 40 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 12:56:59,590 - 13563 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:56:59,591 - 13563 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 40 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:56:59,947 - 13563 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 40) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-06 12:57:01,138 - 13563 - src.utils.log - INFO - βœ… All 40 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 12:57:01,138 - 13563 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:57:01,430 - 13563 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:57:01,430 - 13563 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-06 08:57:01.430' WHERE GenerateInvoiceHistoryId = 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:57:01,722 - 13563 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:57:01,723 - 13563 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 12:57:01,723 - 13563 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13563 - Time took: 13.96 - __SPLIT__ 2026-06-06 12:58:24,740 - [13563] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799253, 799254] user_id=122885 company_id=135 project_id=[13563] publish_all=False - __SPLIT__ 2026-06-06 12:58:24,740 - [13563] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-06 12:58:24,741 - [13563] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-06 12:58:24,741 - [13563] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 12:58:24,741 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:26,773 - [13563] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 12:58:26,774 - [13563] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 12:58:26,774 - [13563] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-06 08:58:26.774' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:27,065 - [13563] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:58:27,066 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (799253, 799254);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:27,370 - [13563] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:58:27,371 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799253, 799254);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:27,662 - [13563] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:58:27,664 - [13563] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:28,116 - [13563] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 12:58:29,263 - [13563] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 12:58:29,474 - [13563] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 12:58:29,475 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:29,843 - [13563] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:58:29,846 - [13563] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-06-06 12:58:30,321 - [13563] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:58:30,324 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:30,638 - [13563] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 12:58:30,639 - [13563] - src.utils.log - INFO - 2 Invoice Generated : [167782, 167783] - __SPLIT__ 2026-06-06 12:58:30,639 - [13563] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '167784' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:30,941 - [13563] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:58:30,943 - [13563] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:58:30,943 - [13563] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:31,278 - [13563] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-06 12:58:32,433 - [13563] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 12:58:32,433 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (408254, 408255);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:32,736 - [13563] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:58:32,738 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (854154, 854155);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:33,054 - [13563] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:58:33,055 - [13563] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (854154, 854155);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:33,352 - [13563] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 12:58:33,359 - [13563] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:58:33,359 - [13563] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:33,691 - [13563] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 12:58:34,746 - [13563] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 12:58:34,746 - [13563] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:58:34,747 - [13563] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:35,059 - [13563] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-06 12:58:36,112 - [13563] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-06 12:58:36,113 - [13563] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 12:58:36,113 - [13563] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:36,449 - [13563] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-06-06 12:58:37,341 - [13563] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-06 12:58:37,342 - [13563] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (854154, 854155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:37,629 - [13563] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:58:37,629 - [13563] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (854154, 854155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:37,916 - [13563] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:58:37,916 - [13563] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (854154, 854155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:38,219 - [13563] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:58:38,219 - [13563] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799253, 799254) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:38,512 - [13563] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 12:58:38,513 - [13563] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 08:58:26.774' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13563;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 12:58:38,798 - [13563] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 12:58:38,798 - [13563] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 14.06 - __SPLIT__ 2026-06-06 15:59:28,828 - 124552 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124552 - __SPLIT__ 2026-06-06 15:59:28,829 - 124552 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124552 - __SPLIT__ 2026-06-06 15:59:28,829 - 124552 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 15:59:28,829 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:31,006 - 124552 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 15:59:31,006 - 124552 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 15:59:31,007 - 124552 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-06 15:59:31,007 - 124552 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-06 15:59:31,007 - 124552 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:32,883 - 124552 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 15:59:32,884 - 124552 - 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 = 124552), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124552), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124552 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:33,360 - 124552 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-06 15:59:33,361 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:33,632 - 124552 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 15:59:33,635 - 124552 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 15:59:33,636 - 124552 - 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 (14597, 14728, 13962, 14626, 14627, 14632, 14633, 14505, 14509, 14637, 14253, 14513, 14642, 14643, 14641, 14653, 14657, 14537, 14667, 14669, 14693, 14566, 14447, 14578, 14845)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:33,951 - 124552 - src.utils.log - INFO - βœ… Fetched 432 rows - __SPLIT__ 2026-06-06 15:59:33,951 - 124552 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 15:59:33,954 - 124552 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-06 15:59:33,955 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:34,232 - 124552 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 15:59:34,233 - 124552 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-06 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:34,523 - 124552 - src.utils.log - INFO - βœ… Fetched 730 rows - __SPLIT__ 2026-06-06 15:59:35,230 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150216 - __SPLIT__ 2026-06-06 15:59:35,254 - 124552 - src.utils.log - INFO - Generating work orders for setup: 149787 - __SPLIT__ 2026-06-06 15:59:35,273 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150203 - __SPLIT__ 2026-06-06 15:59:35,288 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150204 - __SPLIT__ 2026-06-06 15:59:35,302 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150205 - __SPLIT__ 2026-06-06 15:59:35,310 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150206 - __SPLIT__ 2026-06-06 15:59:35,331 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150210 - __SPLIT__ 2026-06-06 15:59:35,339 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150213 - __SPLIT__ 2026-06-06 15:59:35,347 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150215 - __SPLIT__ 2026-06-06 15:59:35,361 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150222 - __SPLIT__ 2026-06-06 15:59:35,375 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150260 - __SPLIT__ 2026-06-06 15:59:35,390 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150261 - __SPLIT__ 2026-06-06 15:59:35,405 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150262 - __SPLIT__ 2026-06-06 15:59:35,421 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150263 - __SPLIT__ 2026-06-06 15:59:35,437 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150265 - __SPLIT__ 2026-06-06 15:59:35,445 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150266 - __SPLIT__ 2026-06-06 15:59:35,454 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150307 - __SPLIT__ 2026-06-06 15:59:35,477 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150309 - __SPLIT__ 2026-06-06 15:59:35,492 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150312 - __SPLIT__ 2026-06-06 15:59:35,507 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150313 - __SPLIT__ 2026-06-06 15:59:35,522 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150314 - __SPLIT__ 2026-06-06 15:59:35,537 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150321 - __SPLIT__ 2026-06-06 15:59:36,079 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150322 - __SPLIT__ 2026-06-06 15:59:36,684 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150328 - __SPLIT__ 2026-06-06 15:59:36,703 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150338 - __SPLIT__ 2026-06-06 15:59:36,704 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150338 - __SPLIT__ 2026-06-06 15:59:36,704 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150338 - __SPLIT__ 2026-06-06 15:59:36,739 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150355 - __SPLIT__ 2026-06-06 15:59:36,766 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150356 - __SPLIT__ 2026-06-06 15:59:36,794 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150365 - __SPLIT__ 2026-06-06 15:59:36,812 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150370 - __SPLIT__ 2026-06-06 15:59:36,813 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150370 - __SPLIT__ 2026-06-06 15:59:36,813 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150370 - __SPLIT__ 2026-06-06 15:59:36,838 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150374 - __SPLIT__ 2026-06-06 15:59:36,839 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150374 - __SPLIT__ 2026-06-06 15:59:36,839 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150374 - __SPLIT__ 2026-06-06 15:59:36,864 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150375 - __SPLIT__ 2026-06-06 15:59:36,882 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150379 - __SPLIT__ 2026-06-06 15:59:36,883 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150379 - __SPLIT__ 2026-06-06 15:59:36,883 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150379 - __SPLIT__ 2026-06-06 15:59:36,911 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150380 - __SPLIT__ 2026-06-06 15:59:36,922 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150383 - __SPLIT__ 2026-06-06 15:59:36,941 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150384 - __SPLIT__ 2026-06-06 15:59:36,959 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150385 - __SPLIT__ 2026-06-06 15:59:36,960 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150385 - __SPLIT__ 2026-06-06 15:59:36,960 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150385 - __SPLIT__ 2026-06-06 15:59:36,985 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150387 - __SPLIT__ 2026-06-06 15:59:36,996 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150395 - __SPLIT__ 2026-06-06 15:59:37,007 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150396 - __SPLIT__ 2026-06-06 15:59:37,020 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150400 - __SPLIT__ 2026-06-06 15:59:37,021 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150400 - __SPLIT__ 2026-06-06 15:59:37,049 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150401 - __SPLIT__ 2026-06-06 15:59:37,069 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150402 - __SPLIT__ 2026-06-06 15:59:37,070 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150402 - __SPLIT__ 2026-06-06 15:59:37,070 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150402 - __SPLIT__ 2026-06-06 15:59:37,086 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150411 - __SPLIT__ 2026-06-06 15:59:37,096 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150412 - __SPLIT__ 2026-06-06 15:59:37,097 - 124552 - src.utils.log - INFO - Initial Route Present in Filter Routes SETUP:150412 - __SPLIT__ 2026-06-06 15:59:37,097 - 124552 - src.utils.log - INFO - Recurring Route Present in Filter Routes SETUP:150412 - __SPLIT__ 2026-06-06 15:59:37,148 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150414 - __SPLIT__ 2026-06-06 15:59:37,160 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150416 - __SPLIT__ 2026-06-06 15:59:37,172 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150417 - __SPLIT__ 2026-06-06 15:59:37,210 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150418 - __SPLIT__ 2026-06-06 15:59:37,298 - 124552 - src.utils.log - INFO - Generating work orders for setup: 150420 - __SPLIT__ 2026-06-06 15:59:37,320 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11427.0, 11428.0, 1127.0, 1131.0, 1133.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:37,590 - 124552 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-06 15:59:37,599 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11427.0, 11428.0, 11429.0, 1127.0, 1130.0, 1131.0, 1132.0, 1133.0, 11436.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:37,870 - 124552 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-06 15:59:37,950 - 124552 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-06 15:59:37,959 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:38,228 - 124552 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 15:59:38,231 - 124552 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-06 15:59:38,231 - 124552 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-06 15:59:38,231 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:38,641 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:38,642 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:39,030 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:39,030 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:39,317 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:39,317 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:39,723 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:39,724 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:40,148 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:40,148 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:40,441 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:40,441 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:40,717 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:40,718 - 124552 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:42,655 - 124552 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 15:59:42,655 - 124552 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 15:59:42,655 - 124552 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 62 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:42,985 - 124552 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 62) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-06 15:59:46,327 - 124552 - src.utils.log - INFO - βœ… All 62 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 15:59:46,328 - 124552 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 62 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.706' and ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:46,654 - 124552 - src.utils.log - INFO - βœ… Fetched 62 rows - __SPLIT__ 2026-06-06 15:59:46,655 - 124552 - src.utils.log - INFO - Id's of work order inserted to DB: [3680268 3680269 3680270 3680271 3680272 3680273 3680274 3680275 3680276 3680277 3680278 3680279 3680280 3680281 3680282 3680283 3680284 3680285 3680286 3680287 3680288 3680289 3680290 3680291 3680292 3680293 3680294 3680295 3680296 3680297 3680298 3680299 3680300 3680301 3680302 3680303 3680304 3680305 3680306 3680307 3680308 3680309 3680310 3680311 3680312 3680313 3680314 3680315 3680316 3680317 3680318 3680319 3680320 3680321 3680322 3680323 3680324 3680325 3680326 3680327 3680328 3680329] - __SPLIT__ 2026-06-06 15:59:46,655 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 149787, 150307, 150309, 150312, 150313, 150314, 150321, 150322, 150328, 150203, 150204, 150205, 150206, 150210, 150338, 150213, 150215, 150216, 150222, 150355, 150356, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150260, 150261, 150262, 150263, 150264, 150265, 150266, 150395, 150396);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:46,927 - 124552 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 15:59:46,928 - 124552 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-06 15:59:46,928 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:47,201 - 124552 - src.utils.log - INFO - βœ… Fetched 50 rows - __SPLIT__ 2026-06-06 15:59:47,202 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:47,476 - 124552 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 15:59:47,484 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:47,784 - 124552 - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-06-06 15:59:47,785 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:48,059 - 124552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 15:59:48,059 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:48,330 - 124552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 15:59:48,331 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:48,603 - 124552 - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-06-06 15:59:48,605 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:48,885 - 124552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 15:59:48,886 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:49,445 - 124552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 15:59:49,445 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420, 150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:49,718 - 124552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 15:59:49,740 - 124552 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-06 15:59:49,740 - 124552 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 15:59:49,740 - 124552 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-06 15:59:49,740 - 124552 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-06 15:59:49,741 - 124552 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-06 15:59:49,741 - 124552 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-06 15:59:49,741 - 124552 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-06 15:59:49,741 - 124552 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 15:59:49,741 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680268, 3680272, 3680274, 3680276, 3680277, 3680278, 3680279, 3680280, 3680282, 3680284, 3680285, 3680287, 3680288, 3680289, 3680290, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680302, 3680303, 3680305, 3680306, 3680308, 3680309, 3680310, 3680311, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680322, 3680323, 3680328, 3680329) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:50,015 - 124552 - src.utils.log - INFO - βœ… Fetched 41 rows - __SPLIT__ 2026-06-06 15:59:50,016 - 124552 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:50,323 - 124552 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 15:59:51,370 - 124552 - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 15:59:51,370 - 124552 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-06 15:59:51,371 - 124552 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 15:59:51,371 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680304, 3680300, 3680301, 3680286) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:51,644 - 124552 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 15:59:51,645 - 124552 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:51,974 - 124552 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-06-06 15:59:53,175 - 124552 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 15:59:53,175 - 124552 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 15:59:53,176 - 124552 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-06 15:59:53,176 - 124552 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-06 15:59:53,176 - 124552 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-06 15:59:53,176 - 124552 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-06 15:59:53,176 - 124552 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 15:59:53,176 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680302, 3680303, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:53,449 - 124552 - src.utils.log - INFO - βœ… Fetched 58 rows - __SPLIT__ 2026-06-06 15:59:53,450 - 124552 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 58 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:53,757 - 124552 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 58) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-06 15:59:54,752 - 124552 - src.utils.log - INFO - βœ… All 58 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-06 15:59:54,753 - 124552 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-06 15:59:54,753 - 124552 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 15:59:54,753 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:55,023 - 124552 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-06 15:59:55,024 - 124552 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 17 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:55,329 - 124552 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 17) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 15:59:56,308 - 124552 - src.utils.log - INFO - βœ… All 17 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 15:59:56,308 - 124552 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 15:59:56,308 - 124552 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 15:59:56,309 - 124552 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:56,581 - 124552 - src.utils.log - INFO - βœ… Fetched 54 rows - __SPLIT__ 2026-06-06 15:59:56,582 - 124552 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 121 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:56,857 - 124552 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 121) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-06 15:59:58,124 - 124552 - src.utils.log - INFO - βœ… All 121 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-06 15:59:58,125 - 124552 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-06 15:59:58,125 - 124552 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 15:59:58,394 - 124552 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 15:59:58,394 - 124552 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-06 15:59:58,394 - 124552 - src.utils.log - INFO - Time took to perform operation: 29.57 - __SPLIT__ 2026-06-06 16:01:13,410 - [124552] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124552] publish_all=True - __SPLIT__ 2026-06-06 16:01:13,410 - [124552] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124552] publish_all=True - __SPLIT__ 2026-06-06 16:01:13,411 - [124552] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124552] - __SPLIT__ 2026-06-06 16:01:13,411 - [124552] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 16:01:13,411 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:15,533 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:15,534 - [124552] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 16:01:15,534 - [124552] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-06 16:01:15,535 - [124552] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-06 16:01:15,535 - [124552] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:17,401 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:01:17,401 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124552... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:17,861 - [124552] - src.utils.log - INFO - βœ… Fetched 62 rows - __SPLIT__ 2026-06-06 16:01:17,862 - [124552] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-06 16:01:17,862 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150365, 150384, 150387, 150395, 150401, 150396, 150383, 150411) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:18,145 - [124552] - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-06-06 16:01:18,146 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150365, 150384, 150387, 150395, 150401, 150396, 150383, 150411) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:18,427 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:18,427 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150365, 150384, 150387, 150395, 150401, 150396, 150383, 150411) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:18,712 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:18,716 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:18,985 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:18,985 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:19,252 - [124552] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-06 16:01:19,253 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:19,521 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:19,522 - [124552] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 62 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:19,792 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:19,793 - [124552] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 62 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:20,062 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:20,066 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150365, 150384, 150387, 150395, 150401, 150396, 150383, 150411)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:20,352 - [124552] - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-06-06 16:01:20,388 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:20,655 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:20,655 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('14902', '14901', '14856', '14912', '14907', '14875', '14880', '14896', '14911', '14917', '14904', '14899', '14890') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:20,927 - [124552] - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-06-06 16:01:20,929 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1426834', '1426835', '1426836', '1426837', '1426838', '1426839', '1426840', '1426841', '1426842', '1426843', '1426844', '1426845', '1426846', '1426847', '1426848', '1426849', '1426850', '1426851', '1426852', '1426853', '1426854', '1426855', '1426856', '1426857', '1426858', '1426859', '1426860', '1426861', '1426862', '1426863', '1426864', '1426865', '1426866', '1426867', '1426868', '1426869', '1426870', '1426871', '1426872', '1426873', '1426874', '1426875', '1426876', '1426877', '1426878', '1426879', '1426880', '1426881', '1426882', '1426883', '1426884', '1426885', '1426886', '1426887', '1426888', '1426889', '1426890', '1426891', '1426892', '1426893', '1426894', '1426895') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:21,206 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:21,207 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 62 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:21,667 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 62) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-06 16:01:25,384 - [124552] - src.utils.log - INFO - βœ… All 62 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 16:01:25,516 - [124552] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 16:01:25,518 - [124552] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId in (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:25,791 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:01:25,792 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1426834', '1426835', '1426836', '1426837', '1426838', '1426839', '1426840', '1426841', '1426842', '1426843', '1426844', '1426845', '1426846', '1426847', '1426848', '1426849', '1426850', '1426851', '1426852', '1426853', '1426854', '1426855', '1426856', '1426857', '1426858', '1426859', '1426860', '1426861', '1426862', '1426863', '1426864', '1426865', '1426866', '1426867', '1426868', '1426869', '1426870', '1426871', '1426872', '1426873', '1426874', '1426875', '1426876', '1426877', '1426878', '1426879', '1426880', '1426881', '1426882', '1426883', '1426884', '1426885', '1426886', '1426887', '1426888', '1426889', '1426890', '1426891', '1426892', '1426893', '1426894', '1426895') AND wo.AccountNumber IN ('14911', '14902', '14901', '14896', '14890', '14856', '14912', '14917', '14899', '14875', '14880', '14904', '14907') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-06-06 16:01:26,074 - [124552] - src.utils.log - INFO - βœ… Fetched 62 rows - __SPLIT__ 2026-06-06 16:01:26,075 - [124552] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-06 16:01:26,075 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:26,553 - [124552] - src.utils.log - INFO - βœ… Fetched 138 rows - __SPLIT__ 2026-06-06 16:01:26,553 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:26,831 - [124552] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 16:01:26,831 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:27,234 - [124552] - src.utils.log - INFO - βœ… Fetched 58 rows - __SPLIT__ 2026-06-06 16:01:27,235 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:27,507 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:27,508 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:27,788 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:27,788 - [124552] - 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 (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:28,174 - [124552] - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-06 16:01:28,174 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:28,448 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:28,448 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:28,722 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:28,724 - [124552] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-06 16:01:28,751 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:29,018 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:29,021 - [124552] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1160, 1147, 1159, 1091, 899, 894) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:29,289 - [124552] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-06 16:01:29,292 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:29,559 - [124552] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:01:29,560 - [124552] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '22835' WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:29,830 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:01:29,834 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:29,834 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 62 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:30,157 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 62) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-06 16:01:31,945 - [124552] - src.utils.log - INFO - βœ… All 62 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-06 16:01:31,947 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150365, 150384, 150387, 150395, 150401, 150396, 150383, 150411) AND WorkOrderNo IN ('326336', '332530', '889714', '909159', '159022', '524150', '418668', '734553', '3127335', '8115626', '9680611', '4774672', '9133124', '2319021', '6913084', '3519051', '6079594', '3656449', '3182652', '5116414', '5941774', '2470816', '5134202', '8446318', '7438148', '5220142', '8890741', '5032791', '3246018', '3761550', '8236260', '2425473', '2184132', '2643377', '1171056', '4594442', '1488541', '8836271', '4509624', '7082093', '5362133', '2694783', '5153690', '8199718', '5994447', '1094045', '2862479', '7833177', '3907616', '1755284', '7560658', '5081549', '3234606', '3575896', '3145168', '7911634', '9092050', '9019069', '8047885', '3874711', '4849337', '1160712') AND GenerateWorkOrderHistoryId = 124552;... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-06 16:01:32,569 - [124552] - src.utils.log - INFO - βœ… Fetched 62 rows - __SPLIT__ 2026-06-06 16:01:32,570 - [124552] - src.utils.log - INFO - 🏁 Final merged rows: 62 - __SPLIT__ 2026-06-06 16:01:32,576 - [124552] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-06 16:01:32,577 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:32,577 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 138 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:32,876 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 138) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-06 16:01:34,600 - [124552] - src.utils.log - INFO - βœ… All 138 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-06 16:01:34,600 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:34,600 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:34,899 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-06 16:01:35,981 - [124552] - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 16:01:35,982 - [124552] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-06 16:01:35,982 - [124552] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-06 16:01:35,982 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:35,982 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 58 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:36,280 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 58) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-06 16:01:37,267 - [124552] - src.utils.log - INFO - βœ… All 58 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-06 16:01:37,267 - [124552] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-06 16:01:37,267 - [124552] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-06 16:01:37,267 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:37,268 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 138 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:37,567 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 138) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-06 16:01:39,508 - [124552] - src.utils.log - INFO - βœ… All 138 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-06 16:01:39,509 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:39,509 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:39,821 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.SubWorkOrder - __SPLIT__ 2026-06-06 16:01:41,006 - [124552] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.SubWorkOrder in 1 batches - __SPLIT__ 2026-06-06 16:01:41,007 - [124552] - src.utils.log - INFO - πŸ” Fetching data: Select * From ServiceCore.SubWorkOrder where WorkOrderId in (2157139, 2157153, 2157154, 2157157)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:41,295 - [124552] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 16:01:41,301 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:41,301 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWorkOrderIssue: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:41,600 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWorkOrderIssue - __SPLIT__ 2026-06-06 16:01:42,413 - [124552] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWorkOrderIssue in 1 batches - __SPLIT__ 2026-06-06 16:01:42,414 - [124552] - src.utils.log - INFO - πŸ” Fetching data: Select SubWorkOrderIssueId, SubWorkOrderId, ModifiedBy From ServiceAuto.subWorkOrderIssue where SubWorkOrderId in (230433, 230434, 230432, 230431) and ModifiedBy in ('999999999', '1000000000', '1000000001', '1000000002')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:42,683 - [124552] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 16:01:42,684 - [124552] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWorkOrderIssue SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('999999999', '1000000000', '1000000001', '1000000002'); ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-06-06 16:01:43,014 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:01:43,022 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:43,022 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.subWOIssueRepair: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:43,323 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceAuto.subWOIssueRepair - __SPLIT__ 2026-06-06 16:01:44,141 - [124552] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceAuto.subWOIssueRepair in 1 batches - __SPLIT__ 2026-06-06 16:01:44,142 - [124552] - src.utils.log - INFO - πŸ” Fetching data: Select IssueRepairId, ModifiedBy From ServiceAuto.subWOIssueRepair where SubWorkOrderIssueId in (192612, 192613, 192614, 192615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:44,409 - [124552] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 16:01:44,410 - [124552] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceAuto.subWOIssueRepair SET ModifiedBy = 'abcdallas' WHERE ModifiedBy IN ('0___TMP___192612', '0___TMP___192613', '0___TMP___192614', '0___TMP___192615') AND CreatedDate = '2026-06-06 12:01:41.299'; ... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-06-06 16:01:44,707 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:01:44,713 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:44,714 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.SubWOIssueRepairLabor: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:45,012 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceAuto.SubWOIssueRepairLabor - __SPLIT__ 2026-06-06 16:01:46,070 - [124552] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceAuto.SubWOIssueRepairLabor in 1 batches - __SPLIT__ 2026-06-06 16:01:46,071 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150400, 150385, 150379, 150374, 150370, 150338, 150412, 150402, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150365, 150384, 150387, 150395, 150401, 150396, 150383, 150411)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:46,338 - [124552] - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-06-06 16:01:46,346 - [124552] - src.utils.log - INFO - Size of Transaction: 46 - __SPLIT__ 2026-06-06 16:01:46,347 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 46 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:46,777 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 46) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 16:01:47,756 - [124552] - src.utils.log - INFO - βœ… All 46 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 16:01:47,888 - [124552] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 16:01:47,889 - [124552] - 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, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930, 12345678931, 12345678932, 12345678933, 12345678934, 12345678935, 12345678936, 12345678937, 12345678938, 12345678939, 12345678940, 12345678941, 12345678942, 12345678943, 12345678944, 12345678945, 12345678946, 12345678947, 12345678948, 12345678949, 12345678950, 12345678951, 12345678952, 12345678953, 12345678954, 12345678955) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-06 12:01:46.341';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:48,316 - [124552] - src.utils.log - INFO - βœ… Fetched 46 rows - __SPLIT__ 2026-06-06 16:01:48,319 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150338, 150355, 150365, 150370, 150374, 150375, 150379, 150380, 150383, 150384, 150385, 150387, 150395, 150396, 150400, 150401, 150402, 150411, 150412, 150414, 150416, 150417, 150418, 150420);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:48,591 - [124552] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 16:01:48,602 - [124552] - 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,12345678926,12345678927,12345678928,12345678929,12345678930,12345678931,12345678932,12345678933,12345678934,12345678935,12345678936,12345678937,12345678938,12345678939,12345678940,12345678941,12345678942,12345678943,12345678944,12345678945,12345678946,12345678947,12345678948,12345678949,12345678950,12345678951,12345678952,12345678953,12345678954,12345678955) AND CreatedDate = '2026-06-06 12:01:46.341'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-06-06 16:01:48,985 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:01:48,991 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:48,991 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 46 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:49,294 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 46) into Billing.Invoice - __SPLIT__ 2026-06-06 16:01:50,323 - [124552] - src.utils.log - INFO - βœ… All 46 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 16:01:50,324 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1426839', '1426889', '1426879', '1426846', '1426890', '1426878', '1426847', '1426837', '1426881', '1426874', '1426886', '1426845', '1426836', '1426887', '1426857', '1426852', '1426893', '1426873', '1426892', '1426865', '1426835', '1426891', '1426864', '1426866', '1426867', '1426870', '1426834', '1426894', '1426868', '1426855', '1426854', '1426853', '1426848', '1426859', '1426843', '1426877', '1426872', '1426851', '1426850', '1426862', '1426860', '1426856', '1426844', '1426842', '1426876', '1426861')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:53,929 - [124552] - src.utils.log - INFO - βœ… Fetched 46 rows - __SPLIT__ 2026-06-06 16:01:53,940 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:54,214 - [124552] - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-06-06 16:01:54,215 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:54,488 - [124552] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-06-06 16:01:54,488 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:54,762 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:54,762 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:55,034 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:01:55,049 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:55,322 - [124552] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-06 16:01:55,328 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:55,597 - [124552] - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-06-06 16:01:55,609 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150400, 150385, 150379, 150374, 150338, 150418, 150417, 150375, 150355, 150380, 150416, 150414, 150420, 150384, 150387, 150395, 150396, 150383);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:55,879 - [124552] - src.utils.log - INFO - βœ… Fetched 15 rows - __SPLIT__ 2026-06-06 16:01:55,889 - [124552] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-06 16:01:55,889 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:55,889 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 31 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:56,186 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 31) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-06 16:01:57,284 - [124552] - src.utils.log - INFO - βœ… All 31 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-06 16:01:57,284 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:57,284 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 98 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:57,586 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 98) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 16:01:59,005 - [124552] - src.utils.log - INFO - βœ… All 98 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 16:01:59,005 - [124552] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:01:59,006 - [124552] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 31 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:01:59,304 - [124552] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 31) into Billing.DiscountApplied - __SPLIT__ 2026-06-06 16:02:00,270 - [124552] - src.utils.log - INFO - βœ… All 31 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-06 16:02:00,270 - [124552] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-06 16:02:00,271 - [124552] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-06 16:02:00,272 - [124552] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124552 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:00,540 - [124552] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:02:00,546 - [124552] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-06 16:02:00,680 - [124552] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_89e2eeb791 - __SPLIT__ 2026-06-06 16:02:00,949 - [124552] - src.utils.log - INFO - πŸ“Œ Bulk inserting 24 rows into #tbl_89e2eeb791 - __SPLIT__ 2026-06-06 16:02:04,251 - [124552] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-06 16:02:04,402 - [124552] - src.utils.log - INFO - βœ” SQL reported affected rows: 24 - __SPLIT__ 2026-06-06 16:02:04,544 - [124552] - src.utils.log - INFO - πŸ” Verified successfully updated 24 rows via #tbl_89e2eeb791 - __SPLIT__ 2026-06-06 16:02:04,544 - [124552] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_89e2eeb791 - __SPLIT__ 2026-06-06 16:02:04,544 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124552 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:04,811 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:04,811 - [124552] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-06 16:02:04,811 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:05,444 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:05,444 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:05,926 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:05,926 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:06,199 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:06,199 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:06,655 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:06,655 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:06,942 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:06,942 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:07,224 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:07,224 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:07,496 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:07,496 - [124552] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:10,752 - [124552] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-06 16:02:10,752 - [124552] - src.utils.log - INFO - Work order published ids: (3680268, 3680269, 3680270, 3680271, 3680272, 3680273, 3680274, 3680275, 3680276, 3680277, 3680278, 3680279, 3680280, 3680281, 3680282, 3680283, 3680284, 3680285, 3680286, 3680287, 3680288, 3680289, 3680290, 3680291, 3680292, 3680293, 3680294, 3680295, 3680296, 3680297, 3680298, 3680299, 3680300, 3680301, 3680302, 3680303, 3680304, 3680305, 3680306, 3680307, 3680308, 3680309, 3680310, 3680311, 3680312, 3680313, 3680314, 3680315, 3680316, 3680317, 3680318, 3680319, 3680320, 3680321, 3680322, 3680323, 3680324, 3680325, 3680326, 3680327, 3680328, 3680329) - __SPLIT__ 2026-06-06 16:02:10,752 - [124552] - src.utils.log - INFO - Time took to perform operation in publishing [124552]: 57.34 - __SPLIT__ 2026-06-06 16:02:10,753 - [124552] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124552] - __SPLIT__ 2026-06-06 16:02:10,753 - [124552] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 12:02:10.752' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:02:11,024 - [124552] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:04:17,072 - 13564 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13564 - __SPLIT__ 2026-06-06 16:04:17,074 - 13564 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 16:04:17,074 - 13564 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:04:19,135 - 13564 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:04:19,135 - 13564 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 16:04:19,135 - 13564 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13564 - __SPLIT__ 2026-06-06 16:04:19,135 - 13564 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13564;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:04:19,432 - 13564 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:04:19,432 - 13564 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13564;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:04:19,742 - 13564 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:04:19,742 - 13564 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8481' and ss.ServiceSetupId = 24008 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:04:20,053 - 13564 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:04:20,053 - 13564 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13564;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:04:20,349 - 13564 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:04:20,349 - 13564 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-06 12:04:20.349' WHERE GenerateInvoiceHistoryId = 13564;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:04:20,652 - 13564 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:04:20,652 - 13564 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 16:04:20,652 - 13564 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:13564 - Time took: 3.58 - Error:No setups found for GenerateWorkOrderHistoryid: 13564 - __SPLIT__ 2026-06-06 16:13:00,119 - 13565 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13565 - __SPLIT__ 2026-06-06 16:13:00,121 - 13565 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 16:13:00,121 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:02,208 - 13565 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:13:02,209 - 13565 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 16:13:02,209 - 13565 - src.utils.log - INFO - Invoice generation and publish algo started for GenerateInvoiceHistoryId: 13565 - __SPLIT__ 2026-06-06 16:13:02,209 - 13565 - src.utils.log - INFO - πŸ” Fetching data: Select CreatedBy, CompanyId from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:02,507 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:02,507 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:02,803 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:02,803 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceGenStartDateTime = '2026-06-06 12:13:02.507', InvoicePublishStartDateTime = '2026-06-06 12:13:02.507' WHERE GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:03,094 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:03,095 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:03,394 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:03,395 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23692 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:03,691 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:03,696 - 13565 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-06 16:13:03,696 - 13565 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 16:13:03,697 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:03,993 - 13565 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-06 16:13:03,993 - 13565 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 16:13:04,003 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 23692 AND TransactionDate BETWEEN '2026-06-06 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:04,295 - 13565 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:13:04,302 - 13565 - 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-06-06 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 23692 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:04,607 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:04,631 - 13565 - 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 = 23692 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:04,925 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:04,932 - 13565 - 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 = 12805;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:05,222 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:05,224 - 13565 - 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 = 12805;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:05,524 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:05,529 - 13565 - 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 = 23692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:05,823 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:05,829 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:06,123 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:06,124 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-06 12:13:02.507' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:06,426 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:06,426 - 13565 - src.utils.log - INFO - Invoice Gen/Publish GENERATION Complete Successfully ProjectId:13565 - Time took: 6.31 - __SPLIT__ 2026-06-06 16:13:06,427 - 13565 - src.utils.log - INFO - Invoice Gen/Publish PUBLISH Begin - __SPLIT__ 2026-06-06 16:13:06,427 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', PublishStatusDateTime = '2026-06-06 12:13:02.507' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:06,739 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:06,741 - 13565 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:07,240 - 13565 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-06 16:13:08,296 - 13565 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-06 16:13:08,442 - 13565 - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-06 16:13:08,443 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:08,770 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:08,774 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-06-06 16:13:09,173 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:09,176 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:09,476 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:09,478 - 13565 - src.utils.log - INFO - 1 Invoice Generated : [167789] - __SPLIT__ 2026-06-06 16:13:09,478 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '167790' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:09,772 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:09,776 - 13565 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:13:09,776 - 13565 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:10,104 - 13565 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-06 16:13:11,133 - 13565 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-06 16:13:11,134 - 13565 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 408265;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:11,431 - 13565 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:11,439 - 13565 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:13:11,440 - 13565 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:13:11,440 - 13565 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-06-06 16:13:11,440 - 13565 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:13:11,441 - 13565 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-15_2) - __SPLIT__ 2026-06-06 16:13:11,440 - 13565 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-15_1) - __SPLIT__ 2026-06-06 16:13:11,758 - 13565 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-06-06 16:13:12,632 - 13565 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-06 16:13:12,703 - 13565 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-06-06 16:13:12,791 - 13565 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-06 16:13:13,650 - 13565 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-06 16:13:13,762 - 13565 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-06 16:13:13,763 - 13565 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-06 12:13:02.507' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13565;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:14,072 - 13565 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:14,072 - 13565 - src.utils.log - INFO - Invoice Gen/Publish PUBLISH Complete Successfully - Time took: 13.95 - __SPLIT__ 2026-06-06 16:13:51,119 - 13566 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13566 - __SPLIT__ 2026-06-06 16:13:51,120 - 13566 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-06 16:13:51,120 - 13566 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:53,196 - 13566 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:13:53,196 - 13566 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-06 16:13:53,197 - 13566 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13566 - __SPLIT__ 2026-06-06 16:13:53,197 - 13566 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13566;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:53,499 - 13566 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:13:53,499 - 13566 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13566;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:53,828 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:53,829 - 13566 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '5871' and ss.ServiceSetupId = 23692 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:54,125 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:54,129 - 13566 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-06 16:13:54,130 - 13566 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-06 16:13:54,131 - 13566 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:54,427 - 13566 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-06-06 16:13:54,428 - 13566 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-06 16:13:54,438 - 13566 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 23692 AND TransactionDate BETWEEN '2026-06-06 00:00:00' AND '2029-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:54,739 - 13566 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-06 16:13:54,746 - 13566 - 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-06-06 00:00:00' AND '2029-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 23692 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:55,061 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:55,076 - 13566 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:13:55,076 - 13566 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 41 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:55,403 - 13566 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 41) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-06 16:13:56,780 - 13566 - src.utils.log - INFO - βœ… All 41 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 16:13:56,780 - 13566 - src.utils.log - INFO - - __SPLIT__ 2026-06-06 16:13:56,780 - 13566 - src.utils.log - INFO - Total invoice generated: 41 - __SPLIT__ 2026-06-06 16:13:56,780 - 13566 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 41 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.733' and ServiceSetupId = 23692 and GenerateWorkOrderHistoryId= 13566;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:57,073 - 13566 - src.utils.log - INFO - βœ… Fetched 41 rows - __SPLIT__ 2026-06-06 16:13:57,081 - 13566 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:13:57,081 - 13566 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 41 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:57,397 - 13566 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 41) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-06 16:13:58,503 - 13566 - src.utils.log - INFO - βœ… All 41 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 16:13:58,503 - 13566 - 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 (799293, 799294, 799295, 799296, 799297, 799298, 799299, 799300, 799301, 799302, 799303, 799304, 799305, 799306, 799307, 799308, 799309, 799310, 799311, 799312, 799313, 799314, 799315, 799316, 799317, 799318, 799319, 799320, 799321, 799322, 799323, 799324, 799325, 799326, 799327, 799328, 799329, 799330, 799331, 799332, 799333);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:58,803 - 13566 - src.utils.log - INFO - βœ… Fetched 41 rows - __SPLIT__ 2026-06-06 16:13:58,804 - 13566 - 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 = 23692 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:59,129 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:59,136 - 13566 - 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 = 12805;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:59,431 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:59,432 - 13566 - 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 = 12805;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:13:59,718 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:13:59,723 - 13566 - 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 = 23692;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:14:00,014 - 13566 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-06 16:14:00,049 - 13566 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:14:00,049 - 13566 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 41 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:14:00,361 - 13566 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 41) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-06 16:14:01,467 - 13566 - src.utils.log - INFO - βœ… All 41 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-06 16:14:01,467 - 13566 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-06 16:14:01,467 - 13566 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 41 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:14:01,784 - 13566 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 41) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-06 16:14:03,046 - 13566 - src.utils.log - INFO - βœ… All 41 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-06 16:14:03,046 - 13566 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13566;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:14:03,397 - 13566 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:14:03,398 - 13566 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-06 12:14:03.397' WHERE GenerateInvoiceHistoryId = 13566;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-06 16:14:03,699 - 13566 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-06 16:14:03,700 - 13566 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-06 16:14:03,700 - 13566 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13566 - Time took: 12.58 - __SPLIT__ 2026-06-08 10:14:33,773 - [42425] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[636926, 636927] user_id=43135 company_id=133 project_id=[42425] publish_all=False - __SPLIT__ 2026-06-08 10:14:33,992 - [42425] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-08 10:14:34,060 - [42425] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-08 10:14:34,137 - [42425] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 10:14:34,216 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:36,345 - [42425] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:14:36,416 - [42425] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-08 10:14:36,482 - [42425] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-08 10:14:36,549 - [42425] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-08 10:14:36,622 - [42425] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-08 06:14:36.622' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42425;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:38,574 - [42425] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:14:38,646 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (636926, 636927);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:38,993 - [42425] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 10:14:39,067 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (636926, 636927);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:39,409 - [42425] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 10:14:39,481 - [42425] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:39,981 - [42425] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 10:14:41,001 - [42425] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 10:14:41,206 - [42425] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 10:14:41,275 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:46,847 - [42425] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 10:14:46,920 - [42425] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-06-08 10:14:48,467 - [42425] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:14:48,547 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:48,883 - [42425] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:14:48,961 - [42425] - src.utils.log - INFO - 2 Invoice Generated : [1484850, 1484851] - __SPLIT__ 2026-06-08 10:14:49,035 - [42425] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1484852' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:49,374 - [42425] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:14:49,448 - [42425] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:14:49,518 - [42425] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:49,894 - [42425] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-08 10:14:50,922 - [42425] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 10:14:51,022 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3699628, 3699629);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:51,364 - [42425] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 10:14:51,436 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (445011, 445012);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:51,789 - [42425] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 10:14:51,852 - [42425] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (445011, 445012);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:52,199 - [42425] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-08 10:14:52,275 - [42425] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:14:52,348 - [42425] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:52,775 - [42425] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 10:14:53,790 - [42425] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 10:14:53,847 - [42425] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:14:53,909 - [42425] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:54,269 - [42425] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-08 10:14:55,291 - [42425] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-08 10:14:55,387 - [42425] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:14:55,452 - [42425] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:55,813 - [42425] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.DiscountApplied - __SPLIT__ 2026-06-08 10:14:56,832 - [42425] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-08 10:14:56,903 - [42425] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (445011, 445012) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:57,247 - [42425] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:14:57,316 - [42425] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (445011, 445012) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:57,694 - [42425] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:14:57,766 - [42425] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (445011, 445012) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:58,140 - [42425] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:14:58,210 - [42425] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (636926, 636927) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:58,553 - [42425] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:14:58,622 - [42425] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 06:14:36.622' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42425;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:14:58,952 - [42425] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:14:59,108 - [42425] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 24.97 - __SPLIT__ 2026-06-09 06:12:54,004 - 42431 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42431 - __SPLIT__ 2026-06-09 06:12:54,125 - 42431 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-09 06:12:54,197 - 42431 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:12:56,350 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:12:56,401 - 42431 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-09 06:12:56,453 - 42431 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-09 06:12:56,509 - 42431 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-09 06:12:56,575 - 42431 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42431 - __SPLIT__ 2026-06-09 06:12:56,628 - 42431 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:12:58,606 - 42431 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-09 06:12:58,655 - 42431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:12:58,981 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:12:59,039 - 42431 - 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 = '14930' and ss.ServiceSetupId = 150443 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:12:59,378 - 42431 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-09 06:12:59,447 - 42431 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-09 06:12:59,499 - 42431 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-09 06:12:59,561 - 42431 - 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 = 14570... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:12:59,887 - 42431 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-09 06:12:59,943 - 42431 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-09 06:13:00,028 - 42431 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150443 AND TransactionDate BETWEEN '2026-06-09 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:00,367 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:13:00,488 - 42431 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId = 636979 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:00,837 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:13:00,911 - 42431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 445064 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:01,279 - 42431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 06:13:01,349 - 42431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 445064 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:01,697 - 42431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 06:13:01,780 - 42431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 445064 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:02,134 - 42431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 06:13:02,205 - 42431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 636979 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:02,548 - 42431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 06:13:02,631 - 42431 - 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-06-09 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150443 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:02,999 - 42431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 06:13:03,077 - 42431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 06:13:03,149 - 42431 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:03,510 - 42431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-09 06:13:04,592 - 42431 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-09 06:13:04,675 - 42431 - src.utils.log - INFO - - __SPLIT__ 2026-06-09 06:13:04,749 - 42431 - src.utils.log - INFO - Total invoice generated: 1 - __SPLIT__ 2026-06-09 06:13:04,822 - 42431 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.733' and ServiceSetupId = 150443 and GenerateWorkOrderHistoryId= 42431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:05,160 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:13:05,287 - 42431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 06:13:05,375 - 42431 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:05,753 - 42431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-09 06:13:06,778 - 42431 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-09 06:13:06,853 - 42431 - 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 = 636980;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:07,199 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:13:07,271 - 42431 - 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 = 150443 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:07,614 - 42431 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-09 06:13:07,690 - 42431 - 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 = 14509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:08,029 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:13:08,100 - 42431 - 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 = 14570;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:08,440 - 42431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 06:13:08,534 - 42431 - 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 = 150443;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:08,891 - 42431 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-09 06:13:08,967 - 42431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 06:13:09,036 - 42431 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:09,400 - 42431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-09 06:13:10,421 - 42431 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-09 06:13:10,506 - 42431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 06:13:10,605 - 42431 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:11,019 - 42431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-09 06:13:12,036 - 42431 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-09 06:13:12,106 - 42431 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:12,446 - 42431 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-09 06:13:12,516 - 42431 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-09 02:13:12.516' WHERE GenerateInvoiceHistoryId = 42431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 06:13:12,852 - 42431 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-09 06:13:12,922 - 42431 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-09 06:13:12,991 - 42431 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42431 - Time took: 18.87 - __SPLIT__ 2026-06-09 09:01:32,665 - 12291 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12291 - __SPLIT__ 2026-06-09 09:01:32,782 - 12291 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12291 - __SPLIT__ 2026-06-09 09:01:32,858 - 12291 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-09 09:01:32,920 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:34,993 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:35,053 - 12291 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-09 09:01:35,122 - 12291 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12291;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:35,476 - 12291 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-09 09:01:35,535 - 12291 - 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 = 12291), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12291), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12291 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:35,939 - 12291 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-09 09:01:35,996 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12291;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:36,356 - 12291 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 09:01:36,418 - 12291 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-09 09:01:36,486 - 12291 - 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 (13000, 13057, 12803, 12965)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:36,844 - 12291 - src.utils.log - INFO - βœ… Fetched 146 rows - __SPLIT__ 2026-06-09 09:01:36,909 - 12291 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-09 09:01:36,973 - 12291 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-09 09:01:37,041 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (22384, 24002, 23190, 23760);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:37,402 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:37,461 - 12291 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-09 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (22384, 24002, 23190, 23760) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:37,821 - 12291 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-09 09:01:38,546 - 12291 - src.utils.log - INFO - Generating work orders for setup: 22384 - __SPLIT__ 2026-06-09 09:01:38,639 - 12291 - src.utils.log - INFO - Generating work orders for setup: 23190 - __SPLIT__ 2026-06-09 09:01:38,720 - 12291 - src.utils.log - INFO - Generating work orders for setup: 23760 - __SPLIT__ 2026-06-09 09:01:38,784 - 12291 - src.utils.log - INFO - Generating work orders for setup: 24002 - __SPLIT__ 2026-06-09 09:01:38,867 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1387.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:39,224 - 12291 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 09:01:39,344 - 12291 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-09 09:01:39,415 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:39,766 - 12291 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 09:01:39,831 - 12291 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-09 09:01:39,895 - 12291 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-09 09:01:39,958 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:40,320 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:40,390 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:40,753 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:40,824 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:41,173 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:41,239 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:41,605 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:41,665 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:42,083 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:42,156 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:42,528 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:42,603 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:42,951 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:43,024 - 12291 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (22384, 24002, 23190, 23760) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:43,409 - 12291 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-09 09:01:43,479 - 12291 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 09:01:43,547 - 12291 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:43,967 - 12291 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-09 09:01:45,244 - 12291 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-09 09:01:45,310 - 12291 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-04 17:08:04.705' and ServiceSetupId in (22384, 24002, 23190, 23760)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:45,673 - 12291 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-09 09:01:45,747 - 12291 - src.utils.log - INFO - Id's of work order inserted to DB: [2730539 2730540 2730541] - __SPLIT__ 2026-06-09 09:01:45,814 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (22384, 24002, 23190, 23760);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:46,173 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:46,243 - 12291 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-09 09:01:46,312 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 24002... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:46,671 - 12291 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-09 09:01:46,747 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 24002... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:47,155 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:47,226 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 24002... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:47,584 - 12291 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-09 09:01:47,652 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 24002... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:48,016 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:48,082 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 24002... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:48,440 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:48,511 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 24002;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:48,873 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:48,943 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 24002;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:49,297 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:49,359 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 24002;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:49,735 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:49,799 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 24002;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:50,155 - 12291 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-09 09:01:50,231 - 12291 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-09 09:01:50,296 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-09 09:01:50,364 - 12291 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-09 09:01:50,429 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-09 09:01:50,492 - 12291 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-09 09:01:50,606 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-09 09:01:50,678 - 12291 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-09 09:01:50,749 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-09 09:01:50,824 - 12291 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-09 09:01:50,890 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-09 09:01:50,953 - 12291 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-09 09:01:51,020 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-09 09:01:51,095 - 12291 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-09 09:01:51,158 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-09 09:01:51,227 - 12291 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-09 09:01:51,297 - 12291 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 09:01:51,369 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730539, 2730540, 2730541) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:51,736 - 12291 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-09 09:01:51,802 - 12291 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:52,179 - 12291 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-09 09:01:53,278 - 12291 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-09 09:01:53,349 - 12291 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-09 09:01:53,419 - 12291 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-09 09:01:53,489 - 12291 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-09 09:01:53,547 - 12291 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-09 09:01:53,664 - 12291 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2730539, 2730540, 2730541) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:54,050 - 12291 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-09 09:01:54,128 - 12291 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:54,513 - 12291 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-09 09:01:55,631 - 12291 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-09 09:01:55,698 - 12291 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-09 09:01:55,771 - 12291 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12291;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-09 09:01:56,130 - 12291 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-09 09:01:56,193 - 12291 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-09 09:01:56,268 - 12291 - src.utils.log - INFO - Time took to perform operation: 23.34 - __SPLIT__ 2026-06-10 10:35:56,645 - 42436 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42436 - __SPLIT__ 2026-06-10 10:35:56,884 - 42436 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-10 10:35:56,963 - 42436 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:35:59,426 - 42436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:35:59,499 - 42436 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-10 10:35:59,567 - 42436 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-10 10:35:59,638 - 42436 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-10 10:35:59,708 - 42436 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42436 - __SPLIT__ 2026-06-10 10:35:59,776 - 42436 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:02,449 - 42436 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:02,515 - 42436 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:02,867 - 42436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:02,939 - 42436 - 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 = '14932' and ss.ServiceSetupId = 150449 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:03,300 - 42436 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 10:36:03,377 - 42436 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-10 10:36:03,453 - 42436 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-10 10:36:03,522 - 42436 - 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 = 14610... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:03,881 - 42436 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-10 10:36:03,951 - 42436 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-10 10:36:04,101 - 42436 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150449 AND TransactionDate BETWEEN '2026-06-10 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:04,511 - 42436 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 10:36:04,590 - 42436 - 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-06-10 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 = 150449 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:04,991 - 42436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:05,074 - 42436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:05,144 - 42436 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:05,554 - 42436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-10 10:36:06,649 - 42436 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-10 10:36:06,726 - 42436 - src.utils.log - INFO - - __SPLIT__ 2026-06-10 10:36:06,801 - 42436 - src.utils.log - INFO - Total invoice generated: 2 - __SPLIT__ 2026-06-10 10:36:06,871 - 42436 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-04 11:38:04.738' and ServiceSetupId = 150449 and GenerateWorkOrderHistoryId= 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:07,232 - 42436 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 10:36:07,313 - 42436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:07,384 - 42436 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:07,767 - 42436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-10 10:36:08,837 - 42436 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-10 10:36:08,911 - 42436 - 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 (636992, 636993);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:09,266 - 42436 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 10:36:09,338 - 42436 - 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 = 150449 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:09,691 - 42436 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 10:36:09,762 - 42436 - 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 = 14509;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:10,169 - 42436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:10,228 - 42436 - 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 = 14610;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:10,573 - 42436 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:10,639 - 42436 - 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 = 150449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:10,990 - 42436 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 10:36:11,058 - 42436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:11,124 - 42436 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:11,501 - 42436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-10 10:36:12,560 - 42436 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-10 10:36:12,649 - 42436 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:12,710 - 42436 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:13,083 - 42436 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-10 10:36:14,150 - 42436 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-10 10:36:14,214 - 42436 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:14,558 - 42436 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:14,618 - 42436 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-10 06:36:14.618' WHERE GenerateInvoiceHistoryId = 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:14,970 - 42436 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:15,035 - 42436 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-10 10:36:15,101 - 42436 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42436 - Time took: 18.22 - __SPLIT__ 2026-06-10 10:36:33,976 - [42436] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[636992] user_id=43135 company_id=133 project_id=[42436] publish_all=False - __SPLIT__ 2026-06-10 10:36:34,194 - [42436] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-10 10:36:34,262 - [42436] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-10 10:36:34,333 - [42436] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-10 10:36:34,399 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:36,471 - [42436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:36,540 - [42436] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-10 10:36:36,615 - [42436] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-10 10:36:36,684 - [42436] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-10 10:36:36,758 - [42436] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-10 06:36:36.758' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:38,824 - [42436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:38,895 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 636992;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:39,258 - [42436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:39,326 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 636992;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:39,677 - [42436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:39,753 - [42436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:40,270 - [42436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-10 10:36:41,346 - [42436] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-10 10:36:41,556 - [42436] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-10 10:36:41,630 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:47,192 - [42436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:47,264 - [42436] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-06-10 10:36:48,182 - [42436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:48,249 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:48,607 - [42436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:48,677 - [42436] - src.utils.log - INFO - 1 Invoice Generated : [1484876] - __SPLIT__ 2026-06-10 10:36:48,741 - [42436] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1484877' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:49,135 - [42436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:49,200 - [42436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:49,274 - [42436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:49,656 - [42436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-10 10:36:50,732 - [42436] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-10 10:36:50,800 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3699662;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:51,148 - [42436] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 10:36:51,213 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 445077;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:51,580 - [42436] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 10:36:51,648 - [42436] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 445077;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:52,000 - [42436] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 10:36:52,074 - [42436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:52,140 - [42436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:52,555 - [42436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-06-10 10:36:53,625 - [42436] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-10 10:36:53,695 - [42436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:53,754 - [42436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:54,126 - [42436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-10 10:36:55,208 - [42436] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-10 10:36:55,276 - [42436] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 10:36:55,345 - [42436] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:55,716 - [42436] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-06-10 10:36:56,785 - [42436] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-10 10:36:56,856 - [42436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 445077 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:57,211 - [42436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 10:36:57,276 - [42436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 445077 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:57,656 - [42436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 10:36:57,724 - [42436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 445077 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:58,094 - [42436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 10:36:58,160 - [42436] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 636992 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:58,509 - [42436] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 10:36:58,569 - [42436] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-10 06:36:36.758' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 10:36:58,928 - [42436] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 10:36:59,043 - [42436] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 24.71 - __SPLIT__ 2026-06-10 13:12:34,357 - [13577] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799342] user_id=122885 company_id=135 project_id=[13577] publish_all=False - __SPLIT__ 2026-06-10 13:12:34,489 - [13577] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-10 13:12:34,554 - [13577] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-10 13:12:34,625 - [13577] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-10 13:12:34,693 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:36,811 - [13577] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 13:12:36,870 - [13577] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-10 13:12:36,933 - [13577] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-10 09:12:36.933' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13577;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:37,279 - [13577] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 13:12:37,342 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 799342;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:37,699 - [13577] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 13:12:37,759 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 799342;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:38,113 - [13577] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 13:12:38,172 - [13577] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:38,693 - [13577] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-10 13:12:39,779 - [13577] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-10 13:12:39,981 - [13577] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-10 13:12:40,047 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:40,439 - [13577] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 13:12:40,513 - [13577] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-10 13:12:40,969 - [13577] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 13:12:41,093 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:41,453 - [13577] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 13:12:41,524 - [13577] - src.utils.log - INFO - 1 Invoice Generated : [167823] - __SPLIT__ 2026-06-10 13:12:41,594 - [13577] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '167824' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:41,951 - [13577] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 13:12:42,024 - [13577] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 13:12:42,086 - [13577] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:42,468 - [13577] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-10 13:12:43,558 - [13577] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-10 13:12:43,635 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 408361;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:43,997 - [13577] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 13:12:44,067 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 854243;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:44,433 - [13577] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 13:12:44,498 - [13577] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 854243;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:44,865 - [13577] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 13:12:44,939 - [13577] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 13:12:45,009 - [13577] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:45,403 - [13577] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-06-10 13:12:46,497 - [13577] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-10 13:12:46,570 - [13577] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 13:12:46,682 - [13577] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:47,043 - [13577] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-10 13:12:48,125 - [13577] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-10 13:12:48,185 - [13577] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 13:12:48,239 - [13577] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:48,614 - [13577] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-06-10 13:12:49,692 - [13577] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-10 13:12:49,751 - [13577] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 854243 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:50,115 - [13577] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 13:12:50,172 - [13577] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 854243 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:50,510 - [13577] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 13:12:50,567 - [13577] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 854243 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:50,913 - [13577] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 13:12:50,964 - [13577] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 799342 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:51,325 - [13577] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 13:12:51,378 - [13577] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-10 09:12:36.933' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13577;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 13:12:51,729 - [13577] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 13:12:51,790 - [13577] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 17.17 - __SPLIT__