2026-06-08 07:42:05,609 - 56431 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56431 - __SPLIT__ 2026-06-08 07:42:08,646 - 56431 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56431 - __SPLIT__ 2026-06-08 07:42:08,646 - 56431 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 07:42:08,646 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:08,824 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:08,825 - 56431 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 07:42:08,825 - 56431 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:08,852 - 56431 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 07:42:08,852 - 56431 - 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 = 56431), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56431), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56431 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-08 07:42:08,905 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:08,905 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:08,933 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:08,936 - 56431 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 07:42:08,936 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14825... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:08,970 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:08,970 - 56431 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 07:42:08,973 - 56431 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 07:42:08,973 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,000 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:09,000 - 56431 - 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-08 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106132 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,031 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:09,103 - 56431 - src.utils.log - INFO - Generating work orders for setup: 106132 - __SPLIT__ 2026-06-08 07:42:09,117 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11435;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,143 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:09,176 - 56431 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 07:42:09,179 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,206 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:09,207 - 56431 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 07:42:09,207 - 56431 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 07:42:09,207 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,265 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,265 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,319 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,319 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,371 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,371 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,423 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,423 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,475 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,475 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,530 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,530 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,562 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,562 - 56431 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106132 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,654 - 56431 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 07:42:09,654 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:09,654 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,727 - 56431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 07:42:09,854 - 56431 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 07:42:09,855 - 56431 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.575' and ServiceSetupId = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,908 - 56431 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:42:09,908 - 56431 - src.utils.log - INFO - Id's of work order inserted to DB: [578293 578294] - __SPLIT__ 2026-06-08 07:42:09,908 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,934 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:09,934 - 56431 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 07:42:09,935 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,962 - 56431 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:42:09,962 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:09,989 - 56431 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:42:09,995 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,026 - 56431 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:42:10,027 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,056 - 56431 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:42:10,057 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106132... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,084 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:10,084 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,112 - 56431 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 07:42:10,113 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,154 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:10,155 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,388 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:10,388 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,416 - 56431 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 07:42:10,435 - 56431 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 07:42:10,435 - 56431 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 07:42:10,435 - 56431 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,435 - 56431 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 07:42:10,436 - 56431 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,436 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:10,436 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('578294', '578293') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,461 - 56431 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:42:10,462 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,504 - 56431 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-08 07:42:10,504 - 56431 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,504 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:10,504 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578293, 578294) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,531 - 56431 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:42:10,531 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,578 - 56431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,678 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:10,679 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578293 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,706 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:10,706 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,756 - 56431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-08 07:42:10,856 - 56431 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-08 07:42:10,857 - 56431 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 07:42:10,857 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:10,857 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578293, 578294) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,882 - 56431 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 07:42:10,882 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:10,928 - 56431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 07:42:11,031 - 56431 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 07:42:11,032 - 56431 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 07:42:11,032 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:11,032 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578293 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:11,057 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:11,058 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:11,106 - 56431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 07:42:11,212 - 56431 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 07:42:11,213 - 56431 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 07:42:11,213 - 56431 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 07:42:11,213 - 56431 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578294 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:11,238 - 56431 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 07:42:11,239 - 56431 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:11,272 - 56431 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 07:42:11,377 - 56431 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 07:42:11,377 - 56431 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 07:42:11,378 - 56431 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56431;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 07:42:11,403 - 56431 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 07:42:11,404 - 56431 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 07:42:11,404 - 56431 - src.utils.log - INFO - Time took to perform operation: 2.76 - __SPLIT__ 2026-06-08 10:49:13,529 - 11964 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11964 - __SPLIT__ 2026-06-08 10:49:13,531 - 11964 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 10:49:13,531 - 11964 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,704 - 11964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 10:49:13,704 - 11964 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 10:49:13,704 - 11964 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11964 - __SPLIT__ 2026-06-08 10:49:13,704 - 11964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,732 - 11964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:13,732 - 11964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,760 - 11964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:13,761 - 11964 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2338' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,797 - 11964 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 10:49:13,801 - 11964 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-08 10:49:13,801 - 11964 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 10:49:13,802 - 11964 - 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 = 13951... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,836 - 11964 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 10:49:13,836 - 11964 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 10:49:13,844 - 11964 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 106135 AND TransactionDate BETWEEN '2026-06-08 00:00:00' AND '2026-08-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,896 - 11964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 10:49:13,902 - 11964 - 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-08 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 = 106135 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:13,933 - 11964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 10:49:13,940 - 11964 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:13,940 - 11964 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,034 - 11964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-08 10:49:14,131 - 11964 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 10:49:14,131 - 11964 - src.utils.log - INFO - - __SPLIT__ 2026-06-08 10:49:14,131 - 11964 - src.utils.log - INFO - Total invoice generated: 1 - __SPLIT__ 2026-06-08 10:49:14,131 - 11964 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-07 05:42:39.587' and ServiceSetupId = 106135 and GenerateWorkOrderHistoryId= 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,169 - 11964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:14,175 - 11964 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:14,175 - 11964 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,225 - 11964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-08 10:49:14,324 - 11964 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 10:49:14,324 - 11964 - 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 = 264085;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,365 - 11964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:14,365 - 11964 - 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 = 106135 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,394 - 11964 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 10:49:14,400 - 11964 - 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 = 13930;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,426 - 11964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:14,428 - 11964 - 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 = 13951;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,454 - 11964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:14,458 - 11964 - 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 = 106135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,486 - 11964 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 10:49:14,491 - 11964 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:14,492 - 11964 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,544 - 11964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-08 10:49:14,648 - 11964 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 10:49:14,648 - 11964 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:14,648 - 11964 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,698 - 11964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-08 10:49:14,799 - 11964 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 10:49:14,800 - 11964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,824 - 11964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:14,824 - 11964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-08 06:49:14.824' WHERE GenerateInvoiceHistoryId = 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:14,852 - 11964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:14,852 - 11964 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-08 10:49:14,852 - 11964 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11964 - Time took: 1.32 - __SPLIT__ 2026-06-08 10:49:23,048 - [11964] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[264085] user_id=44506 company_id=146 project_id=[11964] publish_all=False - __SPLIT__ 2026-06-08 10:49:23,048 - [11964] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-08 10:49:23,049 - [11964] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-08 10:49:23,049 - [11964] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 10:49:23,049 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,225 - [11964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 10:49:23,226 - [11964] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 10:49:23,226 - [11964] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-08 06:49:23.226' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,253 - [11964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:23,253 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 264085;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,285 - [11964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:23,286 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 264085;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,313 - [11964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:23,314 - [11964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,372 - [11964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 10:49:23,469 - [11964] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 10:49:23,481 - [11964] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 10:49:23,482 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,616 - [11964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:23,618 - [11964] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-06-08 10:49:23,700 - [11964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:23,703 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,729 - [11964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:23,730 - [11964] - src.utils.log - INFO - 1 Invoice Generated : [74258] - __SPLIT__ 2026-06-08 10:49:23,730 - [11964] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '74259' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,758 - [11964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:23,759 - [11964] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:23,759 - [11964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,808 - [11964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-08 10:49:23,909 - [11964] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 10:49:23,910 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 843015;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:23,936 - [11964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 10:49:23,938 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 264001;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,037 - [11964] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 10:49:24,037 - [11964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 264001;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,066 - [11964] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-08 10:49:24,071 - [11964] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:24,071 - [11964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,118 - [11964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 10:49:24,225 - [11964] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 10:49:24,225 - [11964] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:24,225 - [11964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,271 - [11964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-08 10:49:24,366 - [11964] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-08 10:49:24,367 - [11964] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 10:49:24,367 - [11964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,412 - [11964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-06-08 10:49:24,508 - [11964] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-08 10:49:24,508 - [11964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 264001 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,537 - [11964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:49:24,538 - [11964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 264001 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,593 - [11964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:49:24,593 - [11964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 264001 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,629 - [11964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:49:24,629 - [11964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 264085 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,660 - [11964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 10:49:24,660 - [11964] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 06:49:23.226' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 10:49:24,688 - [11964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 10:49:24,688 - [11964] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 1.64 - __SPLIT__ 2026-06-08 12:36:49,197 - [56437] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578326, 578332] user_id=44506 company_id=146 project_id=[56437] publish_all=False - __SPLIT__ 2026-06-08 12:36:49,198 - [56437] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578326, 578332] user_id=44506 company_id=146 project_id=[56437] publish_all=False - __SPLIT__ 2026-06-08 12:36:49,198 - [56437] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56437] - __SPLIT__ 2026-06-08 12:36:49,199 - [56437] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 12:36:49,199 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,408 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:49,408 - [56437] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 12:36:49,408 - [56437] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,437 - [56437] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:36:49,438 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,471 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:49,471 - [56437] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 12:36:49,472 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106140 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,509 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,509 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106140 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,544 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:49,545 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106140 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,582 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:49,585 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,616 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,616 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,646 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:49,646 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,677 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,678 - [56437] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,709 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,710 - [56437] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,741 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,745 - [56437] - 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 = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,780 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,782 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,812 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,813 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2341' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,843 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:49,846 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56480', '56481') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,880 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:49,880 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:49,970 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 12:36:50,123 - [56437] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 12:36:50,138 - [56437] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 12:36:50,139 - [56437] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,169 - [56437] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:36:50,170 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56480', '56481') AND wo.AccountNumber = '2341' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-06-08 12:36:50,208 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:50,209 - [56437] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 12:36:50,209 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,256 - [56437] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 12:36:50,257 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,308 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:50,308 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,348 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:50,348 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,379 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:50,380 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,412 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:50,412 - [56437] - 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 (578326, 578332)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,449 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:50,449 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578326, 578332) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,482 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:50,482 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578326, 578332);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,513 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:50,515 - [56437] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 12:36:50,527 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,558 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:50,558 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,589 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:50,592 - [56437] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:50,593 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:50,678 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 12:36:50,840 - [56437] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 12:36:50,842 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106140 AND WorkOrderNo IN ('763163', '7929613') AND GenerateWorkOrderHistoryId = 56437;... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-06-08 12:36:51,000 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:51,000 - [56437] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-08 12:36:51,006 - [56437] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 12:36:51,006 - [56437] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:51,007 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,074 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 12:36:51,208 - [56437] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 12:36:51,208 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-08 12:36:51,208 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-08 12:36:51,208 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 12:36:51,208 - [56437] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:51,208 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,256 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 12:36:51,368 - [56437] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 12:36:51,368 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 12:36:51,368 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 12:36:51,368 - [56437] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:51,368 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,419 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 12:36:51,541 - [56437] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 12:36:51,541 - [56437] - 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 = 106140... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,572 - [56437] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 12:36:51,578 - [56437] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-08 12:36:51,578 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,644 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 12:36:51,760 - [56437] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 12:36:51,774 - [56437] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 12:36:51,774 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-08 08:36:51.573';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,818 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:51,821 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,851 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:51,859 - [56437] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-08 08:36:51.573'; ... (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-06-08 12:36:51,937 - [56437] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 12:36:51,941 - [56437] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:51,941 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:51,993 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-08 12:36:52,112 - [56437] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 12:36:52,112 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56480', '56481')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,194 - [56437] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 12:36:52,204 - [56437] - 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 = 106140 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,237 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:52,237 - [56437] - 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 = 106140 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,271 - [56437] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 12:36:52,271 - [56437] - 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 = 106140 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,303 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:52,304 - [56437] - 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 = 106140 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,337 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:52,348 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,379 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:52,383 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,415 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:52,417 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106140;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,448 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:52,448 - [56437] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 12:36:52,448 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-08 12:36:52,448 - [56437] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 12:36:52,448 - [56437] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,498 - [56437] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 12:36:52,622 - [56437] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 12:36:52,622 - [56437] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-08 12:36:52,622 - [56437] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 12:36:52,622 - [56437] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 12:36:52,622 - [56437] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56437 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,654 - [56437] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 12:36:52,660 - [56437] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 12:36:52,675 - [56437] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_d296c0259a - __SPLIT__ 2026-06-08 12:36:52,705 - [56437] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_d296c0259a - __SPLIT__ 2026-06-08 12:36:52,735 - [56437] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 12:36:52,755 - [56437] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 12:36:52,775 - [56437] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_d296c0259a - __SPLIT__ 2026-06-08 12:36:52,775 - [56437] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_d296c0259a - __SPLIT__ 2026-06-08 12:36:52,775 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56437 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,804 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:52,804 - [56437] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 12:36:52,804 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,903 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:52,903 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:52,977 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:52,977 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,011 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:53,011 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,070 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:53,070 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,107 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:53,107 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,175 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:53,175 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,206 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:53,206 - [56437] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578326, 578332) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,330 - [56437] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 12:36:53,330 - [56437] - src.utils.log - INFO - Work order published ids: (578326, 578332) - __SPLIT__ 2026-06-08 12:36:53,330 - [56437] - src.utils.log - INFO - Time took to perform operation in publishing [56437]: 4.13 - __SPLIT__ 2026-06-08 12:36:53,330 - [56437] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56437] - __SPLIT__ 2026-06-08 12:36:53,330 - [56437] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 08:36:53.330' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 12:36:53,362 - [56437] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:11:00,328 - [56439] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578335, 578336] user_id=44506 company_id=146 project_id=[56439] publish_all=False - __SPLIT__ 2026-06-08 13:11:00,329 - [56439] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578335, 578336] user_id=44506 company_id=146 project_id=[56439] publish_all=False - __SPLIT__ 2026-06-08 13:11:00,329 - [56439] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56439] - __SPLIT__ 2026-06-08 13:11:00,330 - [56439] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 13:11:00,330 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,508 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:00,509 - [56439] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 13:11:00,509 - [56439] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,534 - [56439] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:11:00,534 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,564 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:00,564 - [56439] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 13:11:00,565 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106142 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,601 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,601 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106142 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,635 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:00,635 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106142 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,671 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:00,674 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,702 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,702 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,728 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:00,729 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,755 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,756 - [56439] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,783 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,783 - [56439] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,811 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,814 - [56439] - 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 = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,847 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,849 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,874 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,874 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2341' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,903 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:00,904 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56484', '56485') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:00,934 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:00,934 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,027 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 13:11:01,223 - [56439] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 13:11:01,236 - [56439] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 13:11:01,237 - [56439] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,261 - [56439] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:11:01,263 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56484', '56485') AND wo.AccountNumber = '2341' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-06-08 13:11:01,293 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:01,293 - [56439] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 13:11:01,293 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,337 - [56439] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 13:11:01,338 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,387 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:01,387 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,424 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:01,424 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,451 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:01,451 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,479 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:01,479 - [56439] - 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 (578335, 578336)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,511 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:01,511 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578335, 578336) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,539 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:01,539 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578335, 578336);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,564 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:01,567 - [56439] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 13:11:01,578 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,603 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:01,603 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,630 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:01,633 - [56439] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:11:01,633 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,694 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 13:11:01,796 - [56439] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 13:11:01,798 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106142 AND WorkOrderNo IN ('230354', '8280226') AND GenerateWorkOrderHistoryId = 56439;... (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-06-08 13:11:01,858 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:01,859 - [56439] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-08 13:11:01,864 - [56439] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 13:11:01,864 - [56439] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:11:01,864 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:01,911 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 13:11:02,010 - [56439] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 13:11:02,010 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-08 13:11:02,010 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-08 13:11:02,010 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 13:11:02,010 - [56439] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:11:02,011 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,056 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 13:11:02,157 - [56439] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 13:11:02,157 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 13:11:02,157 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 13:11:02,157 - [56439] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:11:02,157 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,207 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 13:11:02,306 - [56439] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 13:11:02,306 - [56439] - 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 = 106142... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,332 - [56439] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:11:02,339 - [56439] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-08 13:11:02,340 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,397 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 13:11:02,492 - [56439] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 13:11:02,504 - [56439] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 13:11:02,505 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-08 09:11:02.334';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,549 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:02,551 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,578 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:02,586 - [56439] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-08 09:11:02.334'; ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-06-08 13:11:02,664 - [56439] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:11:02,668 - [56439] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:11:02,668 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,717 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-08 13:11:02,812 - [56439] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 13:11:02,813 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56484', '56485')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,891 - [56439] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 13:11:02,899 - [56439] - 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 = 106142 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,928 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:02,928 - [56439] - 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 = 106142 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,958 - [56439] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:11:02,958 - [56439] - 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 = 106142 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:02,986 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:02,986 - [56439] - 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 = 106142 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,016 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:03,028 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,054 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:03,060 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,086 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:03,088 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106142;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,116 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:03,116 - [56439] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 13:11:03,116 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-08 13:11:03,116 - [56439] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:11:03,116 - [56439] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,167 - [56439] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 13:11:03,262 - [56439] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 13:11:03,263 - [56439] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-08 13:11:03,263 - [56439] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 13:11:03,263 - [56439] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 13:11:03,263 - [56439] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56439 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,289 - [56439] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:11:03,295 - [56439] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 13:11:03,308 - [56439] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_90ed4cdc46 - __SPLIT__ 2026-06-08 13:11:03,334 - [56439] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_90ed4cdc46 - __SPLIT__ 2026-06-08 13:11:03,359 - [56439] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 13:11:03,378 - [56439] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 13:11:03,395 - [56439] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_90ed4cdc46 - __SPLIT__ 2026-06-08 13:11:03,395 - [56439] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_90ed4cdc46 - __SPLIT__ 2026-06-08 13:11:03,396 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56439 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,420 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,420 - [56439] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 13:11:03,420 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,511 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,511 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,581 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,581 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,611 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,611 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,656 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,656 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,690 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,690 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,752 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,752 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,777 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,778 - [56439] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578335, 578336) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,937 - [56439] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:11:03,938 - [56439] - src.utils.log - INFO - Work order published ids: (578335, 578336) - __SPLIT__ 2026-06-08 13:11:03,938 - [56439] - src.utils.log - INFO - Time took to perform operation in publishing [56439]: 3.61 - __SPLIT__ 2026-06-08 13:11:03,938 - [56439] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56439] - __SPLIT__ 2026-06-08 13:11:03,938 - [56439] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 09:11:03.938' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56439;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:11:03,965 - [56439] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:22:00,204 - [56441] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578339, 578340] user_id=44506 company_id=146 project_id=[56441] publish_all=False - __SPLIT__ 2026-06-08 13:22:00,204 - [56441] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578339, 578340] user_id=44506 company_id=146 project_id=[56441] publish_all=False - __SPLIT__ 2026-06-08 13:22:00,204 - [56441] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56441] - __SPLIT__ 2026-06-08 13:22:00,205 - [56441] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 13:22:00,205 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,380 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:00,381 - [56441] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-08 13:22:00,382 - [56441] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56441;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,406 - [56441] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:22:00,406 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,436 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:00,436 - [56441] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-08 13:22:00,436 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106144 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,469 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,469 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106144 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,501 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:00,501 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106144 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,535 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:00,538 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,565 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,565 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,591 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:00,592 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,619 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,620 - [56441] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,648 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,649 - [56441] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,677 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,682 - [56441] - 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 = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,718 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,721 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,748 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,748 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2341' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,775 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:00,777 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56488', '56489') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,806 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:00,806 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:00,887 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-08 13:22:01,017 - [56441] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 13:22:01,029 - [56441] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 13:22:01,030 - [56441] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,055 - [56441] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:22:01,056 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56488', '56489') AND wo.AccountNumber = '2341' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-06-08 13:22:01,089 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:01,090 - [56441] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-08 13:22:01,090 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,133 - [56441] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 13:22:01,133 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,182 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:01,182 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,218 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:01,218 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,245 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:01,245 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,273 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:01,273 - [56441] - 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 (578339, 578340)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,305 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:01,306 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578339, 578340) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,332 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:01,333 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578339, 578340);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,360 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:01,361 - [56441] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-08 13:22:01,373 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,402 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:01,402 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,429 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:01,432 - [56441] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:22:01,432 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,498 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-08 13:22:01,618 - [56441] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-08 13:22:01,620 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106144 AND WorkOrderNo IN ('510070', '5104251') AND GenerateWorkOrderHistoryId = 56441;... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-06-08 13:22:01,680 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:01,682 - [56441] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-08 13:22:01,686 - [56441] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-08 13:22:01,686 - [56441] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:22:01,686 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,733 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-08 13:22:01,831 - [56441] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-08 13:22:01,831 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-08 13:22:01,831 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-08 13:22:01,831 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-08 13:22:01,832 - [56441] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:22:01,832 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:01,877 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-08 13:22:01,977 - [56441] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-08 13:22:01,977 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-08 13:22:01,977 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 13:22:01,977 - [56441] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:22:01,977 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,024 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-08 13:22:02,121 - [56441] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-08 13:22:02,122 - [56441] - 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 = 106144... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,149 - [56441] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 13:22:02,155 - [56441] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-08 13:22:02,156 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,213 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-08 13:22:02,309 - [56441] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-08 13:22:02,322 - [56441] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-08 13:22:02,323 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-08 09:22:02.150';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,360 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:02,363 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,389 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:02,397 - [56441] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-08 09:22:02.150'; ... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-06-08 13:22:02,471 - [56441] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 13:22:02,475 - [56441] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:22:02,475 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,525 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-08 13:22:02,620 - [56441] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-08 13:22:02,621 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56488', '56489')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,701 - [56441] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 13:22:02,709 - [56441] - 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 = 106144 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,738 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:02,739 - [56441] - 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 = 106144 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,768 - [56441] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-08 13:22:02,768 - [56441] - 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 = 106144 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,796 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:02,796 - [56441] - 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 = 106144 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,824 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:02,835 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,862 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:02,867 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,893 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:02,896 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106144;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,923 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:02,923 - [56441] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-08 13:22:02,924 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-08 13:22:02,924 - [56441] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 13:22:02,924 - [56441] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:02,971 - [56441] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceCharges - __SPLIT__ 2026-06-08 13:22:03,066 - [56441] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-08 13:22:03,067 - [56441] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-08 13:22:03,067 - [56441] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-08 13:22:03,067 - [56441] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-08 13:22:03,067 - [56441] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56441 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,094 - [56441] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 13:22:03,099 - [56441] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-08 13:22:03,113 - [56441] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_a24adee878 - __SPLIT__ 2026-06-08 13:22:03,141 - [56441] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_a24adee878 - __SPLIT__ 2026-06-08 13:22:03,167 - [56441] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-08 13:22:03,185 - [56441] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-08 13:22:03,201 - [56441] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_a24adee878 - __SPLIT__ 2026-06-08 13:22:03,201 - [56441] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_a24adee878 - __SPLIT__ 2026-06-08 13:22:03,201 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56441 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,225 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,226 - [56441] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-08 13:22:03,226 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,321 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,321 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,400 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,400 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,429 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,429 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,475 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,476 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,509 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,509 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,585 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,585 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,611 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,612 - [56441] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578339, 578340) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,739 - [56441] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 13:22:03,739 - [56441] - src.utils.log - INFO - Work order published ids: (578339, 578340) - __SPLIT__ 2026-06-08 13:22:03,739 - [56441] - src.utils.log - INFO - Time took to perform operation in publishing [56441]: 3.53 - __SPLIT__ 2026-06-08 13:22:03,739 - [56441] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56441] - __SPLIT__ 2026-06-08 13:22:03,739 - [56441] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-08 09:22:03.739' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56441;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 13:22:03,766 - [56441] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 16:45:26,138 - 25822 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=25822 - __SPLIT__ 2026-06-08 16:45:26,139 - 25822 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 25822 - __SPLIT__ 2026-06-08 16:45:26,139 - 25822 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-08 16:45:26,140 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:26,345 - 25822 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:45:26,346 - 25822 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-08 16:45:26,346 - 25822 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-08 16:45:26,346 - 25822 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-08 16:45:26,347 - 25822 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 25822;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:26,569 - 25822 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 16:45:26,569 - 25822 - 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 = 25822), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 25822), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 25822 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-08 16:45:26,760 - 25822 - src.utils.log - INFO - βœ… Fetched 74 rows - __SPLIT__ 2026-06-08 16:45:26,760 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 25822;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:26,784 - 25822 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:45:26,786 - 25822 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-08 16:45:26,787 - 25822 - 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 (14600, 14604, 14499, 14634, 14638, 14645, 14775, 14648, 14649, 14652, 14653, 14663, 14664, 14666, 14667, 14668, 14674, 14676, 14553, 14819, 14693, 14567, 14571, 14577)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:26,845 - 25822 - src.utils.log - INFO - βœ… Fetched 305 rows - __SPLIT__ 2026-06-08 16:45:26,845 - 25822 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-08 16:45:26,849 - 25822 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-08 16:45:26,849 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:26,890 - 25822 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:45:26,890 - 25822 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:26,927 - 25822 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-06-08 16:45:27,108 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67182 - __SPLIT__ 2026-06-08 16:45:27,116 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67114 - __SPLIT__ 2026-06-08 16:45:27,121 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67367 - __SPLIT__ 2026-06-08 16:45:27,127 - 25822 - src.utils.log - INFO - Generating work orders for setup: 61194 - __SPLIT__ 2026-06-08 16:45:27,132 - 25822 - src.utils.log - INFO - Generating work orders for setup: 63779 - __SPLIT__ 2026-06-08 16:45:27,138 - 25822 - src.utils.log - INFO - Generating work orders for setup: 61202 - __SPLIT__ 2026-06-08 16:45:27,144 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67330 - __SPLIT__ 2026-06-08 16:45:27,150 - 25822 - src.utils.log - INFO - Generating work orders for setup: 62923 - __SPLIT__ 2026-06-08 16:45:27,155 - 25822 - src.utils.log - INFO - Generating work orders for setup: 52672 - __SPLIT__ 2026-06-08 16:45:27,162 - 25822 - src.utils.log - INFO - Generating work orders for setup: 53197 - __SPLIT__ 2026-06-08 16:45:27,168 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67232 - __SPLIT__ 2026-06-08 16:45:27,173 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67282 - __SPLIT__ 2026-06-08 16:45:27,179 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67402 - __SPLIT__ 2026-06-08 16:45:27,185 - 25822 - src.utils.log - INFO - Generating work orders for setup: 65476 - __SPLIT__ 2026-06-08 16:45:27,191 - 25822 - src.utils.log - INFO - Generating work orders for setup: 28281 - __SPLIT__ 2026-06-08 16:45:27,196 - 25822 - src.utils.log - INFO - Generating work orders for setup: 28902 - __SPLIT__ 2026-06-08 16:45:27,196 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67184 - __SPLIT__ 2026-06-08 16:45:27,202 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67313 - __SPLIT__ 2026-06-08 16:45:27,208 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67270 - __SPLIT__ 2026-06-08 16:45:27,214 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67189 - __SPLIT__ 2026-06-08 16:45:27,245 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67142 - __SPLIT__ 2026-06-08 16:45:27,251 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67181 - __SPLIT__ 2026-06-08 16:45:27,257 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67118 - __SPLIT__ 2026-06-08 16:45:27,264 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67259 - __SPLIT__ 2026-06-08 16:45:27,270 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67196 - __SPLIT__ 2026-06-08 16:45:27,276 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67426 - __SPLIT__ 2026-06-08 16:45:27,282 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67225 - __SPLIT__ 2026-06-08 16:45:27,288 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67266 - __SPLIT__ 2026-06-08 16:45:27,295 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67126 - __SPLIT__ 2026-06-08 16:45:27,327 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67194 - __SPLIT__ 2026-06-08 16:45:27,333 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67233 - __SPLIT__ 2026-06-08 16:45:27,340 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67149 - __SPLIT__ 2026-06-08 16:45:27,347 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67173 - __SPLIT__ 2026-06-08 16:45:27,353 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67219 - __SPLIT__ 2026-06-08 16:45:27,359 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67239 - __SPLIT__ 2026-06-08 16:45:27,365 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67241 - __SPLIT__ 2026-06-08 16:45:27,372 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67322 - __SPLIT__ 2026-06-08 16:45:27,378 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67344 - __SPLIT__ 2026-06-08 16:45:27,385 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67424 - __SPLIT__ 2026-06-08 16:45:27,397 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67391 - __SPLIT__ 2026-06-08 16:45:27,406 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67437 - __SPLIT__ 2026-06-08 16:45:27,412 - 25822 - src.utils.log - INFO - Generating work orders for setup: 37149 - __SPLIT__ 2026-06-08 16:45:27,419 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67394 - __SPLIT__ 2026-06-08 16:45:27,425 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67146 - __SPLIT__ 2026-06-08 16:45:27,432 - 25822 - src.utils.log - INFO - Generating work orders for setup: 64670 - __SPLIT__ 2026-06-08 16:45:27,438 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67183 - __SPLIT__ 2026-06-08 16:45:27,445 - 25822 - src.utils.log - INFO - Generating work orders for setup: 46310 - __SPLIT__ 2026-06-08 16:45:27,445 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67121 - __SPLIT__ 2026-06-08 16:45:27,452 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67256 - __SPLIT__ 2026-06-08 16:45:27,458 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67286 - __SPLIT__ 2026-06-08 16:45:27,465 - 25822 - src.utils.log - INFO - Generating work orders for setup: 67175 - __SPLIT__ 2026-06-08 16:45:27,471 - 25822 - src.utils.log - INFO - Generating work orders for setup: 53880 - __SPLIT__ 2026-06-08 16:45:27,477 - 25822 - src.utils.log - INFO - Generating work orders for setup: 22493 - __SPLIT__ 2026-06-08 16:45:27,485 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11426.0, 11429.0, 1127.0, 11434.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,508 - 25822 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-08 16:45:27,557 - 25822 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-08 16:45:27,615 - 25822 - 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-08 16:45:27,642 - 25822 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:45:27,643 - 25822 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-08 16:45:27,643 - 25822 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-08 16:45:27,643 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,684 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,684 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,729 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,729 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,763 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,763 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,804 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,804 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,843 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,843 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,882 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,882 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,909 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,909 - 25822 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:27,967 - 25822 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-08 16:45:27,967 - 25822 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:45:27,967 - 25822 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:28,034 - 25822 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-08 16:45:28,812 - 25822 - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-08 16:45:28,813 - 25822 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 57 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-07 11:12:39.575' and ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:28,842 - 25822 - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-08 16:45:28,843 - 25822 - src.utils.log - INFO - Id's of work order inserted to DB: [678345 678346 678347 678348 678349 678350 678351 678352 678353 678354 678355 678356 678357 678358 678359 678360 678361 678362 678363 678364 678365 678366 678367 678368 678369 678370 678371 678372 678373 678374 678375 678376 678377 678378 678379 678380 678381 678382 678383 678384 678385 678386 678387 678388 678389 678390 678391 678392 678393 678394 678395 678396 678397 678398 678399 678400 678401] - __SPLIT__ 2026-06-08 16:45:28,843 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67330, 64133, 65673, 61194, 67344, 61202, 59283, 67219, 67225, 67322, 26395, 37149, 64670, 64415, 67232, 67233, 45728, 63779, 47009, 67367, 51623, 65191, 67114, 67239, 67241, 67118, 67121, 40627, 54453, 67126, 67256, 39481, 67259, 48573, 67391, 52672, 67266, 67394, 65476, 62405, 67270, 67142, 67402, 62923, 67146, 53197, 67149, 48334, 67282, 63573, 67286, 22493, 23134, 67424, 64994, 67426, 46434, 67173, 28902, 46310, 47333, 47462, 67175, 67181, 67182, 67437, 67184, 67313, 67183, 67189, 53880, 28281, 67194, 67196);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:28,867 - 25822 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:45:28,868 - 25822 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-08 16:45:28,868 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:28,895 - 25822 - src.utils.log - INFO - βœ… Fetched 70 rows - __SPLIT__ 2026-06-08 16:45:28,895 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:28,926 - 25822 - src.utils.log - INFO - βœ… Fetched 41 rows - __SPLIT__ 2026-06-08 16:45:28,933 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:28,999 - 25822 - src.utils.log - INFO - βœ… Fetched 92 rows - __SPLIT__ 2026-06-08 16:45:29,002 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,037 - 25822 - src.utils.log - INFO - βœ… Fetched 54 rows - __SPLIT__ 2026-06-08 16:45:29,039 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,064 - 25822 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:45:29,064 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,093 - 25822 - src.utils.log - INFO - βœ… Fetched 13 rows - __SPLIT__ 2026-06-08 16:45:29,094 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,125 - 25822 - src.utils.log - INFO - βœ… Fetched 42 rows - __SPLIT__ 2026-06-08 16:45:29,126 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,564 - 25822 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:45:29,564 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (67330, 67344, 67219, 67194, 67225, 37149, 64670, 67232, 67233, 63779, 67239, 67367, 67241, 67114, 67118, 67121, 67126, 67256, 67259, 67391, 52672, 67266, 67394, 65476, 67270, 67142, 67146, 67402, 53197, 67149, 67282, 67286, 22493, 67424, 67426, 67173, 67175, 67181, 67437, 67183, 67182, 67184, 67313, 67189, 53880, 28281, 67322, 67196);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,595 - 25822 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:45:29,615 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('678367', '678363', '678396', '678356', '678383', '678378', '678398', '678347', '678379', '678362', '678394', '678401', '678353', '678348', '678390', '678389', '678352', '678346', '678399', '678371', '678380', '678386', '678365', '678350', '678373', '678381', '678395', '678349', '678361', '678370', '678397', '678369', '678372', '678385', '678391', '678375', '678351', '678387', '678400', '678358', '678376', '678345', '678374', '678377', '678384', '678392', '678368', '678357', '678360', '678382', '678393') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,640 - 25822 - src.utils.log - INFO - βœ… Fetched 51 rows - __SPLIT__ 2026-06-08 16:45:29,641 - 25822 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,694 - 25822 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-08 16:45:29,694 - 25822 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-08 16:45:29,694 - 25822 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:45:29,695 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678380, 678382, 678383, 678354, 678388, 678390, 678359) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,719 - 25822 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-08 16:45:29,721 - 25822 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,766 - 25822 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-08 16:45:29,856 - 25822 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:45:29,857 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 678392 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,879 - 25822 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-08 16:45:29,879 - 25822 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:29,923 - 25822 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-08 16:45:30,006 - 25822 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-08 16:45:30,007 - 25822 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-08 16:45:30,007 - 25822 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:45:30,007 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678400, 678401, 678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:30,031 - 25822 - src.utils.log - INFO - βœ… Fetched 56 rows - __SPLIT__ 2026-06-08 16:45:30,032 - 25822 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 57 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:30,076 - 25822 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 57) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-08 16:45:30,210 - 25822 - src.utils.log - INFO - βœ… All 57 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-08 16:45:30,210 - 25822 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-08 16:45:30,210 - 25822 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-08 16:45:30,210 - 25822 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 16:45:30,210 - 25822 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-08 16:45:30,210 - 25822 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678400, 678401, 678345, 678346, 678347, 678348, 678349, 678350, 678351, 678352, 678353, 678354, 678355, 678356, 678357, 678358, 678359, 678360, 678361, 678362, 678363, 678364, 678365, 678366, 678367, 678368, 678369, 678370, 678371, 678372, 678373, 678374, 678375, 678376, 678377, 678378, 678379, 678380, 678381, 678382, 678383, 678384, 678385, 678386, 678387, 678388, 678389, 678390, 678391, 678392, 678393, 678394, 678395, 678396, 678397, 678398, 678399) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:30,234 - 25822 - src.utils.log - INFO - βœ… Fetched 57 rows - __SPLIT__ 2026-06-08 16:45:30,235 - 25822 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 79 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:30,279 - 25822 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 79) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-08 16:45:30,565 - 25822 - src.utils.log - INFO - βœ… All 79 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-08 16:45:30,565 - 25822 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-08 16:45:30,565 - 25822 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 25822;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-08 16:45:30,604 - 25822 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-08 16:45:30,605 - 25822 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-08 16:45:30,605 - 25822 - src.utils.log - INFO - Time took to perform operation: 4.47 - __SPLIT__ 2026-06-10 08:29:08,532 - 56445 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56445 - __SPLIT__ 2026-06-10 08:29:08,534 - 56445 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56445 - __SPLIT__ 2026-06-10 08:29:08,549 - 56445 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-10 08:29:08,549 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:08,891 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:08,891 - 56445 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-10 08:29:08,891 - 56445 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56445;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:08,922 - 56445 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 08:29:08,922 - 56445 - 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 = 56445), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56445), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56445 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-10 08:29:08,972 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:08,973 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56445;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,003 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:09,007 - 56445 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-10 08:29:09,008 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13930... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,044 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:09,044 - 56445 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-10 08:29:09,047 - 56445 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-10 08:29:09,047 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,078 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:09,078 - 56445 - 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-10 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId = 106155 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,112 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:09,190 - 56445 - src.utils.log - INFO - Generating work orders for setup: 106155 - __SPLIT__ 2026-06-10 08:29:09,205 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11440;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,235 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:09,243 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11524;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,271 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:09,302 - 56445 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-10 08:29:09,307 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=146 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,336 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:09,338 - 56445 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-10 08:29:09,338 - 56445 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-10 08:29:09,338 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,434 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,434 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,489 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,489 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,545 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,545 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,601 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,601 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,656 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,657 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,712 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,712 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,745 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,745 - 56445 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 106155 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,831 - 56445 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:09,831 - 56445 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:09,831 - 56445 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:09,907 - 56445 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-10 08:29:10,072 - 56445 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-10 08:29:10,072 - 56445 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-10 12:12:22.627' and ServiceSetupId = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,128 - 56445 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:10,128 - 56445 - src.utils.log - INFO - Id's of work order inserted to DB: [578356 578357] - __SPLIT__ 2026-06-10 08:29:10,128 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,157 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:10,157 - 56445 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-10 08:29:10,158 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,191 - 56445 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 08:29:10,191 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,220 - 56445 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 08:29:10,227 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,259 - 56445 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:10,261 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,290 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:10,290 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,320 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:10,320 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,350 - 56445 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:10,352 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,380 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:10,380 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,579 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:10,579 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,608 - 56445 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:10,622 - 56445 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:10,623 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578356, 578357) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,651 - 56445 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:10,652 - 56445 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,701 - 56445 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-10 08:29:10,810 - 56445 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-10 08:29:10,810 - 56445 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,810 - 56445 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-10 08:29:10,810 - 56445 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,811 - 56445 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-10 08:29:10,811 - 56445 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,811 - 56445 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-10 08:29:10,811 - 56445 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,811 - 56445 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:10,811 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578356, 578357) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,838 - 56445 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:10,839 - 56445 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:10,886 - 56445 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-10 08:29:10,993 - 56445 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-10 08:29:10,993 - 56445 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-10 08:29:10,993 - 56445 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:10,994 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578356 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:11,022 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:11,023 - 56445 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:11,073 - 56445 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-10 08:29:11,184 - 56445 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-10 08:29:11,185 - 56445 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-10 08:29:11,185 - 56445 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:11,185 - 56445 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578357 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:11,212 - 56445 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:11,213 - 56445 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:11,248 - 56445 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-10 08:29:11,359 - 56445 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-10 08:29:11,359 - 56445 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-10 08:29:11,359 - 56445 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56445;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:11,387 - 56445 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 08:29:11,387 - 56445 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-10 08:29:11,387 - 56445 - src.utils.log - INFO - Time took to perform operation: 2.85 - __SPLIT__ 2026-06-10 08:29:21,188 - [56445] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578356, 578357] user_id=44506 company_id=146 project_id=[56445] publish_all=False - __SPLIT__ 2026-06-10 08:29:21,190 - [56445] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578356, 578357] user_id=44506 company_id=146 project_id=[56445] publish_all=False - __SPLIT__ 2026-06-10 08:29:21,190 - [56445] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56445] - __SPLIT__ 2026-06-10 08:29:21,204 - [56445] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-10 08:29:21,204 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,445 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:21,445 - [56445] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-10 08:29:21,445 - [56445] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56445;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,473 - [56445] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 08:29:21,473 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,503 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:21,504 - [56445] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-10 08:29:21,504 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106155 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,539 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,540 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106155 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,571 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:21,571 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 146 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 106155 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,605 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:21,609 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,637 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,637 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,664 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:21,664 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 146; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,692 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,692 - [56445] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,720 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,720 - [56445] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 146 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,748 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,752 - [56445] - 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 = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,782 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,784 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,811 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,811 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2328' and a.CompanyId = 134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,838 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:21,841 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('56499', '56500') AND CompanyId = 146 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,871 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:21,871 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:21,963 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-10 08:29:22,115 - [56445] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-10 08:29:22,128 - [56445] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-10 08:29:22,129 - [56445] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 146 AND ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,158 - [56445] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 08:29:22,160 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('56499', '56500') AND wo.AccountNumber = '2328' AND wo.CompanyId = 146 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-10 08:29:22,191 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:22,191 - [56445] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-10 08:29:22,191 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,244 - [56445] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-06-10 08:29:22,244 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,494 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:22,494 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,543 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:22,543 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,574 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:22,574 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,605 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:22,606 - [56445] - 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 (578356, 578357)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,645 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:22,645 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578356, 578357) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,674 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:22,674 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578356, 578357);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,701 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:22,704 - [56445] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-10 08:29:22,715 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,741 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:22,744 - [56445] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1179 AND CompanyId = 146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,772 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:22,774 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,801 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:22,803 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:22,803 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:22,865 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-10 08:29:22,981 - [56445] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-10 08:29:22,983 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 106155 AND WorkOrderNo IN ('369498', '9536753') AND GenerateWorkOrderHistoryId = 56445;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-10 08:29:23,080 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:23,081 - [56445] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-06-10 08:29:23,085 - [56445] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-10 08:29:23,085 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:23,085 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,132 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-10 08:29:23,243 - [56445] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-10 08:29:23,243 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:23,243 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,290 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-06-10 08:29:23,396 - [56445] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-06-10 08:29:23,396 - [56445] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-10 08:29:23,396 - [56445] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-10 08:29:23,396 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:23,396 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,442 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-10 08:29:23,544 - [56445] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-10 08:29:23,544 - [56445] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-10 08:29:23,544 - [56445] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-10 08:29:23,544 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:23,544 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,592 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-10 08:29:23,698 - [56445] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-10 08:29:23,698 - [56445] - 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 = 106155... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,724 - [56445] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-10 08:29:23,730 - [56445] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-06-10 08:29:23,731 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,790 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-10 08:29:23,897 - [56445] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-10 08:29:23,910 - [56445] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-10 08:29:23,910 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 146 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-10 04:29:23.726';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,949 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:23,951 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:23,978 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:23,985 - [56445] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-06-10 04:29:23.726'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-10 08:29:24,057 - [56445] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-10 08:29:24,062 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:24,062 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,111 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-06-10 08:29:24,217 - [56445] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-10 08:29:24,218 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('56499', '56500')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,297 - [56445] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-10 08:29:24,305 - [56445] - 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 = 106155 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,335 - [56445] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 08:29:24,335 - [56445] - 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 = 106155 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,364 - [56445] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-10 08:29:24,365 - [56445] - 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 = 106155 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,392 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:24,393 - [56445] - 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 = 106155 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,420 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:24,434 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,461 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:24,466 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,492 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:24,501 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 106155;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,528 - [56445] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-10 08:29:24,536 - [56445] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-10 08:29:24,536 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:24,536 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,581 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-10 08:29:24,683 - [56445] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-10 08:29:24,684 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:24,684 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,731 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceCharges - __SPLIT__ 2026-06-10 08:29:24,844 - [56445] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-10 08:29:24,844 - [56445] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-10 08:29:24,844 - [56445] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:24,888 - [56445] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.DiscountApplied - __SPLIT__ 2026-06-10 08:29:24,988 - [56445] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-10 08:29:24,988 - [56445] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-10 08:29:24,988 - [56445] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-10 08:29:24,988 - [56445] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56445 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,016 - [56445] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-10 08:29:25,022 - [56445] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-10 08:29:25,035 - [56445] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_38431484f7 - __SPLIT__ 2026-06-10 08:29:25,064 - [56445] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_38431484f7 - __SPLIT__ 2026-06-10 08:29:25,090 - [56445] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-10 08:29:25,108 - [56445] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-10 08:29:25,124 - [56445] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_38431484f7 - __SPLIT__ 2026-06-10 08:29:25,124 - [56445] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_38431484f7 - __SPLIT__ 2026-06-10 08:29:25,124 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56445 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,151 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,151 - [56445] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-10 08:29:25,151 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,228 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,228 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,292 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,292 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,321 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,321 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,365 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,365 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,397 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,397 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,455 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,455 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,481 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,481 - [56445] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578356, 578357) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,588 - [56445] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-10 08:29:25,588 - [56445] - src.utils.log - INFO - Work order published ids: (578356, 578357) - __SPLIT__ 2026-06-10 08:29:25,588 - [56445] - src.utils.log - INFO - Time took to perform operation in publishing [56445]: 4.4 - __SPLIT__ 2026-06-10 08:29:25,588 - [56445] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56445] - __SPLIT__ 2026-06-10 08:29:25,588 - [56445] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-10 04:29:25.588' WHERE CompanyId = 146 AND GenerateWorkOrderHistoryId = 56445;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-10 08:29:25,616 - [56445] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 09:38:55,191 - 56449 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56449 - __SPLIT__ 2026-06-11 09:38:55,192 - 56449 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56449 - __SPLIT__ 2026-06-11 09:38:55,193 - 56449 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-11 09:38:55,195 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,398 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:55,399 - 56449 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-11 09:38:55,399 - 56449 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,429 - 56449 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 09:38:55,429 - 56449 - 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 = 56449), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56449), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56449 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-11 09:38:55,483 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:55,483 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,514 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:55,516 - 56449 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-11 09:38:55,516 - 56449 - 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 = 14828... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,552 - 56449 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-11 09:38:55,553 - 56449 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-11 09:38:55,555 - 56449 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-11 09:38:55,555 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,584 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:55,585 - 56449 - 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-11 00:00:00' and ServiceDate <= '2031-12-31 00:00:00' and ServiceSetupId = 95356 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,619 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:55,699 - 56449 - src.utils.log - INFO - Generating work orders for setup: 95356 - __SPLIT__ 2026-06-11 09:38:55,747 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,777 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:55,826 - 56449 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-11 09:38:55,894 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:55,923 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:55,924 - 56449 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-11 09:38:55,925 - 56449 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-11 09:38:55,925 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,101 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,101 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,191 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,191 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,258 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,258 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,329 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,329 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,391 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,391 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,732 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,732 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:56,770 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:56,770 - 56449 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 95356 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,389 - 56449 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:38:58,389 - 56449 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:38:58,389 - 56449 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,477 - 56449 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-11 09:38:58,641 - 56449 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-11 09:38:58,641 - 56449 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-10 12:12:22.357' and ServiceSetupId = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,697 - 56449 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-11 09:38:58,698 - 56449 - src.utils.log - INFO - Id's of work order inserted to DB: [578363 578364 578365 578366] - __SPLIT__ 2026-06-11 09:38:58,698 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,727 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:58,727 - 56449 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-11 09:38:58,727 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,758 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:58,758 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,788 - 56449 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:38:58,795 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,827 - 56449 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 09:38:58,829 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,858 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:58,858 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,888 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:58,888 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,917 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:58,918 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:58,946 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:58,946 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,184 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:59,184 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,214 - 56449 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-11 09:38:59,290 - 56449 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:38:59,291 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578363, 578364, 578365, 578366) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,321 - 56449 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-11 09:38:59,321 - 56449 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,367 - 56449 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-11 09:38:59,477 - 56449 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-11 09:38:59,477 - 56449 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,477 - 56449 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-11 09:38:59,477 - 56449 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,477 - 56449 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:38:59,477 - 56449 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578363, 578364, 578365, 578366) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,504 - 56449 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-11 09:38:59,505 - 56449 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,553 - 56449 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-11 09:38:59,665 - 56449 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-11 09:38:59,666 - 56449 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-11 09:38:59,666 - 56449 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:38:59,694 - 56449 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 09:38:59,695 - 56449 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-11 09:38:59,695 - 56449 - src.utils.log - INFO - Time took to perform operation: 4.5 - __SPLIT__ 2026-06-11 09:42:06,431 - [56449] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578366] user_id=44502 company_id=145 project_id=[56449] publish_all=False - __SPLIT__ 2026-06-11 09:42:06,431 - [56449] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578366] user_id=44502 company_id=145 project_id=[56449] publish_all=False - __SPLIT__ 2026-06-11 09:42:06,431 - [56449] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56449] - __SPLIT__ 2026-06-11 09:42:06,432 - [56449] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-11 09:42:06,432 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,608 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:06,608 - [56449] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-11 09:42:06,608 - [56449] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,636 - [56449] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 09:42:06,636 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,665 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,666 - [56449] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-11 09:42:06,666 - [56449] - 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 = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95356 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,700 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,700 - [56449] - 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 = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95356 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,735 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:06,735 - [56449] - 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 = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 95356 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,769 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:06,772 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,800 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,800 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,826 - [56449] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 09:42:06,826 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,853 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,853 - [56449] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,880 - [56449] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 09:42:06,884 - [56449] - 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 = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,913 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,915 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,940 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,941 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2543' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,966 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:06,969 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '225713' AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:06,994 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:06,994 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,079 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-11 09:42:07,219 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-11 09:42:07,231 - [56449] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-11 09:42:07,233 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '225713' AND wo.AccountNumber = '2543' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-06-11 09:42:07,263 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:07,263 - [56449] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-11 09:42:07,263 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,303 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:07,303 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,348 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:07,348 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,382 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:07,383 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,409 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:07,409 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,436 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:07,436 - [56449] - 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 = 578366... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,467 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:07,467 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 578366 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,494 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:07,494 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 578366;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,520 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:07,522 - [56449] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-11 09:42:07,532 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,558 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:07,558 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,584 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:07,587 - [56449] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:42:07,587 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,646 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-11 09:42:07,770 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-11 09:42:07,771 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 95356 AND WorkOrderNo = '2608537' AND GenerateWorkOrderHistoryId = 56449; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,863 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:07,869 - [56449] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-11 09:42:07,869 - [56449] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:42:07,869 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:07,935 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-11 09:42:08,039 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-11 09:42:08,039 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-11 09:42:08,040 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-11 09:42:08,040 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-11 09:42:08,040 - [56449] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:42:08,040 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,095 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-11 09:42:08,194 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-11 09:42:08,194 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-11 09:42:08,194 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-11 09:42:08,194 - [56449] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:42:08,194 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,241 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-11 09:42:08,339 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-11 09:42:08,339 - [56449] - 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 = 95356... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,365 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:08,370 - [56449] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-06-11 09:42:08,372 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,427 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-11 09:42:08,538 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-11 09:42:08,550 - [56449] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-11 09:42:08,551 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-11 05:42:08.367';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,609 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:08,611 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,638 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:08,644 - [56449] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-06-11 05:42:08.367'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-06-11 09:42:08,723 - [56449] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 09:42:08,728 - [56449] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:42:08,728 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,775 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-11 09:42:08,873 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-11 09:42:08,873 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '225713'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,960 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:08,969 - [56449] - 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 = 95356 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:08,997 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:08,997 - [56449] - 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 = 95356 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,024 - [56449] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 09:42:09,025 - [56449] - 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 = 95356 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,052 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:09,052 - [56449] - 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 = 95356 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,079 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:09,090 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,117 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:09,121 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,147 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:09,150 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 95356;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,176 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:09,176 - [56449] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-11 09:42:09,177 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-11 09:42:09,177 - [56449] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 09:42:09,177 - [56449] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,224 - [56449] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-06-11 09:42:09,318 - [56449] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-11 09:42:09,319 - [56449] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-11 09:42:09,319 - [56449] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-11 09:42:09,319 - [56449] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-11 09:42:09,319 - [56449] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56449 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,350 - [56449] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 09:42:09,356 - [56449] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-11 09:42:09,369 - [56449] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_755f22f799 - __SPLIT__ 2026-06-11 09:42:09,396 - [56449] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_755f22f799 - __SPLIT__ 2026-06-11 09:42:09,421 - [56449] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-11 09:42:09,439 - [56449] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-11 09:42:09,457 - [56449] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_755f22f799 - __SPLIT__ 2026-06-11 09:42:09,457 - [56449] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_755f22f799 - __SPLIT__ 2026-06-11 09:42:09,458 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56449 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,482 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,483 - [56449] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-11 09:42:09,483 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,556 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,556 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,617 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,617 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,645 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,646 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,687 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,687 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,718 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,718 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,775 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,775 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,800 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,801 - [56449] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578366 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,869 - [56449] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 09:42:09,869 - [56449] - src.utils.log - INFO - Work order published ids: (578366,) - __SPLIT__ 2026-06-11 09:42:09,869 - [56449] - src.utils.log - INFO - Time took to perform operation in publishing [56449]: 3.44 - __SPLIT__ 2026-06-11 09:42:09,869 - [56449] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56449] - __SPLIT__ 2026-06-11 09:42:09,869 - [56449] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-11 05:42:09.869' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 09:42:09,896 - [56449] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:00,315 - 11972 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11972 - __SPLIT__ 2026-06-11 10:47:00,316 - 11972 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-11 10:47:00,316 - 11972 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,524 - 11972 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 10:47:00,524 - 11972 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-11 10:47:00,524 - 11972 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11972 - __SPLIT__ 2026-06-11 10:47:00,524 - 11972 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,555 - 11972 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:00,555 - 11972 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,587 - 11972 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:00,587 - 11972 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 146 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2364' and ss.ServiceSetupId = 106172 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,628 - 11972 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-11 10:47:00,632 - 11972 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-06-11 10:47:00,633 - 11972 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-11 10:47:00,633 - 11972 - 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 = 14944... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,671 - 11972 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-11 10:47:00,671 - 11972 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-11 10:47:00,678 - 11972 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 106172 AND TransactionDate BETWEEN '2026-06-11 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,717 - 11972 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 10:47:00,723 - 11972 - 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-11 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 = 106172 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,762 - 11972 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:00,775 - 11972 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:00,775 - 11972 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:00,832 - 11972 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-06-11 10:47:00,967 - 11972 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-06-11 10:47:00,967 - 11972 - src.utils.log - INFO - - __SPLIT__ 2026-06-11 10:47:00,967 - 11972 - src.utils.log - INFO - Total invoice generated: 2 - __SPLIT__ 2026-06-11 10:47:00,967 - 11972 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-06-10 06:42:22.654' and ServiceSetupId = 106172 and GenerateWorkOrderHistoryId= 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,006 - 11972 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 10:47:01,012 - 11972 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:01,013 - 11972 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,062 - 11972 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-06-11 10:47:01,243 - 11972 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-06-11 10:47:01,243 - 11972 - 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 (264100, 264101);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,279 - 11972 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 10:47:01,280 - 11972 - 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 = 106172 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,312 - 11972 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-11 10:47:01,318 - 11972 - 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 = 13930;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,348 - 11972 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:01,349 - 11972 - 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 = 14944;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,379 - 11972 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:01,384 - 11972 - 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 = 106172;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,415 - 11972 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-11 10:47:01,422 - 11972 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:01,422 - 11972 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,476 - 11972 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-11 10:47:01,590 - 11972 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-11 10:47:01,590 - 11972 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:01,590 - 11972 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,642 - 11972 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-06-11 10:47:01,756 - 11972 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-06-11 10:47:01,756 - 11972 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,786 - 11972 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:01,786 - 11972 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-11 06:47:01.786' WHERE GenerateInvoiceHistoryId = 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:01,817 - 11972 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:01,817 - 11972 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-11 10:47:01,817 - 11972 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:11972 - Time took: 1.5 - __SPLIT__ 2026-06-11 10:47:14,904 - [11972] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[264100] user_id=44506 company_id=146 project_id=[11972] publish_all=False - __SPLIT__ 2026-06-11 10:47:14,905 - [11972] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-06-11 10:47:14,905 - [11972] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-06-11 10:47:14,906 - [11972] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-11 10:47:14,906 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,098 - [11972] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 10:47:15,098 - [11972] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-11 10:47:15,098 - [11972] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-06-11 06:47:15.098' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,135 - [11972] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:15,136 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 264100;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,178 - [11972] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:15,179 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 264100;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,209 - [11972] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:15,211 - [11972] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,278 - [11972] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-11 10:47:15,396 - [11972] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-11 10:47:15,412 - [11972] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-11 10:47:15,412 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,558 - [11972] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:15,560 - [11972] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-11 10:47:15,641 - [11972] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:15,643 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,672 - [11972] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:15,673 - [11972] - src.utils.log - INFO - 1 Invoice Generated : [74314] - __SPLIT__ 2026-06-11 10:47:15,673 - [11972] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '74315' WHERE CompanyId = 146 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,701 - [11972] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:15,702 - [11972] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:15,702 - [11972] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,751 - [11972] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-06-11 10:47:15,854 - [11972] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-11 10:47:15,855 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 843226;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,882 - [11972] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 10:47:15,884 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 264016;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,919 - [11972] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-11 10:47:15,919 - [11972] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 264016;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:15,947 - [11972] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-11 10:47:15,954 - [11972] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:15,955 - [11972] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,002 - [11972] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceCharges - __SPLIT__ 2026-06-11 10:47:16,104 - [11972] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-11 10:47:16,105 - [11972] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:16,105 - [11972] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,149 - [11972] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-06-11 10:47:16,248 - [11972] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-06-11 10:47:16,249 - [11972] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 10:47:16,249 - [11972] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,293 - [11972] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-06-11 10:47:16,383 - [11972] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-06-11 10:47:16,383 - [11972] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 264016 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,421 - [11972] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 10:47:16,421 - [11972] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 264016 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,498 - [11972] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 10:47:16,498 - [11972] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 264016 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,533 - [11972] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 10:47:16,533 - [11972] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 264100 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,564 - [11972] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 10:47:16,564 - [11972] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-11 06:47:15.098' WHERE CompanyId = 146 AND GenerateInvoiceHistoryId = 11972;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 10:47:16,592 - [11972] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 10:47:16,592 - [11972] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 1.69 - __SPLIT__ 2026-06-11 21:24:55,784 - 25942 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=25942 - __SPLIT__ 2026-06-11 21:24:55,784 - 25942 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 25942 - __SPLIT__ 2026-06-11 21:24:55,785 - 25942 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-11 21:24:55,785 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:55,970 - 25942 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:24:55,970 - 25942 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-11 21:24:55,970 - 25942 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-11 21:24:55,971 - 25942 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-11 21:24:55,971 - 25942 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 25942;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:56,206 - 25942 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 21:24:56,206 - 25942 - 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 = 25942), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 25942), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 25942 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-11 21:24:56,379 - 25942 - src.utils.log - INFO - βœ… Fetched 47 rows - __SPLIT__ 2026-06-11 21:24:56,380 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 25942;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:56,407 - 25942 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:24:56,410 - 25942 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-11 21:24:56,410 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (14819, 14553, 14693, 14664, 14600, 14666, 14635, 14668, 14604, 14638, 14634, 14571, 14579, 14775, 14648, 14649, 14650, 14488)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:56,463 - 25942 - src.utils.log - INFO - βœ… Fetched 296 rows - __SPLIT__ 2026-06-11 21:24:56,463 - 25942 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-11 21:24:56,466 - 25942 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-11 21:24:56,467 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:56,498 - 25942 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:24:56,498 - 25942 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:56,532 - 25942 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:24:56,694 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67481 - __SPLIT__ 2026-06-11 21:24:56,702 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67515 - __SPLIT__ 2026-06-11 21:24:56,707 - 25942 - src.utils.log - INFO - Generating work orders for setup: 61194 - __SPLIT__ 2026-06-11 21:24:56,713 - 25942 - src.utils.log - INFO - Generating work orders for setup: 61837 - __SPLIT__ 2026-06-11 21:24:56,720 - 25942 - src.utils.log - INFO - Generating work orders for setup: 61202 - __SPLIT__ 2026-06-11 21:24:56,727 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67501 - __SPLIT__ 2026-06-11 21:24:56,733 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67521 - __SPLIT__ 2026-06-11 21:24:56,738 - 25942 - src.utils.log - INFO - Generating work orders for setup: 62923 - __SPLIT__ 2026-06-11 21:24:56,744 - 25942 - src.utils.log - INFO - Generating work orders for setup: 28902 - __SPLIT__ 2026-06-11 21:24:56,745 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67445 - __SPLIT__ 2026-06-11 21:24:56,752 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67448 - __SPLIT__ 2026-06-11 21:24:56,758 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67459 - __SPLIT__ 2026-06-11 21:24:56,764 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67499 - __SPLIT__ 2026-06-11 21:24:56,770 - 25942 - src.utils.log - INFO - Generating work orders for setup: 30307 - __SPLIT__ 2026-06-11 21:24:56,777 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67523 - __SPLIT__ 2026-06-11 21:24:56,788 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67447 - __SPLIT__ 2026-06-11 21:24:56,794 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67455 - __SPLIT__ 2026-06-11 21:24:56,801 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67478 - __SPLIT__ 2026-06-11 21:24:56,806 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67496 - __SPLIT__ 2026-06-11 21:24:56,812 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67508 - __SPLIT__ 2026-06-11 21:24:56,818 - 25942 - src.utils.log - INFO - Generating work orders for setup: 31979 - __SPLIT__ 2026-06-11 21:24:56,824 - 25942 - src.utils.log - INFO - Generating work orders for setup: 65786 - __SPLIT__ 2026-06-11 21:24:56,832 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67479 - __SPLIT__ 2026-06-11 21:24:56,839 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67451 - __SPLIT__ 2026-06-11 21:24:56,845 - 25942 - src.utils.log - INFO - Generating work orders for setup: 46310 - __SPLIT__ 2026-06-11 21:24:56,845 - 25942 - src.utils.log - INFO - Generating work orders for setup: 67463 - __SPLIT__ 2026-06-11 21:24:56,852 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11434.0, 11427.0, 11429.0, -1.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:56,878 - 25942 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-11 21:24:56,946 - 25942 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-11 21:24:56,997 - 25942 - 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-11 21:24:57,022 - 25942 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:24:57,024 - 25942 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-11 21:24:57,024 - 25942 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-11 21:24:57,024 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,066 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,066 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,103 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,103 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,136 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,136 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,230 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,230 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,274 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,274 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,311 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,311 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,341 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,341 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,384 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,384 - 25942 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM [ServiceCore].[WorkOrderSkipMonthAutoGeneration] WHERE ServiceSetupId in (31979, 67445) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,416 - 25942 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:24:57,416 - 25942 - src.utils.log - INFO - Deleted WorkOrderSkipMonthAutoGeneration entry - __SPLIT__ 2026-06-11 21:24:57,416 - 25942 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:24:57,416 - 25942 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSkipMonthAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,462 - 25942 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderSkipMonthAutoGeneration - __SPLIT__ 2026-06-11 21:24:57,546 - 25942 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderSkipMonthAutoGeneration in 1 batches - __SPLIT__ 2026-06-11 21:24:57,546 - 25942 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:24:57,546 - 25942 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,617 - 25942 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-11 21:24:57,915 - 25942 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-11 21:24:57,916 - 25942 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 20 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-10 12:12:22.627' and ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,947 - 25942 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:24:57,947 - 25942 - src.utils.log - INFO - Id's of work order inserted to DB: [678508 678509 678510 678511 678512 678513 678514 678515 678516 678517 678518 678519 678520 678521 678522 678523 678524 678525 678526 678527] - __SPLIT__ 2026-06-11 21:24:57,947 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67459, 64133, 67463, 65673, 61194, 61837, 61202, 59283, 67478, 67479, 67481, 26395, 64415, 45728, 47009, 51623, 65191, 67496, 67499, 67501, 40627, 67508, 54453, 39481, 67515, 48573, 67521, 67523, 62405, 62923, 48334, 63573, 23134, 64994, 30307, 46434, 47333, 28902, 46310, 47462, 31979, 67445, 67447, 67448, 65786, 67451, 67455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:57,974 - 25942 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:24:57,974 - 25942 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-11 21:24:57,975 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,004 - 25942 - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-06-11 21:24:58,004 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,039 - 25942 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-06-11 21:24:58,046 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,111 - 25942 - src.utils.log - INFO - βœ… Fetched 34 rows - __SPLIT__ 2026-06-11 21:24:58,112 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,146 - 25942 - src.utils.log - INFO - βœ… Fetched 26 rows - __SPLIT__ 2026-06-11 21:24:58,148 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,176 - 25942 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:24:58,176 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,204 - 25942 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:24:58,204 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,235 - 25942 - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-11 21:24:58,236 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,680 - 25942 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:24:58,680 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (67459, 67463, 61837, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523, 30307, 67447, 67448, 65786, 67451, 67455);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,709 - 25942 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:24:58,725 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('678523', '678524', '678514', '678522', '678511', '678518', '678526', '678513', '678512', '678515', '678521', '678516', '678510', '678525', '678519', '678527', '678508', '678517', '678520') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,752 - 25942 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:24:58,752 - 25942 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,795 - 25942 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,796 - 25942 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:24:58,797 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678524, 678525, 678526, 678527) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,823 - 25942 - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:24:58,824 - 25942 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 19 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:58,869 - 25942 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 19) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-11 21:24:58,974 - 25942 - src.utils.log - INFO - βœ… All 19 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-11 21:24:58,975 - 25942 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,975 - 25942 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-11 21:24:58,975 - 25942 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-11 21:24:58,975 - 25942 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:24:58,975 - 25942 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:59,001 - 25942 - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:24:59,002 - 25942 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:59,071 - 25942 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-11 21:24:59,202 - 25942 - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-11 21:24:59,202 - 25942 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-11 21:24:59,202 - 25942 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 25942;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:24:59,233 - 25942 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 21:24:59,233 - 25942 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-11 21:24:59,233 - 25942 - src.utils.log - INFO - Time took to perform operation: 3.45 - __SPLIT__ 2026-06-11 21:25:21,158 - [25942] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[678508, 678509, 678511, 678510, 678512, 678513, 678515, 678516, 678514, 678520, 678521, 678519, 678518, 678517, 678526, 678527, 678522, 678525, 678524, 678523] user_id=43606 company_id=133 project_id=[25942] publish_all=False - __SPLIT__ 2026-06-11 21:25:21,159 - [25942] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[678508, 678509, 678511, 678510, 678512, 678513, 678515, 678516, 678514, 678520, 678521, 678519, 678518, 678517, 678526, 678527, 678522, 678525, 678524, 678523] user_id=43606 company_id=133 project_id=[25942] publish_all=False - __SPLIT__ 2026-06-11 21:25:21,159 - [25942] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [25942] - __SPLIT__ 2026-06-11 21:25:21,160 - [25942] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-11 21:25:21,160 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,363 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:21,364 - [25942] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-11 21:25:21,364 - [25942] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-11 21:25:21,365 - [25942] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-11 21:25:21,365 - [25942] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 25942;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,567 - [25942] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 21:25:21,567 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (678508, 678509, 678511, 678510, 678512, 678513, 678515, 678516, 678514, 678520, 678521, 678519, 678518, 678517, 678526, 678527, 678522, 678525, 678524, 678523)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,601 - [25942] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:25:21,602 - [25942] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-11 21:25:21,602 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,642 - [25942] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:25:21,642 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,678 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:21,678 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,717 - [25942] - src.utils.log - INFO - βœ… Fetched 18 rows - __SPLIT__ 2026-06-11 21:25:21,723 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,755 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:21,755 - [25942] - 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-11 21:25:21,784 - [25942] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 21:25:21,784 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,815 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:21,816 - [25942] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 20 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,846 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:21,846 - [25942] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 20 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,876 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:21,880 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,916 - [25942] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:25:21,926 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,955 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:21,955 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo in ('28309', '28266', '301196', '199', '27539', '21068', '11324', '12091', '276891', '296064', '27612', '28236', '28400', '28079', '1801', '27513', '9868', '28246', '327922') and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:21,987 - [25942] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:25:21,989 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('516704', '516705', '516706', '516707', '516708', '516709', '516710', '516711', '516712', '516713', '516714', '516715', '516716', '516717', '516718', '516719', '516720', '516721', '516722', '516723') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,022 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,022 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,120 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-11 21:25:22,509 - [25942] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-11 21:25:22,523 - [25942] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-11 21:25:22,525 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('516704', '516705', '516706', '516707', '516708', '516709', '516710', '516711', '516712', '516713', '516714', '516715', '516716', '516717', '516718', '516719', '516720', '516721', '516722', '516723') AND wo.AccountNumber IN ('28079', '276891', '27612', '1801', '28246', '327922', '301196', '296064', '28400', '28309', '28266', '11324', '28236', '12091', '27539', '27513', '21068', '199', '9868') AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-06-11 21:25:22,561 - [25942] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:25:22,562 - [25942] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-11 21:25:22,562 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,595 - [25942] - src.utils.log - INFO - βœ… Fetched 32 rows - __SPLIT__ 2026-06-11 21:25:22,596 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,627 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,627 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,658 - [25942] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:25:22,659 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,688 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,689 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,731 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,731 - [25942] - 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 (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,814 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,815 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,849 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,849 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,879 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:22,881 - [25942] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-11 21:25:22,892 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:22,921 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:22,922 - [25942] - 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-11 21:25:22,951 - [25942] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-11 21:25:22,955 - [25942] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:25:22,955 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:23,027 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-11 21:25:23,213 - [25942] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-11 21:25:23,215 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) AND WorkOrderNo IN ('7940053', '3386217', '5203347', '5232086', '1107545', '9997147', '9980297', '1629127', '7766399', '9619929', '2808874', '1484657', '9683190', '1918389', '9318527', '9896007', '4564685', '4854318', '7763663', '8355172') AND GenerateWorkOrderHistoryId = 25942;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-06-11 21:25:23,341 - [25942] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:25:23,342 - [25942] - src.utils.log - INFO - 🏁 Final merged rows: 20 - __SPLIT__ 2026-06-11 21:25:23,348 - [25942] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-11 21:25:23,348 - [25942] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:25:23,348 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:23,405 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-11 21:25:23,545 - [25942] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-11 21:25:23,545 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-11 21:25:23,545 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-06-11 21:25:23,545 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-11 21:25:23,545 - [25942] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:25:23,545 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 19 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:23,597 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 19) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-11 21:25:23,715 - [25942] - src.utils.log - INFO - βœ… All 19 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-11 21:25:23,716 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-11 21:25:23,716 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-11 21:25:23,716 - [25942] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:25:23,716 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:23,766 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-11 21:25:23,907 - [25942] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-11 21:25:23,907 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:23,937 - [25942] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-06-11 21:25:23,942 - [25942] - src.utils.log - INFO - Size of Transaction: 20 - __SPLIT__ 2026-06-11 21:25:23,943 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:24,007 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-11 21:25:24,225 - [25942] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-11 21:25:24,239 - [25942] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-11 21:25:24,240 - [25942] - 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) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-11 17:25:23.938';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:24,628 - [25942] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:25:24,630 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (30307, 61837, 65786, 67447, 67448, 67451, 67455, 67459, 67463, 67478, 67479, 67481, 67496, 67499, 67501, 67508, 67515, 67521, 67523);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:24,662 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:24,672 - [25942] - 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) AND CreatedDate = '2026-06-11 17:25:23.938'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-11 21:25:24,993 - [25942] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-11 21:25:24,997 - [25942] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:25:24,997 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:25,051 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into Billing.Invoice - __SPLIT__ 2026-06-11 21:25:25,194 - [25942] - src.utils.log - INFO - βœ… All 20 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-11 21:25:25,194 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('516705', '516707', '516712', '516717', '516720', '516710', '516709', '516719', '516723', '516715', '516711', '516716', '516714', '516706', '516722', '516713', '516718', '516721', '516708', '516704')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,110 - [25942] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-06-11 21:25:26,119 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,152 - [25942] - src.utils.log - INFO - βœ… Fetched 31 rows - __SPLIT__ 2026-06-11 21:25:26,153 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,189 - [25942] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-06-11 21:25:26,190 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,223 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:26,224 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,261 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:26,275 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,307 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:26,312 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,341 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:26,345 - [25942] - 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 (67523, 30307, 67499, 61837, 67455, 67451, 67479, 65786, 67508, 67496, 67478, 67481, 67447, 67515, 67459, 67448, 67521, 67501, 67463);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,374 - [25942] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-11 21:25:26,374 - [25942] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-11 21:25:26,374 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-11 21:25:26,374 - [25942] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-11 21:25:26,374 - [25942] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 32 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,425 - [25942] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 32) into Billing.InvoiceCharges - __SPLIT__ 2026-06-11 21:25:26,575 - [25942] - src.utils.log - INFO - βœ… All 32 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-11 21:25:26,576 - [25942] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-11 21:25:26,576 - [25942] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-11 21:25:26,576 - [25942] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-11 21:25:26,576 - [25942] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 25942 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:26,611 - [25942] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-11 21:25:26,616 - [25942] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-11 21:25:26,630 - [25942] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_b0413ce0a0 - __SPLIT__ 2026-06-11 21:25:26,660 - [25942] - src.utils.log - INFO - πŸ“Œ Bulk inserting 21 rows into #tbl_b0413ce0a0 - __SPLIT__ 2026-06-11 21:25:26,958 - [25942] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-11 21:25:26,978 - [25942] - src.utils.log - INFO - βœ” SQL reported affected rows: 21 - __SPLIT__ 2026-06-11 21:25:26,999 - [25942] - src.utils.log - INFO - πŸ” Verified successfully updated 21 rows via #tbl_b0413ce0a0 - __SPLIT__ 2026-06-11 21:25:26,999 - [25942] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_b0413ce0a0 - __SPLIT__ 2026-06-11 21:25:26,999 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 25942 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,035 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,036 - [25942] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-11 21:25:27,036 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,072 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,072 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,103 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,103 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,133 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,133 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,231 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,231 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,289 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,289 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,321 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,321 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,350 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,350 - [25942] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,455 - [25942] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-11 21:25:27,455 - [25942] - src.utils.log - INFO - Work order published ids: (678508, 678509, 678510, 678511, 678512, 678513, 678514, 678515, 678516, 678517, 678518, 678519, 678520, 678521, 678522, 678523, 678524, 678525, 678526, 678527) - __SPLIT__ 2026-06-11 21:25:27,455 - [25942] - src.utils.log - INFO - Time took to perform operation in publishing [25942]: 6.3 - __SPLIT__ 2026-06-11 21:25:27,455 - [25942] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [25942] - __SPLIT__ 2026-06-11 21:25:27,455 - [25942] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-11 17:25:27.455' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 25942;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-11 21:25:27,485 - [25942] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-12 14:12:34,737 - 56454 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56454 - __SPLIT__ 2026-06-12 14:12:34,737 - 56454 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56454 - __SPLIT__ 2026-06-12 14:12:34,754 - 56454 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-12 14:12:34,754 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,020 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:35,020 - 56454 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-12 14:12:35,020 - 56454 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,047 - 56454 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-12 14:12:35,047 - 56454 - 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 = 56454), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56454), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56454 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-12 14:12:35,103 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:35,104 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,132 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:35,136 - 56454 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-12 14:12:35,136 - 56454 - 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 = 14827... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,170 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:35,170 - 56454 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-12 14:12:35,173 - 56454 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-12 14:12:35,174 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,213 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:35,214 - 56454 - 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-12 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 94918 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,245 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:35,315 - 56454 - src.utils.log - INFO - Generating work orders for setup: 94918 - __SPLIT__ 2026-06-12 14:12:35,352 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = -1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,377 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:35,423 - 56454 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-12 14:12:35,445 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,470 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:35,472 - 56454 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-12 14:12:35,472 - 56454 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-12 14:12:35,472 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,665 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:35,665 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,763 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:35,763 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,836 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:35,836 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,913 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:35,914 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:35,979 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:35,979 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:36,344 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:36,345 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:36,385 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:36,385 - 56454 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 94918 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,048 - 56454 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:12:37,048 - 56454 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:12:37,048 - 56454 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,146 - 56454 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-12 14:12:37,338 - 56454 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-12 14:12:37,338 - 56454 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-10 12:12:22.256' and ServiceSetupId = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,392 - 56454 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:12:37,393 - 56454 - src.utils.log - INFO - Id's of work order inserted to DB: [578451 578452 578453 578454] - __SPLIT__ 2026-06-12 14:12:37,393 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,419 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:37,419 - 56454 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-12 14:12:37,419 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,446 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:37,446 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,472 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:37,478 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,508 - 56454 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-06-12 14:12:37,508 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,534 - 56454 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:12:37,535 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,562 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:37,562 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,588 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:37,588 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,614 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:37,614 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,853 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:37,853 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,881 - 56454 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-12 14:12:37,895 - 56454 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-12 14:12:37,896 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-12 14:12:37,896 - 56454 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-12 14:12:37,896 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-12 14:12:37,896 - 56454 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-12 14:12:37,896 - 56454 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:12:37,896 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578451, 578452, 578453, 578454) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,921 - 56454 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:12:37,921 - 56454 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:37,965 - 56454 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-12 14:12:38,063 - 56454 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-12 14:12:38,063 - 56454 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-12 14:12:38,063 - 56454 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:12:38,063 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578451, 578452, 578453, 578454) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:38,087 - 56454 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:12:38,088 - 56454 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:38,132 - 56454 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-12 14:12:38,231 - 56454 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-12 14:12:38,231 - 56454 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-12 14:12:38,231 - 56454 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-12 14:12:38,231 - 56454 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-12 14:12:38,231 - 56454 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:12:38,232 - 56454 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578451, 578452, 578453, 578454) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:38,255 - 56454 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:12:38,256 - 56454 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:38,310 - 56454 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-12 14:12:38,415 - 56454 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-12 14:12:38,415 - 56454 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-12 14:12:38,415 - 56454 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:12:38,439 - 56454 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-12 14:12:38,439 - 56454 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-12 14:12:38,439 - 56454 - src.utils.log - INFO - Time took to perform operation: 3.7 - __SPLIT__ 2026-06-12 14:14:12,696 - [56454] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578451, 578452, 578453, 578454] user_id=44502 company_id=145 project_id=[56454] publish_all=False - __SPLIT__ 2026-06-12 14:14:12,697 - [56454] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[578451, 578452, 578453, 578454] user_id=44502 company_id=145 project_id=[56454] publish_all=False - __SPLIT__ 2026-06-12 14:14:12,697 - [56454] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [56454] - __SPLIT__ 2026-06-12 14:14:12,698 - [56454] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-12 14:14:12,698 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:12,902 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:12,903 - [56454] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-12 14:14:12,903 - [56454] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:12,934 - [56454] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-12 14:14:12,934 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:12,982 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:12,982 - [56454] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-06-12 14:14:12,982 - [56454] - 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 = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 94918 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,026 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:13,027 - [56454] - 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 = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 94918 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,062 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:13,062 - [56454] - 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 = 145 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 94918 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,101 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:13,104 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,136 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:13,136 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,168 - [56454] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-12 14:14:13,168 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 145; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,200 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:13,200 - [56454] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 4 OUTPUT INSERTED.NextNumber - 4 AS StartNumber WHERE CompanyId = 145 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,234 - [56454] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-12 14:14:13,236 - [56454] - 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 = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,273 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:13,277 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Samsung';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,307 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:13,307 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '2488' and a.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,338 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:13,340 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('225740', '225741', '225742', '225743') AND CompanyId = 145 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,373 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:13,374 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,467 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-06-12 14:14:13,680 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-06-12 14:14:13,695 - [56454] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-12 14:14:13,696 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('225740', '225741', '225742', '225743') AND wo.AccountNumber = '2488' AND wo.CompanyId = 145 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-06-12 14:14:13,732 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:13,732 - [56454] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-06-12 14:14:13,733 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,780 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:13,780 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,830 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:13,831 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,871 - [56454] - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-12 14:14:13,871 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,904 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:13,904 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,939 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:13,939 - [56454] - 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 (578451, 578452, 578453, 578454)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:13,977 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:13,977 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (578451, 578452, 578453, 578454) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,011 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:14,011 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,041 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:14,043 - [56454] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-06-12 14:14:14,059 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 145;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,089 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:14,089 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 145 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,120 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:14,124 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:14,124 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,195 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-06-12 14:14:14,330 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-06-12 14:14:14,331 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 94918 AND WorkOrderNo IN ('3155697', '2126126', '1366498', '7406600') AND GenerateWorkOrderHistoryId = 56454;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-06-12 14:14:14,401 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:14,402 - [56454] - src.utils.log - INFO - 🏁 Final merged rows: 4 - __SPLIT__ 2026-06-12 14:14:14,407 - [56454] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-06-12 14:14:14,407 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:14,407 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,460 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-06-12 14:14:14,587 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-06-12 14:14:14,587 - [56454] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-06-12 14:14:14,587 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:14,587 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,637 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-06-12 14:14:14,757 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-12 14:14:14,759 - [56454] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-06-12 14:14:14,759 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:14,760 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,811 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-06-12 14:14:14,935 - [56454] - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-06-12 14:14:14,935 - [56454] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-06-12 14:14:14,935 - [56454] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-12 14:14:14,935 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:14,935 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:14,990 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-06-12 14:14:15,111 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-06-12 14:14:15,112 - [56454] - 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 = 94918... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,141 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:15,146 - [56454] - src.utils.log - INFO - Size of Transaction: 4 - __SPLIT__ 2026-06-12 14:14:15,149 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,214 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-06-12 14:14:15,349 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-06-12 14:14:15,364 - [56454] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-06-12 14:14:15,364 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913) and t.CompanyId = 145 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-06-12 10:14:15.143';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,455 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:15,457 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,488 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:15,496 - [56454] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913) AND CreatedDate = '2026-06-12 10:14:15.143'; ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-06-12 14:14:15,576 - [56454] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-12 14:14:15,580 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:15,580 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,635 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.Invoice - __SPLIT__ 2026-06-12 14:14:15,779 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-06-12 14:14:15,779 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('225743', '225742', '225741', '225740')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,894 - [56454] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-12 14:14:15,903 - [56454] - 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 = 94918 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,935 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:15,935 - [56454] - 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 = 94918 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:15,971 - [56454] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-12 14:14:15,971 - [56454] - 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 = 94918 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,030 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:16,030 - [56454] - 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 = 94918 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,065 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:16,077 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,106 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:16,112 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,145 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:16,148 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 94918;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,179 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:16,179 - [56454] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-06-12 14:14:16,179 - [56454] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-06-12 14:14:16,179 - [56454] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-12 14:14:16,179 - [56454] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,232 - [56454] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-06-12 14:14:16,364 - [56454] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-06-12 14:14:16,364 - [56454] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-06-12 14:14:16,364 - [56454] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-06-12 14:14:16,365 - [56454] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-06-12 14:14:16,365 - [56454] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56454 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,404 - [56454] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-12 14:14:16,410 - [56454] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-06-12 14:14:16,425 - [56454] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_bda3d8362c - __SPLIT__ 2026-06-12 14:14:16,455 - [56454] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_bda3d8362c - __SPLIT__ 2026-06-12 14:14:16,484 - [56454] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-06-12 14:14:16,506 - [56454] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-06-12 14:14:16,527 - [56454] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_bda3d8362c - __SPLIT__ 2026-06-12 14:14:16,527 - [56454] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_bda3d8362c - __SPLIT__ 2026-06-12 14:14:16,528 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 56454 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,556 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,557 - [56454] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-06-12 14:14:16,557 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,654 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,654 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,734 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,734 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,769 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,769 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,820 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,820 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,859 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,859 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,944 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,944 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:16,975 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:16,975 - [56454] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (578451, 578452, 578453, 578454) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:17,199 - [56454] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-12 14:14:17,199 - [56454] - src.utils.log - INFO - Work order published ids: (578451, 578452, 578453, 578454) - __SPLIT__ 2026-06-12 14:14:17,199 - [56454] - src.utils.log - INFO - Time took to perform operation in publishing [56454]: 4.5 - __SPLIT__ 2026-06-12 14:14:17,199 - [56454] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [56454] - __SPLIT__ 2026-06-12 14:14:17,199 - [56454] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-06-12 10:14:17.199' WHERE CompanyId = 145 AND GenerateWorkOrderHistoryId = 56454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-12 14:14:17,230 - [56454] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-15 18:08:08,443 - 26016 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=26016 - __SPLIT__ 2026-06-15 18:08:10,330 - 26016 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 26016 - __SPLIT__ 2026-06-15 18:08:10,991 - 26016 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-15 18:08:11,639 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:12,445 - 26016 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-15 18:08:13,094 - 26016 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-15 18:08:13,747 - 26016 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-06-15 18:08:14,400 - 26016 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-06-15 18:08:15,053 - 26016 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 26016;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:15,957 - 26016 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-15 18:08:16,615 - 26016 - 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 = 26016), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 26016), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 26016 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-15 18:08:17,477 - 26016 - src.utils.log - INFO - βœ… Fetched 33 rows - __SPLIT__ 2026-06-15 18:08:18,131 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 26016;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:18,806 - 26016 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-15 18:08:19,459 - 26016 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-15 18:08:20,112 - 26016 - 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 (14657, 14819, 14553, 14693, 14664, 14600, 14666, 14634, 14668, 14604, 14638, 14571, 14581, 14775, 14648, 14649)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:20,830 - 26016 - src.utils.log - INFO - βœ… Fetched 230 rows - __SPLIT__ 2026-06-15 18:08:21,482 - 26016 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-15 18:08:22,137 - 26016 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-15 18:08:22,790 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:23,765 - 26016 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-15 18:08:24,450 - 26016 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-01 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:25,165 - 26016 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-15 18:08:25,986 - 26016 - src.utils.log - INFO - Generating work orders for setup: 61194 - __SPLIT__ 2026-06-15 18:08:26,678 - 26016 - src.utils.log - INFO - Generating work orders for setup: 61202 - __SPLIT__ 2026-06-15 18:08:27,362 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67554 - __SPLIT__ 2026-06-15 18:08:28,044 - 26016 - src.utils.log - INFO - Generating work orders for setup: 62923 - __SPLIT__ 2026-06-15 18:08:28,729 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67525 - __SPLIT__ 2026-06-15 18:08:29,415 - 26016 - src.utils.log - INFO - Generating work orders for setup: 28902 - __SPLIT__ 2026-06-15 18:08:30,117 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67551 - __SPLIT__ 2026-06-15 18:08:30,798 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67543 - __SPLIT__ 2026-06-15 18:08:31,490 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67557 - __SPLIT__ 2026-06-15 18:08:32,174 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67524 - __SPLIT__ 2026-06-15 18:08:32,858 - 26016 - src.utils.log - INFO - Generating work orders for setup: 67550 - __SPLIT__ 2026-06-15 18:08:33,541 - 26016 - src.utils.log - INFO - Generating work orders for setup: 46310 - __SPLIT__ 2026-06-15 18:08:34,222 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11429.0, -1.0, 1127.0);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:34,921 - 26016 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-15 18:08:35,639 - 26016 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-15 18:08:36,332 - 26016 - 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-15 18:08:37,040 - 26016 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-15 18:08:38,007 - 26016 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-15 18:08:38,687 - 26016 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-15 18:08:39,371 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:40,078 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:40,759 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:41,462 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:42,146 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:42,860 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:43,536 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:44,255 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:44,926 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:45,634 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:46,313 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:47,016 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:47,700 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:48,405 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:49,089 - 26016 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:49,796 - 26016 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-15 18:08:50,475 - 26016 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-15 18:08:51,154 - 26016 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:52,241 - 26016 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-15 18:08:53,121 - 26016 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-15 18:08:53,799 - 26016 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 7 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-10 12:12:22.256' and ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:54,503 - 26016 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-15 18:08:55,177 - 26016 - src.utils.log - INFO - Id's of work order inserted to DB: [678603 678604 678605 678606 678607 678608 678609] - __SPLIT__ 2026-06-15 18:08:55,846 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (64133, 65673, 61194, 61202, 59283, 26395, 64415, 45728, 47009, 51623, 65191, 40627, 54453, 39481, 48573, 67524, 62405, 67525, 62923, 48334, 63573, 67543, 23134, 67551, 67550, 67554, 64994, 46434, 67557, 28902, 46310, 47333, 47462);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:56,555 - 26016 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-15 18:08:57,227 - 26016 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-15 18:08:57,914 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:08:58,622 - 26016 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-06-15 18:08:59,305 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:00,005 - 26016 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-06-15 18:09:00,694 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:01,403 - 26016 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-15 18:09:02,085 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:02,793 - 26016 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-06-15 18:09:03,469 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:04,169 - 26016 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-15 18:09:04,850 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:05,553 - 26016 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-06-15 18:09:06,506 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:07,203 - 26016 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-06-15 18:09:07,877 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (67554, 67524, 67525, 67557, 67543, 67550, 67551);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:08,711 - 26016 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-15 18:09:09,375 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (67554, 67524, 67525, 67557, 67543, 67550, 67551);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:10,075 - 26016 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-15 18:09:10,769 - 26016 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-15 18:09:11,442 - 26016 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-15 18:09:12,117 - 26016 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-15 18:09:12,789 - 26016 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-15 18:09:13,462 - 26016 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-15 18:09:14,134 - 26016 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-15 18:09:14,808 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('678605', '678609', '678604', '678606', '678608', '678607', '678603') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:15,507 - 26016 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-15 18:09:16,178 - 26016 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:16,913 - 26016 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-06-15 18:09:17,586 - 26016 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-15 18:09:18,257 - 26016 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-15 18:09:18,930 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678609, 678606) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:19,626 - 26016 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-06-15 18:09:20,576 - 26016 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:21,314 - 26016 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-06-15 18:09:22,064 - 26016 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-06-15 18:09:22,725 - 26016 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-15 18:09:23,385 - 26016 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-15 18:09:24,069 - 26016 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-15 18:09:24,730 - 26016 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-15 18:09:25,390 - 26016 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-15 18:09:26,051 - 26016 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-15 18:09:26,718 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 678607 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:27,400 - 26016 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-15 18:09:28,061 - 26016 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:28,781 - 26016 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-06-15 18:09:29,529 - 26016 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-06-15 18:09:30,184 - 26016 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-15 18:09:30,847 - 26016 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-15 18:09:31,507 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678603, 678604, 678605, 678606, 678607, 678608, 678609) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:32,194 - 26016 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-15 18:09:32,851 - 26016 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 7 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:33,590 - 26016 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 7) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-15 18:09:34,627 - 26016 - src.utils.log - INFO - βœ… All 7 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-15 18:09:35,309 - 26016 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-15 18:09:35,993 - 26016 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-06-15 18:09:36,666 - 26016 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-15 18:09:37,349 - 26016 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-15 18:09:38,031 - 26016 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (678603, 678604, 678605, 678606, 678607, 678608, 678609) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:38,729 - 26016 - src.utils.log - INFO - βœ… Fetched 7 rows - __SPLIT__ 2026-06-15 18:09:39,407 - 26016 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:40,132 - 26016 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-15 18:09:40,910 - 26016 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-15 18:09:41,591 - 26016 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-15 18:09:42,263 - 26016 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 26016;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-15 18:09:42,963 - 26016 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-15 18:09:43,642 - 26016 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-15 18:09:44,323 - 26016 - src.utils.log - INFO - Time took to perform operation: 92.65 - __SPLIT__ 2026-06-16 13:21:58,882 - 56457 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=56457 - __SPLIT__ 2026-06-16 13:22:00,818 - 56457 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 56457 - __SPLIT__ 2026-06-16 13:22:01,508 - 56457 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-16 13:22:02,190 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:03,043 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:03,725 - 56457 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-16 13:22:04,452 - 56457 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 56457;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:05,149 - 56457 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-16 13:22:05,823 - 56457 - 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 = 56457), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 56457), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 56457 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-16 13:22:06,553 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:07,231 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 56457;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:07,933 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:08,649 - 56457 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-06-16 13:22:09,325 - 56457 - 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 = 14818... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:10,038 - 56457 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-06-16 13:22:10,715 - 56457 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-06-16 13:22:11,394 - 56457 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-06-16 13:22:12,069 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 105946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:12,769 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:13,442 - 56457 - 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-16 00:00:00' and ServiceDate <= '2030-01-31 00:00:00' and ServiceSetupId = 105946 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:14,443 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:15,207 - 56457 - src.utils.log - INFO - Generating work orders for setup: 105946 - __SPLIT__ 2026-06-16 13:22:16,935 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11461;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:17,653 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:18,384 - 56457 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-06-16 13:22:19,084 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=145 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:19,780 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:20,463 - 56457 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-06-16 13:22:21,140 - 56457 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-06-16 13:22:21,817 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:22,570 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:23,252 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:23,995 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:24,671 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:25,407 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:26,118 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:26,848 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:27,524 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:28,246 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:28,926 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:29,980 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:30,663 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:31,369 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:32,048 - 56457 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 105946 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:37,013 - 56457 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-06-16 13:22:37,688 - 56457 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-16 13:22:38,371 - 56457 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 113 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:39,107 - 56457 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 113) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-06-16 13:22:40,524 - 56457 - src.utils.log - INFO - βœ… All 113 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-06-16 13:22:41,204 - 56457 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 113 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-06-10 12:12:22.357' and ServiceSetupId = 105946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:41,937 - 56457 - src.utils.log - INFO - βœ… Fetched 113 rows - __SPLIT__ 2026-06-16 13:22:42,610 - 56457 - src.utils.log - INFO - Id's of work order inserted to DB: [578575 578576 578577 578578 578579 578580 578581 578582 578583 578584 578585 578586 578587 578588 578589 578590 578591 578592 578593 578594 578595 578596 578597 578598 578599 578600 578601 578602 578603 578604 578605 578606 578607 578608 578609 578610 578611 578612 578613 578614 578615 578616 578617 578618 578619 578620 578621 578622 578623 578624 578625 578626 578627 578628 578629 578630 578631 578632 578633 578634 578635 578636 578637 578638 578639 578640 578641 578642 578643 578644 578645 578646 578647 578648 578649 578650 578651 578652 578653 578654 578655 578656 578657 578658 578659 578660 578661 578662 578663 578664 578665 578666 578667 578668 578669 578670 578671 578672 578673 578674 578675 578676 578677 578678 578679 578680 578681 578682 578683 578684 578685 578686 578687] - __SPLIT__ 2026-06-16 13:22:43,294 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 105946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:43,999 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:44,679 - 56457 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-06-16 13:22:45,353 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 105946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:46,056 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:46,732 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 105946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:47,434 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:48,118 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 105946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:49,110 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:22:49,783 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 105946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:50,474 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:51,146 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 105946... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:51,836 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:52,505 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 105946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:53,200 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:53,867 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 105946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:54,562 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:55,236 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 105946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:55,943 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:56,609 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 105946;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:22:57,298 - 56457 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:22:57,979 - 56457 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-06-16 13:22:58,643 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-06-16 13:22:59,308 - 56457 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-06-16 13:22:59,975 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-06-16 13:23:00,643 - 56457 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-06-16 13:23:01,315 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-06-16 13:23:01,983 - 56457 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-06-16 13:23:02,936 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-06-16 13:23:03,607 - 56457 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-06-16 13:23:04,288 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-06-16 13:23:04,959 - 56457 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-16 13:23:05,631 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-06-16 13:23:06,302 - 56457 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-06-16 13:23:06,973 - 56457 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-06-16 13:23:07,648 - 56457 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-06-16 13:23:08,322 - 56457 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-16 13:23:08,996 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578575 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:09,687 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:23:10,364 - 56457 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:11,073 - 56457 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-06-16 13:23:11,851 - 56457 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-06-16 13:23:12,520 - 56457 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-06-16 13:23:13,198 - 56457 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-16 13:23:13,873 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 578575 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:14,562 - 56457 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:23:15,237 - 56457 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:15,938 - 56457 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-16 13:23:16,995 - 56457 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-16 13:23:17,670 - 56457 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-16 13:23:18,342 - 56457 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-06-16 13:23:19,020 - 56457 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (578576, 578577, 578578, 578579, 578580, 578581, 578582, 578583, 578584, 578585, 578586, 578587, 578588, 578589, 578590, 578591, 578592, 578593, 578594, 578595, 578596, 578597, 578598, 578599, 578600, 578601, 578602, 578603, 578604, 578605, 578606, 578607, 578608, 578609, 578610, 578611, 578612, 578613, 578614, 578615, 578616, 578617, 578618, 578619, 578620, 578621, 578622, 578623, 578624, 578625, 578626, 578627, 578628, 578629, 578630, 578631, 578632, 578633, 578634, 578635, 578636, 578637, 578638, 578639, 578640, 578641, 578642, 578643, 578644, 578645, 578646, 578647, 578648, 578649, 578650, 578651, 578652, 578653, 578654, 578655, 578656, 578657, 578658, 578659, 578660, 578661, 578662, 578663, 578664, 578665, 578666, 578667, 578668, 578669, 578670, 578671, 578672, 578673, 578674, 578675, 578676, 578677, 578678, 578679, 578680, 578681, 578682, 578683, 578684, 578685, 578686, 578687) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:19,729 - 56457 - src.utils.log - INFO - βœ… Fetched 112 rows - __SPLIT__ 2026-06-16 13:23:20,405 - 56457 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 112 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:21,112 - 56457 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 112) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-06-16 13:23:22,111 - 56457 - src.utils.log - INFO - βœ… All 112 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-06-16 13:23:22,792 - 56457 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-06-16 13:23:23,473 - 56457 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 56457;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:23:24,176 - 56457 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-16 13:23:24,851 - 56457 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-06-16 13:23:25,526 - 56457 - src.utils.log - INFO - Time took to perform operation: 83.34 - __SPLIT__ 2026-06-16 13:36:13,898 - 11973 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=11973 - __SPLIT__ 2026-06-16 13:36:15,830 - 11973 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-06-16 13:36:16,514 - 11973 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Samsung'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:36:17,505 - 11973 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:36:18,188 - 11973 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-06-16 13:36:18,865 - 11973 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 11973 - __SPLIT__ 2026-06-16 13:36:19,548 - 11973 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 11973;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:36:20,249 - 11973 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-16 13:36:20,929 - 11973 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 11973;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:36:21,633 - 11973 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-06-16 13:36:22,317 - 11973 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 145 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '2543' and ss.ServiceSetupId = 95236 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:36:23,036 - 11973 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-06-16 13:36:23,715 - 11973 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 11973;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:36:24,424 - 11973 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-16 13:36:25,103 - 11973 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-06-16 09:36:25.103' WHERE GenerateInvoiceHistoryId = 11973;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-06-16 13:36:25,811 - 11973 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-06-16 13:36:26,493 - 11973 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-06-16 13:36:27,170 - 11973 - src.utils.log - INFO - Error in Sequential Invoice Gen ProjectId:11973 - Time took: 11.35 - Error:No setups found for GenerateWorkOrderHistoryid: 11973 - __SPLIT__