2026-05-11 05:28:51,492 - 13544 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13544 - __SPLIT__ 2026-05-11 05:28:51,802 - 13544 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 05:28:51,802 - 13544 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:54,486 - 13544 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:28:54,487 - 13544 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-11 05:28:54,487 - 13544 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13544 - __SPLIT__ 2026-05-11 05:28:54,487 - 13544 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:54,782 - 13544 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:28:54,783 - 13544 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:55,083 - 13544 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:28:55,084 - 13544 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8335' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:55,394 - 13544 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:28:55,399 - 13544 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-11 05:28:55,399 - 13544 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 05:28:55,400 - 13544 - 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 (13064, 12805)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:55,707 - 13544 - src.utils.log - INFO - βœ… Fetched 72 rows - __SPLIT__ 2026-05-11 05:28:55,707 - 13544 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 05:28:55,727 - 13544 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23864, 23865) AND TransactionDate BETWEEN '2026-05-11 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:56,018 - 13544 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:28:56,025 - 13544 - 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-05-11 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23864, 23865) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:56,325 - 13544 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:28:56,335 - 13544 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:28:56,335 - 13544 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:56,652 - 13544 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-11 05:28:57,857 - 13544 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 05:28:57,857 - 13544 - src.utils.log - INFO - - __SPLIT__ 2026-05-11 05:28:57,857 - 13544 - src.utils.log - INFO - Total invoice generated: 27 - __SPLIT__ 2026-05-11 05:28:57,857 - 13544 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 27 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-08 13:03:30.540' and ServiceSetupId in (23864, 23865) and GenerateWorkOrderHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:58,150 - 13544 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-05-11 05:28:58,158 - 13544 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:28:58,159 - 13544 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:58,470 - 13544 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-11 05:28:59,520 - 13544 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 05:28:59,521 - 13544 - 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 (799004, 799005, 799006, 799007, 799008, 799009, 799010, 799011, 799012, 799013, 799014, 799015, 799016, 799017, 799018, 799019, 799020, 799021, 799022, 799023, 799024, 799025, 799026, 799027, 799028, 799029, 799030);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:28:59,813 - 13544 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-05-11 05:28:59,814 - 13544 - 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 (23864, 23865) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:00,116 - 13544 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-11 05:29:00,122 - 13544 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:00,413 - 13544 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:29:00,415 - 13544 - 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 = 13064;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:00,710 - 13544 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 05:29:00,715 - 13544 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23864, 23865);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:01,013 - 13544 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 05:29:01,013 - 13544 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 05:29:01,013 - 13544 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 05:29:01,013 - 13544 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:01,333 - 13544 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-11 05:29:02,388 - 13544 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 05:29:02,388 - 13544 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:02,685 - 13544 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:29:02,685 - 13544 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-11 01:29:02.685' WHERE GenerateInvoiceHistoryId = 13544;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 05:29:02,982 - 13544 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 05:29:02,983 - 13544 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 05:29:02,983 - 13544 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13544 - Time took: 11.2 - __SPLIT__ 2026-05-11 11:50:29,261 - 124385 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124385 - __SPLIT__ 2026-05-11 11:50:29,262 - 124385 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124385 - __SPLIT__ 2026-05-11 11:50:29,262 - 124385 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 11:50:29,263 - 124385 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:50:31,309 - 124385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:50:31,309 - 124385 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 11:50:31,309 - 124385 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 11:50:31,310 - 124385 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 11:50:31,310 - 124385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:50:33,727 - 124385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:50:33,727 - 124385 - 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 = 124385), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124385), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124385 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-05-11 11:50:34,107 - 124385 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:50:34,108 - 124385 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:50:34,379 - 124385 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:50:34,380 - 124385 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124385 - __SPLIT__ 2026-05-11 11:50:34,380 - 124385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:50:34,649 - 124385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:50:34,649 - 124385 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 07:50:34.649' WHERE GenerateWorkOrderHistoryId = 124385;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:50:34,919 - 124385 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:51:27,165 - 124386 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124386 - __SPLIT__ 2026-05-11 11:51:27,166 - 124386 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124386 - __SPLIT__ 2026-05-11 11:51:27,167 - 124386 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-11 11:51:27,167 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:29,226 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:29,227 - 124386 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-11 11:51:29,227 - 124386 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-11 11:51:29,228 - 124386 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-11 11:51:29,228 - 124386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:31,076 - 124386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:51:31,077 - 124386 - 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 = 124386), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124386), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124386 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-05-11 11:51:31,502 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:31,502 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:31,768 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:31,771 - 124386 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-11 11:51:31,771 - 124386 - 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 = 14472... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:32,048 - 124386 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-11 11:51:32,048 - 124386 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-11 11:51:32,051 - 124386 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-11 11:51:32,052 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:32,316 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:32,317 - 124386 - 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-05-11 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150289 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:32,596 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:33,151 - 124386 - src.utils.log - INFO - Generating work orders for setup: 150289 - __SPLIT__ 2026-05-11 11:51:33,205 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11426;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:33,470 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:33,513 - 124386 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-11 11:51:33,518 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:33,782 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:33,784 - 124386 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-11 11:51:33,784 - 124386 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-11 11:51:33,784 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:34,085 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:34,085 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:34,379 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:34,380 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:34,655 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:34,655 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:34,945 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:34,945 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:35,234 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:35,234 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:35,517 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:35,517 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:35,786 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:35,786 - 124386 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150289 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:36,085 - 124386 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-11 11:51:36,085 - 124386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:51:36,085 - 124386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:36,387 - 124386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-11 11:51:37,667 - 124386 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-11 11:51:37,668 - 124386 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-08 18:33:30.527' and ServiceSetupId = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:37,961 - 124386 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-11 11:51:37,961 - 124386 - src.utils.log - INFO - Id's of work order inserted to DB: [3673143 3673144 3673145 3673146 3673147 3673148 3673149 3673150 3673151] - __SPLIT__ 2026-05-11 11:51:37,961 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:38,228 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:38,228 - 124386 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-11 11:51:38,229 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:38,495 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:38,496 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:38,761 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:38,769 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:39,040 - 124386 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-11 11:51:39,042 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:39,306 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:39,306 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150289... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:39,569 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:39,570 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:39,838 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:39,838 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:40,102 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:40,102 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:40,384 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:40,384 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150289;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:40,653 - 124386 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-11 11:51:40,665 - 124386 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-11 11:51:40,666 - 124386 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-11 11:51:40,667 - 124386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:51:40,667 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673143, 3673144, 3673145, 3673146, 3673147, 3673148, 3673149, 3673150, 3673151) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:40,932 - 124386 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-11 11:51:40,933 - 124386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:41,202 - 124386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-11 11:51:42,146 - 124386 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-11 11:51:42,146 - 124386 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-11 11:51:42,147 - 124386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:51:42,147 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673143 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:42,411 - 124386 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-11 11:51:42,411 - 124386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:42,684 - 124386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 11:51:43,622 - 124386 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 11:51:43,622 - 124386 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 11:51:43,622 - 124386 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-11 11:51:43,623 - 124386 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673144, 3673145, 3673146, 3673147, 3673148, 3673149, 3673150, 3673151) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:43,889 - 124386 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-11 11:51:43,890 - 124386 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:44,162 - 124386 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-11 11:51:45,108 - 124386 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-11 11:51:45,109 - 124386 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-11 11:51:45,109 - 124386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:45,377 - 124386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:51:45,377 - 124386 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-11 11:51:45,377 - 124386 - src.utils.log - INFO - Time took to perform operation: 18.21 - __SPLIT__ 2026-05-11 11:51:45,377 - 124386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:45,642 - 124386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-11 11:51:45,643 - 124386 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-11 07:51:45.643' WHERE GenerateWorkOrderHistoryId = 124386;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-11 11:51:45,908 - 124386 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:19:31,212 - 13547 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13547 - __SPLIT__ 2026-05-12 13:19:31,228 - 13547 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:19:31,228 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:34,016 - 13547 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:19:34,016 - 13547 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:19:34,016 - 13547 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13547 - __SPLIT__ 2026-05-12 13:19:34,017 - 13547 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13547;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:34,316 - 13547 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:19:34,317 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13547;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:34,621 - 13547 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:19:34,622 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8334' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:34,928 - 13547 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:19:34,932 - 13547 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 13:19:34,933 - 13547 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 13:19:34,934 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13036... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:35,224 - 13547 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:19:35,225 - 13547 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 13:19:35,237 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23862, 23863) AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:35,526 - 13547 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-12 13:19:35,526 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (799040, 799041, 799036, 799037, 799038, 799039) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:35,870 - 13547 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-12 13:19:35,870 - 13547 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853937, 853938, 853939, 853940, 853941, 853942) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:36,152 - 13547 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:19:36,152 - 13547 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853937, 853938, 853939, 853940, 853941, 853942) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:36,443 - 13547 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:19:36,443 - 13547 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853937, 853938, 853939, 853940, 853941, 853942) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:36,751 - 13547 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:19:36,751 - 13547 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (799040, 799041, 799036, 799037, 799038, 799039) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:37,053 - 13547 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:19:37,060 - 13547 - 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-05-12 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23862, 23863) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:37,382 - 13547 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:19:37,391 - 13547 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:19:37,391 - 13547 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:37,702 - 13547 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 13:19:38,777 - 13547 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:19:38,778 - 13547 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 13:19:38,778 - 13547 - src.utils.log - INFO - Total invoice generated: 6 - __SPLIT__ 2026-05-12 13:19:38,778 - 13547 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:03.009' and ServiceSetupId in (23862, 23863) and GenerateWorkOrderHistoryId = 13547;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:39,080 - 13547 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-12 13:19:39,087 - 13547 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:19:39,088 - 13547 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:39,425 - 13547 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 13:19:40,460 - 13547 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:19:40,460 - 13547 - 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 (799042, 799043, 799044, 799045, 799046, 799047);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:40,758 - 13547 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-12 13:19:40,758 - 13547 - 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 (23862, 23863) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:41,051 - 13547 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:19:41,058 - 13547 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:41,368 - 13547 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:19:41,371 - 13547 - 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 = 13036;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:41,666 - 13547 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:19:41,670 - 13547 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23862, 23863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:41,958 - 13547 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:19:41,958 - 13547 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 13:19:41,958 - 13547 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:19:41,958 - 13547 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:42,288 - 13547 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 13:19:43,323 - 13547 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:19:43,323 - 13547 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13547;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:43,602 - 13547 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:19:43,602 - 13547 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 09:19:43.602' WHERE GenerateInvoiceHistoryId = 13547;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:19:43,891 - 13547 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:19:43,891 - 13547 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 13:19:43,892 - 13547 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13547 - Time took: 12.68 - __SPLIT__ 2026-05-12 13:20:55,604 - 124389 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124389 - __SPLIT__ 2026-05-12 13:20:55,605 - 124389 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124389 - __SPLIT__ 2026-05-12 13:20:55,606 - 124389 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:20:55,606 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:20:57,680 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:20:57,680 - 124389 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 13:20:57,681 - 124389 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 13:20:57,681 - 124389 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 13:20:57,681 - 124389 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:00,172 - 124389 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:21:00,173 - 124389 - 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 = 124389), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124389), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124389 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-05-12 13:21:00,790 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:00,791 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:01,061 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:01,064 - 124389 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 13:21:01,065 - 124389 - 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 = 14468... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:01,354 - 124389 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-12 13:21:01,354 - 124389 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 13:21:01,357 - 124389 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-12 13:21:01,358 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:01,632 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:01,633 - 124389 - 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-05-12 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 150294 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:01,926 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:02,490 - 124389 - src.utils.log - INFO - Generating work orders for setup: 150294 - __SPLIT__ 2026-05-12 13:21:02,537 - 124389 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-12 13:21:02,544 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:02,814 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:02,817 - 124389 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-12 13:21:02,817 - 124389 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-12 13:21:02,817 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:03,257 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:03,257 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:03,659 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:03,660 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:03,943 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:03,943 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:04,354 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:04,354 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:04,766 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:04,766 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:05,075 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:05,076 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:05,350 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:05,350 - 124389 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150294 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:05,763 - 124389 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:21:05,763 - 124389 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:05,763 - 124389 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:06,106 - 124389 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-12 13:21:07,293 - 124389 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:21:07,294 - 124389 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-12 18:20:02.990' and ServiceSetupId = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:07,611 - 124389 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 13:21:07,612 - 124389 - src.utils.log - INFO - Id's of work order inserted to DB: [3673157 3673158 3673159] - __SPLIT__ 2026-05-12 13:21:07,612 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:07,879 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:07,879 - 124389 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-12 13:21:07,880 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:08,151 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:08,151 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:08,421 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:08,428 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:08,705 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:08,706 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:08,979 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:08,979 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:09,247 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:09,248 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:09,518 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:09,518 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:09,786 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:09,788 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:10,138 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:10,139 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:10,409 - 124389 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:10,424 - 124389 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-12 13:21:10,425 - 124389 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 13:21:10,425 - 124389 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-12 13:21:10,425 - 124389 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-12 13:21:10,425 - 124389 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-12 13:21:10,425 - 124389 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:10,425 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3673157', '3673158', '3673159') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:10,693 - 124389 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 13:21:10,694 - 124389 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:11,004 - 124389 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-12 13:21:11,005 - 124389 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:11,006 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673157 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:11,273 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:11,274 - 124389 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:11,586 - 124389 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-12 13:21:12,538 - 124389 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-12 13:21:12,538 - 124389 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-12 13:21:12,538 - 124389 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:12,539 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673157 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:12,805 - 124389 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:12,805 - 124389 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:13,125 - 124389 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 13:21:14,076 - 124389 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 13:21:14,076 - 124389 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 13:21:14,076 - 124389 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:14,077 - 124389 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673158, 3673159) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:14,345 - 124389 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:21:14,346 - 124389 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:14,621 - 124389 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 13:21:15,587 - 124389 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 13:21:15,587 - 124389 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 13:21:15,587 - 124389 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:15,855 - 124389 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:21:15,855 - 124389 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-12 13:21:15,855 - 124389 - src.utils.log - INFO - Time took to perform operation: 20.25 - __SPLIT__ 2026-05-12 13:21:15,855 - 124389 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:16,125 - 124389 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:21:16,125 - 124389 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-12 09:21:16.125' WHERE GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:16,398 - 124389 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:21:40,171 - [124389] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673157, 3673159] user_id=43135 company_id=133 project_id=[124389] publish_all=False - __SPLIT__ 2026-05-12 13:21:40,173 - [124389] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673157, 3673159] user_id=43135 company_id=133 project_id=[124389] publish_all=False - __SPLIT__ 2026-05-12 13:21:40,173 - [124389] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124389] - __SPLIT__ 2026-05-12 13:21:40,187 - [124389] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:21:40,187 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:42,804 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:42,805 - [124389] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 13:21:42,805 - [124389] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 13:21:42,806 - [124389] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 13:21:42,806 - [124389] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:45,237 - [124389] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:21:45,237 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:45,509 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:21:45,509 - [124389] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-12 13:21:45,510 - [124389] - 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 = 150294 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:45,795 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:45,795 - [124389] - 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 = 150294 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:46,077 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:46,077 - [124389] - 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 = 150294 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:46,365 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:46,369 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:46,642 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:46,642 - [124389] - 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-05-12 13:21:46,917 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:21:46,917 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:47,183 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:47,183 - [124389] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:47,456 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:47,457 - [124389] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:47,729 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:47,733 - [124389] - 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 = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:48,012 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:48,014 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:48,281 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:48,282 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14832' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:48,551 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:48,553 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419356', '1419357') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:48,829 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:48,829 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:49,312 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-12 13:21:50,334 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 13:21:50,467 - [124389] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 13:21:50,468 - [124389] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:50,742 - [124389] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:21:50,743 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419356', '1419357') AND wo.AccountNumber = '14832' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-12 13:21:51,027 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:21:51,028 - [124389] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-12 13:21:51,029 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:51,351 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:21:51,352 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:51,623 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:51,623 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:51,935 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:51,936 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:52,205 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:52,205 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:52,477 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:52,477 - [124389] - 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 (3673157, 3673159)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:52,806 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:52,806 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673157, 3673159) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:53,087 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:53,087 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673157, 3673159);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:53,355 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:21:53,358 - [124389] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-12 13:21:53,370 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:53,637 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:53,638 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:53,906 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:53,910 - [124389] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:53,910 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:54,255 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-12 13:21:55,225 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-12 13:21:55,227 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150294 AND WorkOrderNo IN ('498411', '5445488') AND GenerateWorkOrderHistoryId = 124389;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-12 13:21:55,596 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:21:55,597 - [124389] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-12 13:21:55,603 - [124389] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-12 13:21:55,603 - [124389] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:55,603 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:55,924 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-12 13:21:56,970 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-12 13:21:56,970 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-12 13:21:56,971 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-12 13:21:56,971 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-12 13:21:56,971 - [124389] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:56,971 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:57,276 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-12 13:21:58,234 - [124389] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-12 13:21:58,234 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-12 13:21:58,234 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 13:21:58,234 - [124389] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:21:58,234 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:58,546 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-12 13:21:59,500 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-12 13:21:59,501 - [124389] - 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 = 150294... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:21:59,770 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:21:59,777 - [124389] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-12 13:21:59,778 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:00,222 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 13:22:01,170 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 13:22:01,303 - [124389] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 13:22:01,304 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-05-12 09:21:59.771';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:01,873 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:01,875 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:02,143 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:02,152 - [124389] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-12 09:21:59.771'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-12 13:22:02,655 - [124389] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:02,659 - [124389] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:02,660 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:02,965 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-12 13:22:03,952 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 13:22:03,953 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419356', '1419357')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:04,334 - [124389] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:04,343 - [124389] - 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 = 150294 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:04,615 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:04,615 - [124389] - 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 = 150294 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:04,886 - [124389] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:04,886 - [124389] - 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 = 150294 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:05,158 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:05,158 - [124389] - 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 = 150294 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:05,430 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:05,443 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:05,709 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:05,714 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:05,982 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:05,986 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150294;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:06,254 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:06,255 - [124389] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-12 13:22:06,255 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 13:22:06,255 - [124389] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:06,255 - [124389] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:06,561 - [124389] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 13:22:07,516 - [124389] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 13:22:07,516 - [124389] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 13:22:07,516 - [124389] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-12 13:22:07,517 - [124389] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-12 13:22:07,517 - [124389] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124389 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:07,786 - [124389] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:07,792 - [124389] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-12 13:22:07,926 - [124389] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_4f44298efc - __SPLIT__ 2026-05-12 13:22:08,195 - [124389] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_4f44298efc - __SPLIT__ 2026-05-12 13:22:08,461 - [124389] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-12 13:22:08,606 - [124389] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-12 13:22:08,749 - [124389] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_4f44298efc - __SPLIT__ 2026-05-12 13:22:08,749 - [124389] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_4f44298efc - __SPLIT__ 2026-05-12 13:22:08,749 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124389 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:09,017 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:09,018 - [124389] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-12 13:22:09,018 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:09,567 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:09,567 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:09,992 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:09,993 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:10,262 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:10,262 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:10,705 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:10,706 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:10,990 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:10,990 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:11,265 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:11,265 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:11,533 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:11,533 - [124389] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673157, 3673159) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:11,998 - [124389] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:11,999 - [124389] - src.utils.log - INFO - Work order published ids: (3673157, 3673159) - __SPLIT__ 2026-05-12 13:22:11,999 - [124389] - src.utils.log - INFO - Time took to perform operation in publishing [124389]: 31.83 - __SPLIT__ 2026-05-12 13:22:11,999 - [124389] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124389] - __SPLIT__ 2026-05-12 13:22:11,999 - [124389] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 09:22:11.999' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:12,270 - [124389] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:26,048 - 13549 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13549 - __SPLIT__ 2026-05-12 13:22:26,063 - 13549 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:22:26,064 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:28,638 - 13549 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:28,639 - 13549 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:22:28,639 - 13549 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13549 - __SPLIT__ 2026-05-12 13:22:28,639 - 13549 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:28,944 - 13549 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:28,945 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:29,230 - 13549 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:29,230 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8334' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:29,527 - 13549 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:29,531 - 13549 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 13:22:29,532 - 13549 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 13:22:29,532 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13036... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:29,828 - 13549 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:29,829 - 13549 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 13:22:29,841 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23862, 23863) AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:30,130 - 13549 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-12 13:22:30,130 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (799048, 799049, 799050, 799051) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:30,416 - 13549 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-12 13:22:30,417 - 13549 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853952, 853949, 853950, 853951) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:30,699 - 13549 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:30,699 - 13549 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853952, 853949, 853950, 853951) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:30,976 - 13549 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:30,976 - 13549 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853952, 853949, 853950, 853951) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:31,278 - 13549 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:31,278 - 13549 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (799048, 799049, 799050, 799051) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:31,585 - 13549 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:22:31,592 - 13549 - 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-05-12 00:00:00' AND '2026-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23862, 23863) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:31,883 - 13549 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:31,892 - 13549 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:31,892 - 13549 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:32,204 - 13549 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 13:22:33,249 - 13549 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:22:33,249 - 13549 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 13:22:33,249 - 13549 - src.utils.log - INFO - Total invoice generated: 4 - __SPLIT__ 2026-05-12 13:22:33,250 - 13549 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:02.954' and ServiceSetupId in (23862, 23863) and GenerateWorkOrderHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:33,537 - 13549 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-12 13:22:33,545 - 13549 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:33,545 - 13549 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:33,872 - 13549 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 13:22:34,871 - 13549 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:22:34,872 - 13549 - 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 (799052, 799053, 799054, 799055);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:35,154 - 13549 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-12 13:22:35,155 - 13549 - 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 (23862, 23863) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:35,447 - 13549 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:35,454 - 13549 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:35,729 - 13549 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:35,732 - 13549 - 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 = 13036;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:36,031 - 13549 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:36,036 - 13549 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23862, 23863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:36,329 - 13549 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:36,329 - 13549 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 13:22:36,329 - 13549 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:36,329 - 13549 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:36,649 - 13549 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 13:22:37,649 - 13549 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:22:37,649 - 13549 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:37,951 - 13549 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:37,951 - 13549 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 09:22:37.951' WHERE GenerateInvoiceHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:38,238 - 13549 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:38,239 - 13549 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 13:22:38,239 - 13549 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13549 - Time took: 12.19 - __SPLIT__ 2026-05-12 13:22:51,720 - [13549] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799052, 799054] user_id=122885 company_id=135 project_id=[13549] publish_all=False - __SPLIT__ 2026-05-12 13:22:51,720 - [13549] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-12 13:22:51,721 - [13549] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-12 13:22:51,722 - [13549] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:22:51,722 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:53,697 - [13549] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:53,697 - [13549] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:22:53,697 - [13549] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-12 09:22:53.697' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:53,978 - [13549] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:53,979 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (799052, 799054);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:54,267 - [13549] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:54,267 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799052, 799054);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:54,550 - [13549] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:54,552 - [13549] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:55,013 - [13549] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 13:22:56,035 - [13549] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 13:22:56,185 - [13549] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 13:22:56,186 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:56,519 - [13549] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:56,522 - [13549] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-12 13:22:56,932 - [13549] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:56,935 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:57,215 - [13549] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:22:57,216 - [13549] - src.utils.log - INFO - 2 Invoice Generated : [166029, 166030] - __SPLIT__ 2026-05-12 13:22:57,216 - [13549] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '166031' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:57,501 - [13549] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:22:57,503 - [13549] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:57,503 - [13549] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:57,813 - [13549] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-12 13:22:58,832 - [13549] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 13:22:58,833 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (406639, 406640);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:59,119 - [13549] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:59,122 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (853953, 853955);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:59,399 - [13549] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:22:59,400 - [13549] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (853953, 853955);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:22:59,684 - [13549] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:22:59,687 - [13549] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:22:59,687 - [13549] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:23:00,038 - [13549] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 13:23:01,090 - [13549] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 13:23:01,090 - [13549] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 13:23:01,090 - [13549] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 13:23:01,090 - [13549] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (853953, 853955) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:23:01,377 - [13549] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:23:01,377 - [13549] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (853953, 853955) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:23:01,674 - [13549] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:23:01,674 - [13549] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (853953, 853955) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:23:01,977 - [13549] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:23:01,977 - [13549] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799052, 799054) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:23:02,269 - [13549] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:23:02,270 - [13549] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 09:22:53.697' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13549;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:23:02,556 - [13549] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:23:02,556 - [13549] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 10.83 - __SPLIT__ 2026-05-12 13:35:19,385 - 12161 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12161 - __SPLIT__ 2026-05-12 13:35:19,386 - 12161 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12161 - __SPLIT__ 2026-05-12 13:35:19,387 - 12161 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:35:19,387 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:21,439 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:21,439 - 12161 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:35:21,439 - 12161 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:21,747 - 12161 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:35:21,747 - 12161 - 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 = 12161), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12161), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12161 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-05-12 13:35:22,076 - 12161 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:35:22,076 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:22,384 - 12161 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:35:22,387 - 12161 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 13:35:22,387 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:22,690 - 12161 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-12 13:35:22,690 - 12161 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 13:35:22,694 - 12161 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-12 13:35:22,694 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23862, 23863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:22,987 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:22,987 - 12161 - 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-05-12 00:00:00' and ServiceDate <= '2026-07-31 00:00:00' and ServiceSetupId in (23862, 23863) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:23,299 - 12161 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:35:23,911 - 12161 - src.utils.log - INFO - Generating work orders for setup: 23862 - __SPLIT__ 2026-05-12 13:35:23,957 - 12161 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-12 13:35:23,964 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:24,246 - 12161 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:35:24,248 - 12161 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-12 13:35:24,249 - 12161 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-12 13:35:24,249 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:24,553 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:24,553 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:24,855 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:24,856 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:25,153 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:25,153 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:25,471 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:25,471 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:25,789 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:25,789 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:26,091 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:26,091 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:26,377 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:26,378 - 12161 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (23862, 23863) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:26,706 - 12161 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:35:26,706 - 12161 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:35:26,707 - 12161 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:27,064 - 12161 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-12 13:35:28,131 - 12161 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:35:28,132 - 12161 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-12 18:20:02.926' and ServiceSetupId in (23862, 23863)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:28,435 - 12161 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:35:28,435 - 12161 - src.utils.log - INFO - Id's of work order inserted to DB: [2729579] - __SPLIT__ 2026-05-12 13:35:28,436 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (23862, 23863);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:28,722 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:28,723 - 12161 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-12 13:35:28,723 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:29,021 - 12161 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:35:29,021 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:29,328 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:29,332 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:29,616 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:29,616 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:29,907 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:29,908 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:30,199 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:30,200 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23862;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:30,506 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:30,507 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23862;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:30,804 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:30,805 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23862;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:31,114 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:31,114 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23862;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:31,423 - 12161 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:35:31,427 - 12161 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-12 13:35:31,428 - 12161 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,429 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-05-12 13:35:31,429 - 12161 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,429 - 12161 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-12 13:35:31,429 - 12161 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 13:35:31,429 - 12161 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:35:31,429 - 12161 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729579 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:31,715 - 12161 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:35:31,716 - 12161 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:32,052 - 12161 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 13:35:33,087 - 12161 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 13:35:33,088 - 12161 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 13:35:33,088 - 12161 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:33,378 - 12161 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:35:33,379 - 12161 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-12 13:35:33,379 - 12161 - src.utils.log - INFO - Time took to perform operation: 13.99 - __SPLIT__ 2026-05-12 13:35:33,379 - 12161 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:33,675 - 12161 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:35:33,676 - 12161 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-12 09:35:33.676' WHERE GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:35:33,983 - 12161 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:36:24,536 - [12161] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729579] user_id=122885 company_id=135 project_id=[12161] publish_all=False - __SPLIT__ 2026-05-12 13:36:24,537 - [12161] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729579] user_id=122885 company_id=135 project_id=[12161] publish_all=False - __SPLIT__ 2026-05-12 13:36:24,537 - [12161] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12161] - __SPLIT__ 2026-05-12 13:36:24,551 - [12161] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:36:24,551 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:27,208 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:27,208 - [12161] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:36:27,209 - [12161] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:27,515 - [12161] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:36:27,515 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:27,824 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:27,824 - [12161] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-12 13:36:27,825 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23862 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:28,118 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:28,119 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23862 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:28,421 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:28,421 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23862 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:28,729 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:28,734 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:29,021 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:29,021 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:29,309 - [12161] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:36:29,309 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:29,595 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:29,595 - [12161] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:29,909 - [12161] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:36:29,913 - [12161] - 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 = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:30,226 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:30,228 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:30,512 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:30,513 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8334' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:30,815 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:30,817 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '166032R' AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:31,113 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:31,113 - [12161] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:31,602 - [12161] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-12 13:36:32,715 - [12161] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 13:36:32,882 - [12161] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 13:36:32,884 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '166032R' AND wo.AccountNumber = '8334' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-12 13:36:33,185 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:33,185 - [12161] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-12 13:36:33,186 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:33,487 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:33,487 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:33,775 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:33,776 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:34,086 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:34,086 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:34,373 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:34,374 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:34,666 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:34,667 - [12161] - 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 = 2729579... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:34,986 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:34,986 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 2729579 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:35,280 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:35,280 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 2729579;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:35,578 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:35,580 - [12161] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-12 13:36:35,587 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:35,886 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:35,887 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:36,209 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:36,212 - [12161] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:36:36,213 - [12161] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:36,549 - [12161] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-12 13:36:37,618 - [12161] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-12 13:36:37,619 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23862 AND WorkOrderNo = '1389416' AND GenerateWorkOrderHistoryId = 12161; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:37,931 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:37,937 - [12161] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-12 13:36:37,937 - [12161] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:36:37,937 - [12161] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:38,271 - [12161] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 13:36:39,302 - [12161] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:36:39,303 - [12161] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:39,632 - [12161] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-12 13:36:40,683 - [12161] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-12 13:36:40,683 - [12161] - 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 = 23862... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:40,972 - [12161] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:36:40,979 - [12161] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-12 13:36:40,979 - [12161] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12161 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:41,272 - [12161] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:36:41,279 - [12161] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-12 13:36:41,429 - [12161] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7702b6358a - __SPLIT__ 2026-05-12 13:36:41,726 - [12161] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7702b6358a - __SPLIT__ 2026-05-12 13:36:42,044 - [12161] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-12 13:36:42,199 - [12161] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-12 13:36:42,346 - [12161] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7702b6358a - __SPLIT__ 2026-05-12 13:36:42,346 - [12161] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7702b6358a - __SPLIT__ 2026-05-12 13:36:42,346 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12161 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:42,653 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:42,653 - [12161] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-12 13:36:42,653 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:42,971 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:42,971 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:43,279 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:43,279 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:43,576 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:43,576 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:43,949 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:43,949 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:44,256 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:44,256 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:44,558 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:44,558 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:44,851 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:44,851 - [12161] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729579 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:45,158 - [12161] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:36:45,158 - [12161] - src.utils.log - INFO - Work order published ids: (2729579,) - __SPLIT__ 2026-05-12 13:36:45,159 - [12161] - src.utils.log - INFO - Time took to perform operation in publishing [12161]: 20.62 - __SPLIT__ 2026-05-12 13:36:45,159 - [12161] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12161] - __SPLIT__ 2026-05-12 13:36:45,159 - [12161] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 09:36:45.158' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12161;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:36:45,455 - [12161] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:48:30,094 - 13550 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13550 - __SPLIT__ 2026-05-12 13:48:30,096 - 13550 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:48:30,096 - 13550 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:32,272 - 13550 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:48:32,272 - 13550 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:48:32,272 - 13550 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13550 - __SPLIT__ 2026-05-12 13:48:32,272 - 13550 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13550;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:32,584 - 13550 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:48:32,584 - 13550 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13550;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:32,907 - 13550 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:48:32,908 - 13550 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8341' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:33,231 - 13550 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:48:33,236 - 13550 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 13:48:33,237 - 13550 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 13:48:33,237 - 13550 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (13057, 13036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:33,603 - 13550 - src.utils.log - INFO - βœ… Fetched 61 rows - __SPLIT__ 2026-05-12 13:48:33,604 - 13550 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 13:48:33,617 - 13550 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23883, 23884) AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:33,939 - 13550 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:48:33,946 - 13550 - 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-05-12 00:00:00' AND '2026-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23883, 23884) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:34,248 - 13550 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:48:34,257 - 13550 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:48:34,258 - 13550 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:34,573 - 13550 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 13:48:35,647 - 13550 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:48:35,647 - 13550 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 13:48:35,648 - 13550 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-05-12 13:48:35,648 - 13550 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:03.012' and ServiceSetupId in (23883, 23884) and GenerateWorkOrderHistoryId = 13550;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:35,971 - 13550 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 13:48:35,979 - 13550 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:48:35,979 - 13550 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:36,291 - 13550 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 13:48:37,323 - 13550 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:48:37,323 - 13550 - 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 (799056, 799057, 799058, 799059, 799060);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:37,654 - 13550 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 13:48:37,655 - 13550 - 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 (23883, 23884) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:37,942 - 13550 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:48:37,950 - 13550 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:38,334 - 13550 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:48:38,336 - 13550 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:38,632 - 13550 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:48:38,637 - 13550 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23883, 23884);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:38,960 - 13550 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:48:38,960 - 13550 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 13:48:38,960 - 13550 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:48:38,960 - 13550 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:39,326 - 13550 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 13:48:40,430 - 13550 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:48:40,431 - 13550 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13550;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:40,734 - 13550 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:48:40,734 - 13550 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 09:48:40.734' WHERE GenerateInvoiceHistoryId = 13550;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:48:41,030 - 13550 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:48:41,030 - 13550 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 13:48:41,031 - 13550 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13550 - Time took: 10.94 - __SPLIT__ 2026-05-12 13:51:19,416 - 13551 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13551 - __SPLIT__ 2026-05-12 13:51:19,417 - 13551 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 13:51:19,418 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:21,554 - 13551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:51:21,555 - 13551 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 13:51:21,555 - 13551 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13551 - __SPLIT__ 2026-05-12 13:51:21,555 - 13551 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:21,857 - 13551 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:51:21,857 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:22,154 - 13551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:51:22,155 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8341' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:22,480 - 13551 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:51:22,484 - 13551 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 13:51:22,485 - 13551 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 13:51:22,485 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId in (13057, 13036)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:22,782 - 13551 - src.utils.log - INFO - βœ… Fetched 61 rows - __SPLIT__ 2026-05-12 13:51:22,783 - 13551 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 13:51:22,796 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (23883, 23884) AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:23,112 - 13551 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 13:51:23,113 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (799056, 799057, 799058, 799059, 799060) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:23,404 - 13551 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 13:51:23,404 - 13551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853957, 853958, 853959, 853960, 853961) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:23,691 - 13551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:51:23,691 - 13551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853957, 853958, 853959, 853960, 853961) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:23,978 - 13551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:51:23,979 - 13551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853957, 853958, 853959, 853960, 853961) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:24,281 - 13551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:51:24,281 - 13551 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (799056, 799057, 799058, 799059, 799060) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:24,583 - 13551 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 13:51:24,590 - 13551 - 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-05-12 00:00:00' AND '2026-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (23883, 23884) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:24,901 - 13551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:51:24,910 - 13551 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:51:24,910 - 13551 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:25,243 - 13551 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 13:51:26,322 - 13551 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:51:26,322 - 13551 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 13:51:26,323 - 13551 - src.utils.log - INFO - Total invoice generated: 5 - __SPLIT__ 2026-05-12 13:51:26,323 - 13551 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:03.160' and ServiceSetupId in (23883, 23884) and GenerateWorkOrderHistoryId = 13551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:26,615 - 13551 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 13:51:26,622 - 13551 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:51:26,622 - 13551 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:26,941 - 13551 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 13:51:27,976 - 13551 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:51:27,976 - 13551 - 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 (799061, 799062, 799063, 799064, 799065);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:28,283 - 13551 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-05-12 13:51:28,283 - 13551 - 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 (23883, 23884) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:28,585 - 13551 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 13:51:28,592 - 13551 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:28,883 - 13551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:51:28,885 - 13551 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:29,175 - 13551 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 13:51:29,180 - 13551 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (23883, 23884);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:29,473 - 13551 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 13:51:29,474 - 13551 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 13:51:29,474 - 13551 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 13:51:29,474 - 13551 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:29,793 - 13551 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 13:51:30,823 - 13551 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 13:51:30,823 - 13551 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:31,136 - 13551 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:51:31,136 - 13551 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 09:51:31.136' WHERE GenerateInvoiceHistoryId = 13551;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 13:51:31,433 - 13551 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 13:51:31,433 - 13551 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 13:51:31,433 - 13551 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13551 - Time took: 12.02 - __SPLIT__ 2026-05-12 14:09:15,612 - 12162 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12162 - __SPLIT__ 2026-05-12 14:09:15,613 - 12162 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12162 - __SPLIT__ 2026-05-12 14:09:15,614 - 12162 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:09:15,614 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:17,878 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:17,878 - 12162 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:09:17,878 - 12162 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:18,214 - 12162 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:09:18,215 - 12162 - 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 = 12162), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12162), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12162 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-05-12 14:09:18,540 - 12162 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:09:18,540 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:18,863 - 12162 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:09:18,866 - 12162 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 14:09:18,867 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:19,164 - 12162 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-12 14:09:19,164 - 12162 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 14:09:19,167 - 12162 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-12 14:09:19,168 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:19,460 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:19,461 - 12162 - 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-05-12 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23885 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:19,828 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:20,438 - 12162 - src.utils.log - INFO - Generating work orders for setup: 23885 - __SPLIT__ 2026-05-12 14:09:20,460 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1425;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:20,751 - 12162 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:09:20,792 - 12162 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-12 14:09:20,798 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:21,093 - 12162 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:09:21,094 - 12162 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-12 14:09:21,095 - 12162 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-12 14:09:21,095 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:21,405 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:21,405 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:21,707 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:21,708 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:22,015 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:22,015 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:22,317 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:22,318 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:22,609 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:22,610 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:22,906 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:22,907 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:23,214 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:23,215 - 12162 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23885 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:23,527 - 12162 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:09:23,528 - 12162 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:09:23,528 - 12162 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:23,891 - 12162 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-12 14:09:27,418 - 12162 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:09:27,419 - 12162 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-12 18:20:02.994' and ServiceSetupId = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:27,873 - 12162 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:09:27,874 - 12162 - src.utils.log - INFO - Id's of work order inserted to DB: [2729580 2729581 2729582] - __SPLIT__ 2026-05-12 14:09:27,874 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:28,185 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:28,185 - 12162 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-12 14:09:28,185 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:28,483 - 12162 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:09:28,483 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:28,776 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:28,780 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:29,082 - 12162 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:09:29,084 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:29,374 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:29,375 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:29,666 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:29,666 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:29,969 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:29,970 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:30,261 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:30,261 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:30,719 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:30,720 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:32,041 - 12162 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:09:32,049 - 12162 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-12 14:09:32,049 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 14:09:32,049 - 12162 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,049 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-12 14:09:32,049 - 12162 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:09:32,050 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729580, 2729581, 2729582) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:32,343 - 12162 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:09:32,344 - 12162 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:32,675 - 12162 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-12 14:09:33,714 - 12162 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-12 14:09:33,714 - 12162 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-12 14:09:33,714 - 12162 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-12 14:09:33,714 - 12162 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 14:09:33,714 - 12162 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:09:33,715 - 12162 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729580, 2729581, 2729582) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:34,020 - 12162 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:09:34,021 - 12162 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:34,352 - 12162 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 14:09:35,491 - 12162 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 14:09:35,492 - 12162 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 14:09:35,492 - 12162 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:35,860 - 12162 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:09:35,860 - 12162 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-12 14:09:35,860 - 12162 - src.utils.log - INFO - Time took to perform operation: 20.25 - __SPLIT__ 2026-05-12 14:09:35,860 - 12162 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:36,182 - 12162 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:09:36,183 - 12162 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-12 10:09:36.183' WHERE GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:09:36,505 - 12162 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:10:12,643 - [12162] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729582] user_id=122885 company_id=135 project_id=[12162] publish_all=False - __SPLIT__ 2026-05-12 14:10:12,644 - [12162] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729582] user_id=122885 company_id=135 project_id=[12162] publish_all=False - __SPLIT__ 2026-05-12 14:10:12,644 - [12162] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12162] - __SPLIT__ 2026-05-12 14:10:12,645 - [12162] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:10:12,645 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:14,685 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:14,685 - [12162] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:10:14,685 - [12162] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:14,975 - [12162] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:10:14,975 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:15,276 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:15,276 - [12162] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-12 14:10:15,277 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23885 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:15,590 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:15,591 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23885 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:15,883 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:15,884 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23885 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:16,190 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:16,194 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:16,484 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:16,484 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:16,775 - [12162] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:10:16,776 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:17,069 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:17,070 - [12162] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:17,364 - [12162] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:10:17,368 - [12162] - 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 = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:17,653 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:17,655 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:17,949 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:17,950 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8342' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:18,247 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:18,250 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '166033R' AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:18,544 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:18,545 - [12162] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:19,057 - [12162] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-12 14:10:20,247 - [12162] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 14:10:20,408 - [12162] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 14:10:20,410 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '166033R' AND wo.AccountNumber = '8342' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-12 14:10:20,707 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:20,708 - [12162] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-12 14:10:20,708 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:21,010 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:21,010 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:21,302 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:21,302 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:21,614 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:21,615 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:21,927 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:21,927 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:22,228 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:22,228 - [12162] - 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 = 2729582... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:22,627 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:22,627 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 2729582 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:22,919 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:22,919 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 2729582;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:23,251 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:23,254 - [12162] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-12 14:10:23,266 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:23,558 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:23,559 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:23,847 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:23,851 - [12162] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:10:23,851 - [12162] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:24,244 - [12162] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-12 14:10:25,307 - [12162] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-12 14:10:25,308 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23885 AND WorkOrderNo = '5215537' AND GenerateWorkOrderHistoryId = 12162; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:25,662 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:25,668 - [12162] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-12 14:10:25,668 - [12162] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:10:25,668 - [12162] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:25,997 - [12162] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-12 14:10:27,031 - [12162] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-12 14:10:27,032 - [12162] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-12 14:10:27,032 - [12162] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-12 14:10:27,032 - [12162] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-12 14:10:27,032 - [12162] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:10:27,032 - [12162] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:27,345 - [12162] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-12 14:10:28,376 - [12162] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-12 14:10:28,377 - [12162] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-12 14:10:28,377 - [12162] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 14:10:28,377 - [12162] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:10:28,377 - [12162] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:28,702 - [12162] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-12 14:10:29,787 - [12162] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-12 14:10:29,788 - [12162] - 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 = 23885... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:30,082 - [12162] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:10:30,089 - [12162] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-12 14:10:30,089 - [12162] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12162 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:30,400 - [12162] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:10:30,406 - [12162] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-12 14:10:30,563 - [12162] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_27499eaa41 - __SPLIT__ 2026-05-12 14:10:30,877 - [12162] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_27499eaa41 - __SPLIT__ 2026-05-12 14:10:31,165 - [12162] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-12 14:10:31,315 - [12162] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-12 14:10:31,467 - [12162] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_27499eaa41 - __SPLIT__ 2026-05-12 14:10:31,467 - [12162] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_27499eaa41 - __SPLIT__ 2026-05-12 14:10:31,467 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12162 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:31,753 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:31,753 - [12162] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-12 14:10:31,753 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:32,066 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:32,066 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:32,414 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:32,414 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:32,702 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:32,702 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:33,018 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:33,018 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:33,336 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:33,336 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:33,628 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:33,628 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:33,940 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:33,941 - [12162] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729582 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:34,248 - [12162] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:10:34,248 - [12162] - src.utils.log - INFO - Work order published ids: (2729582,) - __SPLIT__ 2026-05-12 14:10:34,249 - [12162] - src.utils.log - INFO - Time took to perform operation in publishing [12162]: 21.6 - __SPLIT__ 2026-05-12 14:10:34,249 - [12162] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12162] - __SPLIT__ 2026-05-12 14:10:34,249 - [12162] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 10:10:34.248' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12162;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:10:34,561 - [12162] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:10,494 - 13552 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13552 - __SPLIT__ 2026-05-12 14:13:10,495 - 13552 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:13:10,496 - 13552 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:12,636 - 13552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:13:12,637 - 13552 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:13:12,637 - 13552 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13552 - __SPLIT__ 2026-05-12 14:13:12,637 - 13552 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:12,963 - 13552 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:12,963 - 13552 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:13,338 - 13552 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:13,339 - 13552 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8342' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:13,635 - 13552 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:13,639 - 13552 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 14:13:13,640 - 13552 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 14:13:13,641 - 13552 - 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 = 13065... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:13,938 - 13552 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-12 14:13:13,939 - 13552 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 14:13:13,947 - 13552 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 23885 AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:14,289 - 13552 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:13:14,296 - 13552 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:14,586 - 13552 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:14,586 - 13552 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 10:13:14.586' WHERE GenerateInvoiceHistoryId = 13552;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:14,879 - 13552 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:14,879 - 13552 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 14:13:14,879 - 13552 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13552 - Time took: 4.38 - __SPLIT__ 2026-05-12 14:13:35,250 - 13553 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13553 - __SPLIT__ 2026-05-12 14:13:35,251 - 13553 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:13:35,252 - 13553 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:37,377 - 13553 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:13:37,377 - 13553 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:13:37,377 - 13553 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13553 - __SPLIT__ 2026-05-12 14:13:37,377 - 13553 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:37,664 - 13553 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:37,664 - 13553 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:37,954 - 13553 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:37,954 - 13553 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8342' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:38,246 - 13553 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:38,250 - 13553 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 14:13:38,251 - 13553 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 14:13:38,251 - 13553 - 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 = 13065... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:38,543 - 13553 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-12 14:13:38,543 - 13553 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 14:13:38,552 - 13553 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 23885 AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:38,853 - 13553 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:13:38,860 - 13553 - 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-05-12 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 = 23885 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:39,167 - 13553 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:13:39,175 - 13553 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:13:39,175 - 13553 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:39,497 - 13553 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 14:13:40,552 - 13553 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:13:40,552 - 13553 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 14:13:40,552 - 13553 - src.utils.log - INFO - Total invoice generated: 4 - __SPLIT__ 2026-05-12 14:13:40,552 - 13553 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:02.954' and ServiceSetupId = 23885 and GenerateWorkOrderHistoryId= 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:40,845 - 13553 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-12 14:13:40,852 - 13553 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:13:40,852 - 13553 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:41,170 - 13553 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 14:13:42,194 - 13553 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:13:42,195 - 13553 - 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 (799066, 799067, 799068, 799069);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:42,482 - 13553 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-12 14:13:42,483 - 13553 - 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 = 23885 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:42,781 - 13553 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:42,787 - 13553 - 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 = 13057;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:43,082 - 13553 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:43,083 - 13553 - 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 = 13065;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:43,370 - 13553 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:13:43,375 - 13553 - 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 = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:43,667 - 13553 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:13:43,667 - 13553 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 14:13:43,667 - 13553 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:13:43,667 - 13553 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:43,984 - 13553 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 14:13:45,002 - 13553 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:13:45,003 - 13553 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:45,299 - 13553 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:45,300 - 13553 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 10:13:45.300' WHERE GenerateInvoiceHistoryId = 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:13:45,592 - 13553 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:13:45,593 - 13553 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 14:13:45,593 - 13553 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13553 - Time took: 10.34 - __SPLIT__ 2026-05-12 14:15:15,538 - [13553] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799066] user_id=122885 company_id=135 project_id=[13553] publish_all=False - __SPLIT__ 2026-05-12 14:15:15,538 - [13553] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-12 14:15:15,539 - [13553] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-12 14:15:15,539 - [13553] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:15:15,540 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:17,598 - [13553] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:15:17,598 - [13553] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:15:17,598 - [13553] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-12 10:15:17.598' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:17,895 - [13553] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:15:17,896 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 799066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:18,189 - [13553] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:15:18,189 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 799066;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:18,516 - [13553] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:15:18,518 - [13553] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:18,986 - [13553] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 14:15:20,036 - [13553] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 14:15:20,178 - [13553] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 14:15:20,178 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:20,500 - [13553] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:15:20,503 - [13553] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-12 14:15:20,918 - [13553] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:15:20,921 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:21,211 - [13553] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:15:21,213 - [13553] - src.utils.log - INFO - 1 Invoice Generated : [166034] - __SPLIT__ 2026-05-12 14:15:21,213 - [13553] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '166035' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:21,513 - [13553] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:15:21,515 - [13553] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:15:21,515 - [13553] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:21,831 - [13553] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-05-12 14:15:22,860 - [13553] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 14:15:22,861 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 406641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:23,156 - [13553] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:15:23,159 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 853967;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:23,455 - [13553] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:15:23,455 - [13553] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 853967;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:23,746 - [13553] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:15:23,749 - [13553] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:15:23,749 - [13553] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:24,074 - [13553] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 14:15:25,107 - [13553] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 14:15:25,107 - [13553] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 14:15:25,107 - [13553] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 14:15:25,108 - [13553] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 853967 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:25,404 - [13553] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:15:25,404 - [13553] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 853967 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:25,687 - [13553] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:15:25,687 - [13553] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 853967 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:25,978 - [13553] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:15:25,979 - [13553] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 799066 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:26,266 - [13553] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:15:26,266 - [13553] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 10:15:17.598' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13553;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:15:26,558 - [13553] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:15:26,558 - [13553] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 11.02 - __SPLIT__ 2026-05-12 14:17:35,560 - 13554 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=13554 - __SPLIT__ 2026-05-12 14:17:35,561 - 13554 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:17:35,561 - 13554 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:37,640 - 13554 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:17:37,640 - 13554 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:17:37,640 - 13554 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 13554 - __SPLIT__ 2026-05-12 14:17:37,640 - 13554 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:38,239 - 13554 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:17:38,239 - 13554 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:38,533 - 13554 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:17:38,534 - 13554 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 135 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '8342' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:38,861 - 13554 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:17:38,865 - 13554 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-12 14:17:38,866 - 13554 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 14:17:38,867 - 13554 - 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 = 13065... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:39,172 - 13554 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-12 14:17:39,172 - 13554 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 14:17:39,182 - 13554 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 23885 AND TransactionDate BETWEEN '2026-05-12 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:39,473 - 13554 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:17:39,474 - 13554 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (799067, 799068, 799069) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:39,765 - 13554 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:17:39,766 - 13554 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (853968, 853969, 853970) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:40,067 - 13554 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:17:40,067 - 13554 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (853968, 853969, 853970) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:40,365 - 13554 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:17:40,365 - 13554 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (853968, 853969, 853970) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:40,657 - 13554 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:17:40,657 - 13554 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (799067, 799068, 799069) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:40,951 - 13554 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:17:40,957 - 13554 - 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-05-12 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 = 23885 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:41,248 - 13554 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:17:41,263 - 13554 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:17:41,263 - 13554 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:41,588 - 13554 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-12 14:17:42,618 - 13554 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:17:42,619 - 13554 - src.utils.log - INFO - - __SPLIT__ 2026-05-12 14:17:42,619 - 13554 - src.utils.log - INFO - Total invoice generated: 3 - __SPLIT__ 2026-05-12 14:17:42,619 - 13554 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:03.012' and ServiceSetupId = 23885 and GenerateWorkOrderHistoryId= 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:42,901 - 13554 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:17:42,908 - 13554 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:17:42,908 - 13554 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:43,226 - 13554 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-12 14:17:45,032 - 13554 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:17:45,033 - 13554 - 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 (799072, 799070, 799071);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:45,340 - 13554 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-12 14:17:45,341 - 13554 - 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 = 23885 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:45,638 - 13554 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:17:45,648 - 13554 - 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 = 23885;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:45,965 - 13554 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:17:45,965 - 13554 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 14:17:45,966 - 13554 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:17:45,966 - 13554 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:46,306 - 13554 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-12 14:17:47,337 - 13554 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:17:47,337 - 13554 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:47,623 - 13554 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:17:47,623 - 13554 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-12 10:17:47.623' WHERE GenerateInvoiceHistoryId = 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:17:47,915 - 13554 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:17:47,915 - 13554 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 14:17:47,915 - 13554 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:13554 - Time took: 12.35 - __SPLIT__ 2026-05-12 14:18:20,659 - [13554] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[799070] user_id=122885 company_id=135 project_id=[13554] publish_all=False - __SPLIT__ 2026-05-12 14:18:20,659 - [13554] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-12 14:18:20,660 - [13554] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-12 14:18:20,660 - [13554] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:18:20,660 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:22,762 - [13554] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:18:22,762 - [13554] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-12 14:18:22,762 - [13554] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-12 10:18:22.762' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:23,124 - [13554] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:18:23,125 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 799070;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:23,418 - [13554] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:18:23,419 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 799070;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:23,722 - [13554] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:18:23,724 - [13554] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:24,185 - [13554] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 14:18:25,246 - [13554] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 14:18:25,387 - [13554] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 14:18:25,388 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:25,762 - [13554] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:18:25,765 - [13554] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-12 14:18:26,234 - [13554] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:18:26,237 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:26,553 - [13554] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:18:26,554 - [13554] - src.utils.log - INFO - 1 Invoice Generated : [166035] - __SPLIT__ 2026-05-12 14:18:26,554 - [13554] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '166036' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:26,859 - [13554] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:18:26,861 - [13554] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:18:26,861 - [13554] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:27,202 - [13554] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-05-12 14:18:28,235 - [13554] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 14:18:28,236 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 406644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:28,523 - [13554] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:18:28,525 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 853971;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:28,826 - [13554] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:18:28,826 - [13554] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 853971;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:29,128 - [13554] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:18:29,130 - [13554] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:18:29,130 - [13554] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:29,499 - [13554] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 14:18:30,543 - [13554] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 14:18:30,543 - [13554] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 14:18:30,544 - [13554] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 14:18:30,544 - [13554] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 853971 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:30,830 - [13554] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:18:30,830 - [13554] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 853971 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:31,124 - [13554] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:18:31,125 - [13554] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 853971 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:31,420 - [13554] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:18:31,420 - [13554] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 799070 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:31,713 - [13554] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:18:31,713 - [13554] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 10:18:22.762' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13554;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:18:32,010 - [13554] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:18:32,011 - [13554] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 11.35 - __SPLIT__ 2026-05-12 14:44:45,948 - 124394 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124394 - __SPLIT__ 2026-05-12 14:44:45,949 - 124394 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124394 - __SPLIT__ 2026-05-12 14:44:45,950 - 124394 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:44:45,950 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:48,011 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:44:48,012 - 124394 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 14:44:48,012 - 124394 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 14:44:48,013 - 124394 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 14:44:48,013 - 124394 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:50,631 - 124394 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:44:50,631 - 124394 - 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 = 124394), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124394), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124394 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-05-12 14:44:51,105 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:44:51,105 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:51,390 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:44:51,393 - 124394 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 14:44:51,394 - 124394 - 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 = 14264... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:51,697 - 124394 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-12 14:44:51,697 - 124394 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 14:44:51,700 - 124394 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-12 14:44:51,701 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:51,986 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:51,986 - 124394 - 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-05-12 00:00:00' and ServiceDate <= '2028-12-31 00:00:00' and ServiceSetupId = 150300 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:52,297 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:52,892 - 124394 - src.utils.log - INFO - Generating work orders for setup: 150300 - __SPLIT__ 2026-05-12 14:44:52,929 - 124394 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-12 14:44:52,933 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:53,215 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:44:53,217 - 124394 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-12 14:44:53,217 - 124394 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-12 14:44:53,217 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:53,539 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:53,539 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:53,860 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:53,860 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:54,161 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:54,161 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:54,496 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:54,496 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:54,817 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:54,817 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:55,132 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:55,133 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:55,426 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:55,427 - 124394 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150300 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:55,763 - 124394 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:44:55,763 - 124394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:44:55,764 - 124394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:56,084 - 124394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-12 14:44:57,145 - 124394 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 14:44:57,146 - 124394 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-12 18:20:02.926' and ServiceSetupId = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:57,461 - 124394 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:44:57,462 - 124394 - src.utils.log - INFO - Id's of work order inserted to DB: [3673169 3673170] - __SPLIT__ 2026-05-12 14:44:57,462 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:57,746 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:57,746 - 124394 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-12 14:44:57,747 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:58,040 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:44:58,040 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:58,327 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:44:58,335 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:58,635 - 124394 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:44:58,637 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:58,921 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:58,921 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:59,204 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:59,205 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:59,492 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:59,493 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:44:59,776 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:44:59,777 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:00,100 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:00,101 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:00,396 - 124394 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:00,409 - 124394 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-12 14:45:00,409 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 14:45:00,409 - 124394 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,409 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-12 14:45:00,409 - 124394 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:00,410 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673169 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:00,693 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:00,694 - 124394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:00,983 - 124394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-12 14:45:01,996 - 124394 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-12 14:45:01,997 - 124394 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-12 14:45:01,997 - 124394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:01,997 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673169 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:02,284 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:02,285 - 124394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:02,583 - 124394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 14:45:03,593 - 124394 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 14:45:03,593 - 124394 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 14:45:03,594 - 124394 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:03,594 - 124394 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673170 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:03,880 - 124394 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:03,881 - 124394 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:04,173 - 124394 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 14:45:05,190 - 124394 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 14:45:05,190 - 124394 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 14:45:05,190 - 124394 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:05,480 - 124394 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:45:05,480 - 124394 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-12 14:45:05,480 - 124394 - src.utils.log - INFO - Time took to perform operation: 19.53 - __SPLIT__ 2026-05-12 14:45:05,480 - 124394 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:05,765 - 124394 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:45:05,765 - 124394 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-12 10:45:05.765' WHERE GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:06,049 - 124394 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:45:26,012 - [124394] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673169, 3673170] user_id=43135 company_id=133 project_id=[124394] publish_all=False - __SPLIT__ 2026-05-12 14:45:26,013 - [124394] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673169, 3673170] user_id=43135 company_id=133 project_id=[124394] publish_all=False - __SPLIT__ 2026-05-12 14:45:26,013 - [124394] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124394] - __SPLIT__ 2026-05-12 14:45:26,014 - [124394] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 14:45:26,014 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:28,112 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:28,113 - [124394] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 14:45:28,113 - [124394] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 14:45:28,114 - [124394] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 14:45:28,114 - [124394] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:30,527 - [124394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:45:30,527 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:30,797 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:30,798 - [124394] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-12 14:45:30,798 - [124394] - 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 = 150300 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:31,082 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:31,083 - [124394] - 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 = 150300 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:31,359 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:31,359 - [124394] - 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 = 150300 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:31,647 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:31,651 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:31,914 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:31,915 - [124394] - 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-05-12 14:45:32,182 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:32,182 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:32,445 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:32,446 - [124394] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:32,712 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:32,713 - [124394] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:32,983 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:32,987 - [124394] - 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 = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:33,262 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:33,264 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:33,527 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:33,528 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14832' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:33,791 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:33,793 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419363', '1419364') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:34,070 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:34,070 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:34,503 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-12 14:45:35,542 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 14:45:35,674 - [124394] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 14:45:35,675 - [124394] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:35,939 - [124394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:45:35,941 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419363', '1419364') AND wo.AccountNumber = '14832' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-12 14:45:36,222 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:36,223 - [124394] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-12 14:45:36,223 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:36,569 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:36,570 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:36,840 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:36,840 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:37,134 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:37,134 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:37,401 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:37,401 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:37,671 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:37,671 - [124394] - 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 (3673169, 3673170)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:37,971 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:37,971 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673169, 3673170) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:38,239 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:38,239 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673169, 3673170);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:38,508 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:38,511 - [124394] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-12 14:45:38,524 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:38,787 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:38,787 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:39,051 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:39,055 - [124394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:39,055 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:39,345 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-12 14:45:40,293 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-12 14:45:40,294 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150300 AND WorkOrderNo IN ('887999', '9904839') AND GenerateWorkOrderHistoryId = 124394;... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-12 14:45:40,613 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:40,614 - [124394] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-12 14:45:40,620 - [124394] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-12 14:45:40,620 - [124394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:40,620 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:40,892 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-12 14:45:41,828 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-12 14:45:41,829 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-12 14:45:41,829 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-12 14:45:41,829 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-12 14:45:41,829 - [124394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:41,829 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:42,099 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-12 14:45:43,043 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-12 14:45:43,044 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-12 14:45:43,044 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 14:45:43,044 - [124394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:43,045 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:43,317 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-12 14:45:44,253 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-12 14:45:44,254 - [124394] - 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 = 150300... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:44,520 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:44,526 - [124394] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-12 14:45:44,527 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:44,928 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 14:45:45,860 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 14:45:45,991 - [124394] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 14:45:45,992 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-05-12 10:45:44.521';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:46,550 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:46,553 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:46,818 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:46,826 - [124394] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-12 10:45:44.521'; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-12 14:45:47,273 - [124394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 14:45:47,277 - [124394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:47,278 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:47,551 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-12 14:45:48,512 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 14:45:48,513 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419363', '1419364')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:48,876 - [124394] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 14:45:48,885 - [124394] - 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 = 150300 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:49,155 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:49,156 - [124394] - 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 = 150300 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:49,426 - [124394] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 14:45:49,426 - [124394] - 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 = 150300 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:49,696 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:49,697 - [124394] - 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 = 150300 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:49,966 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:49,979 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:50,244 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:50,249 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:50,517 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:50,520 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150300;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:50,787 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:50,788 - [124394] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-12 14:45:50,788 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 14:45:50,788 - [124394] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 14:45:50,788 - [124394] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:51,060 - [124394] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 14:45:51,992 - [124394] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 14:45:51,992 - [124394] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 14:45:51,992 - [124394] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-12 14:45:51,993 - [124394] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-12 14:45:51,993 - [124394] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124394 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:52,260 - [124394] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 14:45:52,266 - [124394] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-12 14:45:52,398 - [124394] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_3056d81b5c - __SPLIT__ 2026-05-12 14:45:52,669 - [124394] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_3056d81b5c - __SPLIT__ 2026-05-12 14:45:52,937 - [124394] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-12 14:45:53,083 - [124394] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-12 14:45:53,224 - [124394] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_3056d81b5c - __SPLIT__ 2026-05-12 14:45:53,224 - [124394] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_3056d81b5c - __SPLIT__ 2026-05-12 14:45:53,225 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124394 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:53,490 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:53,490 - [124394] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-12 14:45:53,490 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:54,026 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:54,026 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:54,488 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:54,488 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:54,757 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:54,757 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:55,172 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:55,173 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:55,453 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:55,453 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:55,728 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:55,728 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:55,995 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:55,995 - [124394] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673169, 3673170) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:56,426 - [124394] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 14:45:56,426 - [124394] - src.utils.log - INFO - Work order published ids: (3673169, 3673170) - __SPLIT__ 2026-05-12 14:45:56,426 - [124394] - src.utils.log - INFO - Time took to perform operation in publishing [124394]: 30.41 - __SPLIT__ 2026-05-12 14:45:56,426 - [124394] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124394] - __SPLIT__ 2026-05-12 14:45:56,426 - [124394] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 10:45:56.426' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124394;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 14:45:56,693 - [124394] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:41:17,954 - 124398 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124398 - __SPLIT__ 2026-05-12 17:41:17,955 - 124398 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124398 - __SPLIT__ 2026-05-12 17:41:17,956 - 124398 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 17:41:17,956 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:20,148 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:20,149 - 124398 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 17:41:20,149 - 124398 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 17:41:20,150 - 124398 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 17:41:20,150 - 124398 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:22,208 - 124398 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:41:22,208 - 124398 - 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 = 124398), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124398), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124398 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-05-12 17:41:23,525 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:23,525 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:23,791 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:23,794 - 124398 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-12 17:41:23,795 - 124398 - 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 = 14497... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:24,069 - 124398 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-12 17:41:24,070 - 124398 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-12 17:41:24,072 - 124398 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-12 17:41:24,073 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:24,339 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:24,339 - 124398 - 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-05-12 00:00:00' and ServiceDate <= '2028-12-22 00:00:00' and ServiceSetupId = 150304 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:24,617 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:25,172 - 124398 - src.utils.log - INFO - Generating work orders for setup: 150304 - __SPLIT__ 2026-05-12 17:41:25,247 - 124398 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-12 17:41:25,253 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:25,527 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:25,529 - 124398 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-12 17:41:25,529 - 124398 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-12 17:41:25,529 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:26,365 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:26,365 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:26,845 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:26,845 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:27,127 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:27,128 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:27,717 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:27,717 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:28,101 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:28,101 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:28,462 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:28,462 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:28,745 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:28,745 - 124398 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150304 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:29,710 - 124398 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:41:29,710 - 124398 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:41:29,711 - 124398 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:30,038 - 124398 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-12 17:41:31,340 - 124398 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-12 17:41:31,341 - 124398 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 8 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-12 18:20:02.926' and ServiceSetupId = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:31,623 - 124398 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-12 17:41:31,623 - 124398 - src.utils.log - INFO - Id's of work order inserted to DB: [3673195 3673196 3673197 3673198 3673199 3673200 3673201 3673202] - __SPLIT__ 2026-05-12 17:41:31,623 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:31,888 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:31,889 - 124398 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-12 17:41:31,889 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:32,156 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:32,157 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:32,422 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:32,429 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:32,704 - 124398 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 17:41:32,705 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:32,970 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:32,971 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:33,240 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:33,240 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:33,506 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:33,507 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:33,771 - 124398 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:41:33,773 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:34,898 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:34,898 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:35,164 - 124398 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:41:35,178 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3673197', '3673201', '3673196', '3673202', '3673200', '3673195', '3673198', '3673199') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:35,443 - 124398 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-12 17:41:35,444 - 124398 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:35,737 - 124398 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-12 17:41:35,738 - 124398 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:41:35,739 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673195, 3673196, 3673197, 3673198, 3673199, 3673200, 3673201, 3673202) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:36,004 - 124398 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-12 17:41:36,005 - 124398 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:36,304 - 124398 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-12 17:41:37,241 - 124398 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-12 17:41:37,242 - 124398 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-12 17:41:37,242 - 124398 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-12 17:41:37,242 - 124398 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 17:41:37,242 - 124398 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:41:37,243 - 124398 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673195, 3673196, 3673197, 3673198, 3673199, 3673200, 3673201, 3673202) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:37,506 - 124398 - src.utils.log - INFO - βœ… Fetched 8 rows - __SPLIT__ 2026-05-12 17:41:37,507 - 124398 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 8 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:37,805 - 124398 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-12 17:41:38,747 - 124398 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-12 17:41:38,748 - 124398 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-12 17:41:38,748 - 124398 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:39,014 - 124398 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:41:39,014 - 124398 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-12 17:41:39,014 - 124398 - src.utils.log - INFO - Time took to perform operation: 21.06 - __SPLIT__ 2026-05-12 17:41:39,014 - 124398 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:39,279 - 124398 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:41:39,279 - 124398 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-12 13:41:39.279' WHERE GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:41:39,546 - 124398 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:42:10,136 - [124398] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673202] user_id=43135 company_id=133 project_id=[124398] publish_all=False - __SPLIT__ 2026-05-12 17:42:10,137 - [124398] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3673202] user_id=43135 company_id=133 project_id=[124398] publish_all=False - __SPLIT__ 2026-05-12 17:42:10,137 - [124398] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124398] - __SPLIT__ 2026-05-12 17:42:10,137 - [124398] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-12 17:42:10,137 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:12,526 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:12,527 - [124398] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-12 17:42:12,527 - [124398] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-12 17:42:12,527 - [124398] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-12 17:42:12,527 - [124398] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:14,447 - [124398] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:42:14,447 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:14,727 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:14,727 - [124398] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-12 17:42:14,728 - [124398] - 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 = 150304 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:15,014 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:15,015 - [124398] - 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 = 150304 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:15,298 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:15,299 - [124398] - 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 = 150304 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:15,589 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:15,593 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:15,870 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:15,870 - [124398] - 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-05-12 17:42:16,157 - [124398] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-12 17:42:16,158 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:16,432 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:16,432 - [124398] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:16,712 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:16,712 - [124398] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:16,990 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:16,994 - [124398] - 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 = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:17,273 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:17,275 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:17,549 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:17,550 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14832' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:17,826 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:17,828 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1419370' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:18,104 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:18,104 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:18,577 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-12 17:42:19,686 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 17:42:19,823 - [124398] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 17:42:19,825 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1419370' AND wo.AccountNumber = '14832' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-12 17:42:20,101 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:20,102 - [124398] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-12 17:42:20,102 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:20,409 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:20,410 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:20,686 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:20,687 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:20,981 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:20,981 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:21,256 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:21,256 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:21,532 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:21,532 - [124398] - 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 = 3673202... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:21,832 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:21,832 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3673202 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:22,114 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:22,114 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3673202;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:22,389 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:22,392 - [124398] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-12 17:42:22,405 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:22,679 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:22,679 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:22,955 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:22,959 - [124398] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:42:22,959 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:23,285 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-12 17:42:24,264 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-12 17:42:24,265 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150304 AND WorkOrderNo = '1182886' AND GenerateWorkOrderHistoryId = 124398; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:24,587 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:24,593 - [124398] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-12 17:42:24,593 - [124398] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:42:24,593 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:24,896 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-12 17:42:25,944 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-12 17:42:25,945 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-12 17:42:25,945 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-12 17:42:25,945 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-12 17:42:25,945 - [124398] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:42:25,945 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:26,249 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-12 17:42:27,249 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-12 17:42:27,249 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-12 17:42:27,249 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-12 17:42:27,249 - [124398] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:42:27,249 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:27,560 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-12 17:42:28,548 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-12 17:42:28,549 - [124398] - 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 = 150304... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:28,824 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:28,830 - [124398] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-05-12 17:42:28,831 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:29,275 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-12 17:42:30,334 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-12 17:42:30,471 - [124398] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-12 17:42:30,471 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-05-12 13:42:28.825';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:37,542 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:37,545 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:37,820 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:37,828 - [124398] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-05-12 13:42:28.825'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-12 17:42:38,270 - [124398] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-12 17:42:38,275 - [124398] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:42:38,275 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:38,583 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-05-12 17:42:39,624 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-12 17:42:39,625 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1419370'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:41,197 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:41,206 - [124398] - 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 = 150304 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:41,484 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:41,484 - [124398] - 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 = 150304 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:41,761 - [124398] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-12 17:42:41,762 - [124398] - 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 = 150304 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:42,039 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:42,039 - [124398] - 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 = 150304 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:42,317 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:42,329 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:42,604 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:42,609 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:42,885 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:42,888 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150304;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:43,164 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:43,164 - [124398] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-12 17:42:43,164 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-12 17:42:43,165 - [124398] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-12 17:42:43,165 - [124398] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:43,473 - [124398] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-05-12 17:42:44,460 - [124398] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-12 17:42:44,460 - [124398] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-12 17:42:44,461 - [124398] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-12 17:42:44,461 - [124398] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-12 17:42:44,461 - [124398] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124398 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:44,751 - [124398] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-12 17:42:44,757 - [124398] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-12 17:42:44,895 - [124398] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0cb34a286d - __SPLIT__ 2026-05-12 17:42:45,173 - [124398] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0cb34a286d - __SPLIT__ 2026-05-12 17:42:45,447 - [124398] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-12 17:42:45,593 - [124398] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-12 17:42:45,735 - [124398] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0cb34a286d - __SPLIT__ 2026-05-12 17:42:45,735 - [124398] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0cb34a286d - __SPLIT__ 2026-05-12 17:42:45,735 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124398 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:46,010 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:46,010 - [124398] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-12 17:42:46,010 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:46,438 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:46,438 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:46,800 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:46,800 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:47,075 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:47,076 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:47,437 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:47,437 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:47,718 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:47,718 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:47,997 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:47,997 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:48,273 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:48,273 - [124398] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673202 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:48,595 - [124398] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-12 17:42:48,596 - [124398] - src.utils.log - INFO - Work order published ids: (3673202,) - __SPLIT__ 2026-05-12 17:42:48,596 - [124398] - src.utils.log - INFO - Time took to perform operation in publishing [124398]: 38.46 - __SPLIT__ 2026-05-12 17:42:48,596 - [124398] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124398] - __SPLIT__ 2026-05-12 17:42:48,596 - [124398] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-12 13:42:48.596' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124398;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-12 17:42:48,876 - [124398] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:21:39,644 - 12165 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12165 - __SPLIT__ 2026-05-13 09:21:39,645 - 12165 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12165 - __SPLIT__ 2026-05-13 09:21:39,645 - 12165 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-13 09:21:39,645 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:41,857 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:41,858 - 12165 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-13 09:21:41,858 - 12165 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:42,159 - 12165 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:21:42,160 - 12165 - 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 = 12165), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12165), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12165 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-05-13 09:21:42,488 - 12165 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:21:42,488 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:42,792 - 12165 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:21:42,795 - 12165 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-13 09:21:42,796 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:43,104 - 12165 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-13 09:21:43,105 - 12165 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-13 09:21:43,108 - 12165 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-13 09:21:43,108 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:43,410 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:43,410 - 12165 - 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-05-13 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 23889 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:43,717 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:44,328 - 12165 - src.utils.log - INFO - Generating work orders for setup: 23889 - __SPLIT__ 2026-05-13 09:21:44,377 - 12165 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-13 09:21:44,461 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:44,765 - 12165 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:21:44,767 - 12165 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-13 09:21:44,767 - 12165 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-13 09:21:44,767 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:45,112 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:45,113 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:45,415 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:45,415 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:45,719 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:45,719 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:46,020 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:46,020 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:46,342 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:46,342 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:46,655 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:46,655 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:46,962 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:46,962 - 12165 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23889 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:47,280 - 12165 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:21:47,280 - 12165 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:21:47,280 - 12165 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:47,649 - 12165 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-13 09:21:49,155 - 12165 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 09:21:49,156 - 12165 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-12 18:20:03.141' and ServiceSetupId = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:49,458 - 12165 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-13 09:21:49,458 - 12165 - src.utils.log - INFO - Id's of work order inserted to DB: [2729591 2729592 2729593] - __SPLIT__ 2026-05-13 09:21:49,458 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:49,755 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:49,756 - 12165 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-13 09:21:49,756 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:50,054 - 12165 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:21:50,054 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:50,355 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:50,359 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:50,667 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:50,668 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:50,959 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:50,960 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:51,258 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:51,258 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:51,554 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:51,555 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:51,852 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:51,852 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:52,235 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:52,235 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:52,557 - 12165 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:21:52,562 - 12165 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-13 09:21:52,562 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-13 09:21:52,562 - 12165 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,562 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-13 09:21:52,562 - 12165 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,562 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-13 09:21:52,563 - 12165 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:21:52,564 - 12165 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729592, 2729593, 2729591) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:52,854 - 12165 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-13 09:21:52,855 - 12165 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:53,180 - 12165 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-13 09:21:54,286 - 12165 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-13 09:21:54,286 - 12165 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-13 09:21:54,287 - 12165 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:54,588 - 12165 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:21:54,588 - 12165 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-13 09:21:54,588 - 12165 - src.utils.log - INFO - Time took to perform operation: 14.94 - __SPLIT__ 2026-05-13 09:21:54,588 - 12165 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:54,881 - 12165 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:21:54,881 - 12165 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-13 05:21:54.881' WHERE GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:21:55,177 - 12165 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:27:02,720 - [12165] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729593] user_id=122885 company_id=135 project_id=[12165] publish_all=False - __SPLIT__ 2026-05-13 09:27:02,721 - [12165] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2729593] user_id=122885 company_id=135 project_id=[12165] publish_all=False - __SPLIT__ 2026-05-13 09:27:02,721 - [12165] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12165] - __SPLIT__ 2026-05-13 09:27:02,721 - [12165] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-13 09:27:02,721 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:04,852 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:04,852 - [12165] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-13 09:27:04,852 - [12165] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:05,158 - [12165] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:27:05,158 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:05,469 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:05,469 - [12165] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-13 09:27:05,470 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23889 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:05,773 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:05,774 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23889 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:06,086 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:06,087 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23889 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:06,404 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:06,407 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:06,706 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:06,706 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:07,014 - [12165] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-13 09:27:07,014 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:07,311 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:07,311 - [12165] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 1 OUTPUT INSERTED.NextNumber - 1 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:07,613 - [12165] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-13 09:27:07,616 - [12165] - 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 = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:07,927 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:07,929 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:08,234 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:08,234 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8345' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:08,541 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:08,543 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '166050R' AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:08,848 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:08,848 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:09,413 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-13 09:27:10,536 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-13 09:27:10,687 - [12165] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-13 09:27:10,689 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '166050R' AND wo.AccountNumber = '8345' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-05-13 09:27:10,990 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:10,991 - [12165] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-13 09:27:10,991 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:11,304 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:11,304 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:11,605 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:11,605 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:11,938 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:11,938 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:12,261 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:12,261 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:12,558 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:12,558 - [12165] - 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 = 2729593... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:12,875 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:12,875 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 2729593 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:13,174 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:13,174 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 2729593;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:13,520 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:13,523 - [12165] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-13 09:27:13,529 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:13,858 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:13,858 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:14,160 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:14,164 - [12165] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:27:14,164 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:14,517 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-13 09:27:15,576 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-13 09:27:15,577 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23889 AND WorkOrderNo = '8426808' AND GenerateWorkOrderHistoryId = 12165; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:15,944 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:15,950 - [12165] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-13 09:27:15,950 - [12165] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:27:15,950 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:16,285 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-13 09:27:17,350 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-13 09:27:17,350 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderCrew: - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:27:17,351 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:17,686 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-13 09:27:18,741 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-13 09:27:18,742 - [12165] - 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 = 23889... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:19,048 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:19,054 - [12165] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-05-13 09:27:19,055 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:19,536 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-13 09:27:20,606 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-13 09:27:20,757 - [12165] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-13 09:27:20,758 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 135 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-05-13 05:27:19.049';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:21,126 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:21,129 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:21,429 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:21,437 - [12165] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-05-13 05:27:19.049'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-05-13 09:27:21,841 - [12165] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 09:27:21,845 - [12165] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:27:21,845 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:22,173 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-05-13 09:27:23,232 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-13 09:27:23,233 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '166050R'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:23,550 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:23,559 - [12165] - 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 = 23889 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:23,858 - [12165] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 09:27:23,858 - [12165] - 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 = 23889 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:24,165 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:24,165 - [12165] - 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 = 23889 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:24,457 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:24,458 - [12165] - 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 = 23889 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:24,760 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:24,772 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:25,067 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:25,072 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:25,374 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:25,377 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 23889;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:25,677 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:25,678 - [12165] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-13 09:27:25,678 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-13 09:27:25,678 - [12165] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 09:27:25,678 - [12165] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:26,005 - [12165] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-05-13 09:27:27,047 - [12165] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-13 09:27:27,047 - [12165] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-13 09:27:27,047 - [12165] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-13 09:27:27,048 - [12165] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-13 09:27:27,048 - [12165] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12165 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:27,381 - [12165] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 09:27:27,387 - [12165] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-13 09:27:27,556 - [12165] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0170809169 - __SPLIT__ 2026-05-13 09:27:27,889 - [12165] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0170809169 - __SPLIT__ 2026-05-13 09:27:28,186 - [12165] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-13 09:27:28,365 - [12165] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-13 09:27:28,523 - [12165] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0170809169 - __SPLIT__ 2026-05-13 09:27:28,524 - [12165] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0170809169 - __SPLIT__ 2026-05-13 09:27:28,524 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12165 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:28,822 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:28,822 - [12165] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-13 09:27:28,822 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:29,143 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:29,144 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:29,451 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:29,451 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:29,754 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:29,754 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:30,082 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:30,082 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:30,398 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:30,399 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:30,696 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:30,696 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:30,998 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:30,998 - [12165] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2729593 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:31,311 - [12165] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 09:27:31,311 - [12165] - src.utils.log - INFO - Work order published ids: (2729593,) - __SPLIT__ 2026-05-13 09:27:31,311 - [12165] - src.utils.log - INFO - Time took to perform operation in publishing [12165]: 28.59 - __SPLIT__ 2026-05-13 09:27:31,311 - [12165] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12165] - __SPLIT__ 2026-05-13 09:27:31,311 - [12165] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-13 05:27:31.311' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12165;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 09:27:31,628 - [12165] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 11:48:31,691 - 42403 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42403 - __SPLIT__ 2026-05-13 11:48:31,693 - 42403 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-13 11:48:31,693 - 42403 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:33,745 - 42403 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 11:48:33,746 - 42403 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-13 11:48:33,746 - 42403 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-13 11:48:33,746 - 42403 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-13 11:48:33,747 - 42403 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42403 - __SPLIT__ 2026-05-13 11:48:33,747 - 42403 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42403;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:35,667 - 42403 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 11:48:35,667 - 42403 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42403;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:35,944 - 42403 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 11:48:35,944 - 42403 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14829' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:36,228 - 42403 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-13 11:48:36,232 - 42403 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-13 11:48:36,233 - 42403 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-13 11:48:36,233 - 42403 - 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 (13977, 13978, 13966, 14633)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:36,526 - 42403 - src.utils.log - INFO - βœ… Fetched 96 rows - __SPLIT__ 2026-05-13 11:48:36,527 - 42403 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-13 11:48:36,581 - 42403 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (150275, 150277, 150278, 150279, 150281, 150282, 150283, 150284) AND TransactionDate BETWEEN '2026-05-13 00:00:00' AND '2026-07-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:36,858 - 42403 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 11:48:36,865 - 42403 - 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-05-13 00:00:00' AND '2026-07-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (150275, 150277, 150278, 150279, 150281, 150282, 150283, 150284) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:37,162 - 42403 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 11:48:37,171 - 42403 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 11:48:37,171 - 42403 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:37,496 - 42403 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-13 11:48:38,629 - 42403 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 11:48:38,629 - 42403 - src.utils.log - INFO - - __SPLIT__ 2026-05-13 11:48:38,629 - 42403 - src.utils.log - INFO - Total invoice generated: 24 - __SPLIT__ 2026-05-13 11:48:38,630 - 42403 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 24 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-12 12:50:03.012' and ServiceSetupId in (150275, 150277, 150278, 150279, 150281, 150282, 150283, 150284) and GenerateWorkOrderHistoryId = 42403;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:38,910 - 42403 - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-05-13 11:48:38,919 - 42403 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 11:48:38,919 - 42403 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 24 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:39,222 - 42403 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 24) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-13 11:48:40,290 - 42403 - src.utils.log - INFO - βœ… All 24 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 11:48:40,291 - 42403 - 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 (636600, 636601, 636602, 636603, 636604, 636605, 636606, 636607, 636608, 636609, 636610, 636611, 636612, 636613, 636614, 636615, 636616, 636617, 636618, 636619, 636620, 636621, 636622, 636623);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:40,613 - 42403 - src.utils.log - INFO - βœ… Fetched 24 rows - __SPLIT__ 2026-05-13 11:48:40,614 - 42403 - 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 (150275, 150277, 150278, 150279, 150281, 150282, 150283, 150284) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:40,890 - 42403 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-05-13 11:48:40,898 - 42403 - 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 in (13962, 14509);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:41,170 - 42403 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-13 11:48:41,171 - 42403 - 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 in (13977, 13966);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:41,444 - 42403 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-13 11:48:41,449 - 42403 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (150275, 150277, 150278, 150279, 150281, 150282, 150283, 150284);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:41,721 - 42403 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 11:48:41,721 - 42403 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-13 11:48:41,722 - 42403 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 11:48:41,722 - 42403 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 29 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:42,026 - 42403 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 29) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-13 11:48:43,227 - 42403 - src.utils.log - INFO - βœ… All 29 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 11:48:43,227 - 42403 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42403;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:43,499 - 42403 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 11:48:43,499 - 42403 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-13 07:48:43.499' WHERE GenerateInvoiceHistoryId = 42403;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 11:48:43,771 - 42403 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 11:48:43,772 - 42403 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-13 11:48:43,772 - 42403 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42403 - Time took: 12.08 - __SPLIT__ 2026-05-13 12:07:36,284 - 42404 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42404 - __SPLIT__ 2026-05-13 12:07:36,299 - 42404 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-13 12:07:36,299 - 42404 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:39,027 - 42404 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 12:07:39,028 - 42404 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-13 12:07:39,028 - 42404 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-13 12:07:39,029 - 42404 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-13 12:07:39,029 - 42404 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42404 - __SPLIT__ 2026-05-13 12:07:39,029 - 42404 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42404;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:41,460 - 42404 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 12:07:41,461 - 42404 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42404;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:41,729 - 42404 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 12:07:41,730 - 42404 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14829' and ss.OrderType = 'Production';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:42,012 - 42404 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-13 12:07:42,016 - 42404 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-13 12:07:42,018 - 42404 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-13 12:07:42,018 - 42404 - 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 = 13977... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:42,298 - 42404 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-13 12:07:42,298 - 42404 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-13 12:07:42,316 - 42404 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (150283, 150279) AND TransactionDate BETWEEN '2026-05-13 00:00:00' AND '2026-11-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:42,591 - 42404 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-13 12:07:42,592 - 42404 - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceAutoGenerationId FROM Billing.InvoiceAutoGeneration WHERE TransactionAutoGenerationId IN (636608, 636609, 636610, 636618, 636619, 636620) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:42,864 - 42404 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-05-13 12:07:42,865 - 42404 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId IN (444704, 444705, 444693, 444694, 444695, 444703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:43,366 - 42404 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 12:07:43,366 - 42404 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId IN (444704, 444705, 444693, 444694, 444695, 444703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:43,654 - 42404 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 12:07:43,655 - 42404 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId IN (444704, 444705, 444693, 444694, 444695, 444703) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:44,001 - 42404 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 12:07:44,001 - 42404 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId IN (636608, 636609, 636610, 636618, 636619, 636620) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:44,287 - 42404 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-13 12:07:44,295 - 42404 - 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-05-13 00:00:00' AND '2026-11-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (150283, 150279) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:44,610 - 42404 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 12:07:44,619 - 42404 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 12:07:44,619 - 42404 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:44,894 - 42404 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-13 12:07:45,985 - 42404 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 12:07:45,985 - 42404 - src.utils.log - INFO - - __SPLIT__ 2026-05-13 12:07:45,986 - 42404 - src.utils.log - INFO - Total invoice generated: 14 - __SPLIT__ 2026-05-13 12:07:45,986 - 42404 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 14 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-13 12:05:13.372' and ServiceSetupId in (150283, 150279) and GenerateWorkOrderHistoryId = 42404;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:46,258 - 42404 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-05-13 12:07:46,266 - 42404 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 12:07:46,266 - 42404 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:46,541 - 42404 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-13 12:07:47,499 - 42404 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 12:07:47,499 - 42404 - 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 (636624, 636625, 636626, 636627, 636628, 636629, 636630, 636631, 636632, 636633, 636634, 636635, 636636, 636637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:47,772 - 42404 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-05-13 12:07:47,773 - 42404 - 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 (150283, 150279) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:48,043 - 42404 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-13 12:07:48,050 - 42404 - 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 = 13962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:48,319 - 42404 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 12:07:48,320 - 42404 - 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 = 13977;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:48,588 - 42404 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-13 12:07:48,594 - 42404 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE IsInitialSetupDiscount = 0 AND ssad.ServiceSetupId in (150283, 150279);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:48,862 - 42404 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-13 12:07:48,862 - 42404 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-13 12:07:48,862 - 42404 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-13 12:07:48,862 - 42404 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:49,136 - 42404 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-13 12:07:50,092 - 42404 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-13 12:07:50,092 - 42404 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42404;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:50,368 - 42404 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 12:07:50,368 - 42404 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-13 08:07:50.368' WHERE GenerateInvoiceHistoryId = 42404;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-13 12:07:50,636 - 42404 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-13 12:07:50,636 - 42404 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-13 12:07:50,637 - 42404 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42404 - Time took: 14.35 - __SPLIT__ 2026-05-15 07:06:40,135 - 12181 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12181 - __SPLIT__ 2026-05-15 07:06:40,137 - 12181 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12181 - __SPLIT__ 2026-05-15 07:06:40,151 - 12181 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-15 07:06:40,152 - 12181 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:06:42,805 - 12181 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:06:42,805 - 12181 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-15 07:06:42,806 - 12181 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12181;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:06:43,106 - 12181 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:06:43,106 - 12181 - 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 = 12181), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12181), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12181 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-05-15 07:06:43,415 - 12181 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:06:43,415 - 12181 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12181;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:06:43,699 - 12181 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:06:43,700 - 12181 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12181 - __SPLIT__ 2026-05-15 07:06:43,700 - 12181 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12181;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:06:43,978 - 12181 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:06:43,978 - 12181 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-15 03:06:43.978' WHERE GenerateWorkOrderHistoryId = 12181;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:06:44,261 - 12181 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:07:49,131 - 12182 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12182 - __SPLIT__ 2026-05-15 07:07:49,132 - 12182 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12182 - __SPLIT__ 2026-05-15 07:07:49,146 - 12182 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-15 07:07:49,146 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:51,741 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:07:51,741 - 12182 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-15 07:07:51,741 - 12182 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12182;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:52,051 - 12182 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:07:52,052 - 12182 - 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 = 12182), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12182), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12182 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-05-15 07:07:52,405 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:07:52,405 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12182;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:52,694 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:07:52,698 - 12182 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-15 07:07:52,699 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:53,032 - 12182 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-15 07:07:53,032 - 12182 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-15 07:07:53,036 - 12182 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-15 07:07:53,036 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:53,368 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:07:53,368 - 12182 - 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-01-01 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 23886 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:53,660 - 12182 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-15 07:07:54,266 - 12182 - src.utils.log - INFO - Generating work orders for setup: 23886 - __SPLIT__ 2026-05-15 07:07:55,098 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:55,384 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:07:55,445 - 12182 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-15 07:07:55,454 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:55,746 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:07:55,748 - 12182 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-15 07:07:55,748 - 12182 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-15 07:07:55,749 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:56,048 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:56,048 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:56,422 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:56,422 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:56,744 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:56,744 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:57,051 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:57,052 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:57,354 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:57,354 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:57,661 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:57,661 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:57,983 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:57,984 - 12182 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:58,316 - 12182 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:07:58,317 - 12182 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:07:58,317 - 12182 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:07:58,730 - 12182 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-15 07:08:02,248 - 12182 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-15 07:08:02,248 - 12182 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 84 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-13 17:56:31.528' and ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:02,558 - 12182 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:08:02,559 - 12182 - src.utils.log - INFO - Id's of work order inserted to DB: [2729643 2729644 2729645 2729646 2729647 2729648 2729649 2729650 2729651 2729652 2729653 2729654 2729655 2729656 2729657 2729658 2729659 2729660 2729661 2729662 2729663 2729664 2729665 2729666 2729667 2729668 2729669 2729670 2729671 2729672 2729673 2729674 2729675 2729676 2729677 2729678 2729679 2729680 2729681 2729682 2729683 2729684 2729685 2729686 2729687 2729688 2729689 2729690 2729691 2729692 2729693 2729694 2729695 2729696 2729697 2729698 2729699 2729700 2729701 2729702 2729703 2729704 2729705 2729706 2729707 2729708 2729709 2729710 2729711 2729712 2729713 2729714 2729715 2729716 2729717 2729718 2729719 2729720 2729721 2729722 2729723 2729724 2729725 2729726] - __SPLIT__ 2026-05-15 07:08:02,559 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:02,844 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:08:02,844 - 12182 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-15 07:08:02,845 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:03,136 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:08:03,136 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:03,434 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:08:03,441 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:03,730 - 12182 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-15 07:08:03,732 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:04,022 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:08:04,022 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:04,314 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:08:04,315 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:04,601 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:08:04,602 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:04,884 - 12182 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:08:04,885 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:05,887 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:08:05,887 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:06,219 - 12182 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:08:06,234 - 12182 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-15 07:08:06,234 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-15 07:08:06,234 - 12182 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,234 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-15 07:08:06,235 - 12182 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,235 - 12182 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:08:06,235 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('2729689', '2729652', '2729665', '2729703', '2729721', '2729718', '2729667', '2729702', '2729656', '2729681', '2729666', '2729678', '2729715', '2729707', '2729710', '2729653', '2729650', '2729697', '2729694', '2729720', '2729644', '2729676', '2729705', '2729643', '2729664', '2729645', '2729726', '2729672', '2729704', '2729646', '2729691', '2729668', '2729684', '2729663', '2729685', '2729688', '2729682', '2729699', '2729716', '2729714', '2729669', '2729692', '2729658', '2729647', '2729673', '2729651', '2729686', '2729657', '2729701', '2729719', '2729695', '2729696', '2729706', '2729654', '2729693', '2729722', '2729649', '2729700', '2729708', '2729690', '2729677', '2729687', '2729711', '2729679', '2729709', '2729671', '2729698', '2729680', '2729724', '2729717', '2729659', '2729661', '2729670', '2729675', '2729713', '2729674', '2729683', '2729723', '2729662', '2729655', '2729712', '2729660', '2729725', '2729648') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:06,532 - 12182 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:08:06,533 - 12182 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,843 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-15 07:08:06,844 - 12182 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-15 07:08:06,844 - 12182 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:08:06,844 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729643, 2729644, 2729645, 2729646, 2729647, 2729648, 2729649, 2729650, 2729651, 2729652, 2729653, 2729654, 2729655, 2729656, 2729657, 2729658, 2729659, 2729660, 2729661, 2729662, 2729663, 2729664, 2729665, 2729666, 2729667, 2729668, 2729669, 2729670, 2729671, 2729672, 2729673, 2729674, 2729675, 2729676, 2729677, 2729678, 2729679, 2729680, 2729681, 2729682, 2729683, 2729684, 2729685, 2729686, 2729687, 2729688, 2729689, 2729690, 2729691, 2729692, 2729693, 2729694, 2729695, 2729696, 2729697, 2729698, 2729699, 2729700, 2729701, 2729702, 2729703, 2729704, 2729705, 2729706, 2729707, 2729708, 2729709, 2729710, 2729711, 2729712, 2729713, 2729714, 2729715, 2729716, 2729717, 2729718, 2729719, 2729720, 2729721, 2729722, 2729723, 2729724, 2729725, 2729726) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:07,131 - 12182 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:08:07,132 - 12182 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:07,450 - 12182 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-15 07:08:08,557 - 12182 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-15 07:08:08,558 - 12182 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-15 07:08:08,558 - 12182 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-15 07:08:08,558 - 12182 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-15 07:08:08,558 - 12182 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:08:08,558 - 12182 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729643, 2729644, 2729645, 2729646, 2729647, 2729648, 2729649, 2729650, 2729651, 2729652, 2729653, 2729654, 2729655, 2729656, 2729657, 2729658, 2729659, 2729660, 2729661, 2729662, 2729663, 2729664, 2729665, 2729666, 2729667, 2729668, 2729669, 2729670, 2729671, 2729672, 2729673, 2729674, 2729675, 2729676, 2729677, 2729678, 2729679, 2729680, 2729681, 2729682, 2729683, 2729684, 2729685, 2729686, 2729687, 2729688, 2729689, 2729690, 2729691, 2729692, 2729693, 2729694, 2729695, 2729696, 2729697, 2729698, 2729699, 2729700, 2729701, 2729702, 2729703, 2729704, 2729705, 2729706, 2729707, 2729708, 2729709, 2729710, 2729711, 2729712, 2729713, 2729714, 2729715, 2729716, 2729717, 2729718, 2729719, 2729720, 2729721, 2729722, 2729723, 2729724, 2729725, 2729726) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:08,855 - 12182 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:08:08,856 - 12182 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:09,171 - 12182 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-15 07:08:10,357 - 12182 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-15 07:08:10,357 - 12182 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-15 07:08:10,357 - 12182 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12182;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:10,644 - 12182 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:08:10,644 - 12182 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-15 07:08:10,644 - 12182 - src.utils.log - INFO - Time took to perform operation: 21.51 - __SPLIT__ 2026-05-15 07:08:10,644 - 12182 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12182;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:10,931 - 12182 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:08:10,931 - 12182 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-15 03:08:10.931' WHERE GenerateWorkOrderHistoryId = 12182;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:08:11,223 - 12182 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:09:24,689 - 12183 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=12183 - __SPLIT__ 2026-05-15 07:09:24,690 - 12183 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 12183 - __SPLIT__ 2026-05-15 07:09:24,691 - 12183 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-15 07:09:24,691 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:26,757 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:26,757 - 12183 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-05-15 07:09:26,758 - 12183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:27,049 - 12183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:09:27,049 - 12183 - 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 = 12183), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12183), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12183 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-05-15 07:09:27,397 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:27,397 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:27,707 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:27,710 - 12183 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-15 07:09:27,711 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13057... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:28,013 - 12183 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-05-15 07:09:28,014 - 12183 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-15 07:09:28,017 - 12183 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-05-15 07:09:28,017 - 12183 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-05-15 07:09:28,017 - 12183 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-05-15 07:09:28,018 - 12183 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-05-15 07:09:28,018 - 12183 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-15 07:09:28,019 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:28,310 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:28,311 - 12183 - 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-01-01 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 23886 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:28,622 - 12183 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-15 07:09:29,227 - 12183 - src.utils.log - INFO - Generating work orders for setup: 23886 - __SPLIT__ 2026-05-15 07:09:29,983 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1389;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:30,266 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:30,326 - 12183 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-15 07:09:30,334 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:30,623 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:30,625 - 12183 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-15 07:09:30,625 - 12183 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-15 07:09:30,625 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:31,076 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:31,076 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:31,716 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:31,716 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:32,064 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:32,064 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:32,941 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:32,941 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:33,505 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:33,505 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:34,100 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:34,100 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:34,387 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:34,388 - 12183 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23886 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:35,461 - 12183 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-15 07:09:35,461 - 12183 - src.utils.log - INFO - πŸ“ Inserting 84 work orders for route: 1 - __SPLIT__ 2026-05-15 07:09:35,461 - 12183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:09:35,462 - 12183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:35,799 - 12183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-15 07:09:39,568 - 12183 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-15 07:09:39,569 - 12183 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 84 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-13 17:56:31.528' and ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:39,877 - 12183 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:09:39,878 - 12183 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 84 records - __SPLIT__ 2026-05-15 07:09:39,878 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:40,171 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:40,172 - 12183 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-15 07:09:40,172 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:40,544 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:40,544 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:40,835 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:40,842 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:41,173 - 12183 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-15 07:09:41,174 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:41,464 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:41,465 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:41,757 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:41,758 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:42,038 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:42,039 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:42,326 - 12183 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:09:42,327 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:42,629 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:42,630 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23886;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:42,918 - 12183 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:09:42,932 - 12183 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-15 07:09:42,933 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-15 07:09:42,933 - 12183 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-15 07:09:42,933 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-15 07:09:42,933 - 12183 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-15 07:09:42,933 - 12183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:09:42,933 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('2729789', '2729803', '2729733', '2729730', '2729766', '2729736', '2729735', '2729732', '2729745', '2729772', '2729786', '2729799', '2729801', '2729808', '2729794', '2729805', '2729767', '2729790', '2729727', '2729791', '2729802', '2729759', '2729800', '2729771', '2729762', '2729739', '2729738', '2729751', '2729780', '2729768', '2729810', '2729796', '2729797', '2729781', '2729793', '2729744', '2729775', '2729807', '2729798', '2729769', '2729760', '2729749', '2729755', '2729785', '2729770', '2729752', '2729756', '2729788', '2729778', '2729764', '2729765', '2729729', '2729741', '2729758', '2729746', '2729779', '2729731', '2729783', '2729753', '2729757', '2729740', '2729734', '2729795', '2729737', '2729763', '2729787', '2729806', '2729782', '2729774', '2729750', '2729742', '2729743', '2729773', '2729754', '2729747', '2729776', '2729761', '2729809', '2729784', '2729748', '2729777', '2729728', '2729804', '2729792') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:43,233 - 12183 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:09:43,234 - 12183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:43,548 - 12183 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-05-15 07:09:43,548 - 12183 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-15 07:09:43,548 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-15 07:09:43,548 - 12183 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:09:43,549 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:43,848 - 12183 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:09:43,849 - 12183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:44,170 - 12183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-15 07:09:45,324 - 12183 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-15 07:09:45,324 - 12183 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-15 07:09:45,324 - 12183 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-05-15 07:09:45,325 - 12183 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-15 07:09:45,325 - 12183 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:09:45,325 - 12183 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:45,613 - 12183 - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:09:45,614 - 12183 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:45,927 - 12183 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-15 07:09:47,078 - 12183 - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-15 07:09:47,079 - 12183 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-15 07:09:47,079 - 12183 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-05-15 07:09:47,079 - 12183 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-05-15 07:09:47,079 - 12183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:47,411 - 12183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:09:47,411 - 12183 - src.utils.log - INFO - ⏱️ Total time: 22.72s | Status: Completed - __SPLIT__ 2026-05-15 07:09:47,411 - 12183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:47,709 - 12183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:09:47,709 - 12183 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-15 03:09:47.709' WHERE GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:09:48,000 - 12183 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:09:48,001 - 12183 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-15 07:10:24,852 - [12183] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810] user_id=122885 company_id=135 project_id=[12183] publish_all=False - __SPLIT__ 2026-05-15 07:10:24,853 - [12183] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810] user_id=122885 company_id=135 project_id=[12183] publish_all=False - __SPLIT__ 2026-05-15 07:10:24,853 - [12183] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [12183] - __SPLIT__ 2026-05-15 07:10:24,854 - [12183] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-15 07:10:24,854 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:26,893 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:26,893 - [12183] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-15 07:10:26,893 - [12183] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:27,179 - [12183] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-15 07:10:27,179 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:27,631 - [12183] - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:10:27,632 - [12183] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-15 07:10:27,632 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23886 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:27,926 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:27,926 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23886 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:28,294 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:28,295 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 135 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 23886 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:28,596 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:28,600 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:28,890 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:28,890 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:29,176 - [12183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-15 07:10:29,176 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:29,463 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:29,463 - [12183] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig SET NextNumber = NextNumber + 84 OUTPUT INSERTED.NextNumber - 84 AS StartNumber WHERE CompanyId = 135 AND EnitityNumberType IN ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:29,750 - [12183] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-15 07:10:29,754 - [12183] - 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 = 23886... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:30,039 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:30,075 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:30,355 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:30,356 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '231999' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:30,637 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:30,640 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('166066R', '166067R', '166068R', '166069R', '166070R', '166071R', '166072R', '166073R', '166074R', '166075R', '166076R', '166077R', '166078R', '166079R', '166080R', '166081R', '166082R', '166083R', '166084R', '166085R', '166086R', '166087R', '166088R', '166089R', '166090R', '166091R', '166092R', '166093R', '166094R', '166095R', '166096R', '166097R', '166098R', '166099R', '166100R', '166101R', '166102R', '166103R', '166104R', '166105R', '166106R', '166107R', '166108R', '166109R', '166110R', '166111R', '166112R', '166113R', '166114R', '166115R', '166116R', '166117R', '166118R', '166119R', '166120R', '166121R', '166122R', '166123R', '166124R', '166125R', '166126R', '166127R', '166128R', '166129R', '166130R', '166131R', '166132R', '166133R', '166134R', '166135R', '166136R', '166137R', '166138R', '166139R', '166140R', '166141R', '166142R', '166143R', '166144R', '166145R', '166146R', '166147R', '166148R', '166149R') AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:30,960 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:30,960 - [12183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:31,467 - [12183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-15 07:10:34,876 - [12183] - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-15 07:10:35,022 - [12183] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-15 07:10:35,024 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('166066R', '166067R', '166068R', '166069R', '166070R', '166071R', '166072R', '166073R', '166074R', '166075R', '166076R', '166077R', '166078R', '166079R', '166080R', '166081R', '166082R', '166083R', '166084R', '166085R', '166086R', '166087R', '166088R', '166089R', '166090R', '166091R', '166092R', '166093R', '166094R', '166095R', '166096R', '166097R', '166098R', '166099R', '166100R', '166101R', '166102R', '166103R', '166104R', '166105R', '166106R', '166107R', '166108R', '166109R', '166110R', '166111R', '166112R', '166113R', '166114R', '166115R', '166116R', '166117R', '166118R', '166119R', '166120R', '166121R', '166122R', '166123R', '166124R', '166125R', '166126R', '166127R', '166128R', '166129R', '166130R', '166131R', '166132R', '166133R', '166134R', '166135R', '166136R', '166137R', '166138R', '166139R', '166140R', '166141R', '166142R', '166143R', '166144R', '166145R', '166146R', '166147R', '166148R', '166149R') AND wo.AccountNumber = '231999' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-15 07:10:35,336 - [12183] - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:10:35,337 - [12183] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-05-15 07:10:35,338 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-15 07:10:35,338 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-05-15 07:10:35,339 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-05-15 07:10:35,339 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: ThreadPoolExecutor-1_3) - __SPLIT__ 2026-05-15 07:10:35,340 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: ThreadPoolExecutor-1_4) - __SPLIT__ 2026-05-15 07:10:35,341 - [12183] - 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 (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810)... (Thread: ThreadPoolExecutor-1_5) - __SPLIT__ 2026-05-15 07:10:35,342 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-1_6) - __SPLIT__ 2026-05-15 07:10:35,342 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (2729727, 2729728, 2729729, 2729730, 2729731, 2729732, 2729733, 2729734, 2729735, 2729736, 2729737, 2729738, 2729739, 2729740, 2729741, 2729742, 2729743, 2729744, 2729745, 2729746, 2729747, 2729748, 2729749, 2729750, 2729751, 2729752, 2729753, 2729754, 2729755, 2729756, 2729757, 2729758, 2729759, 2729760, 2729761, 2729762, 2729763, 2729764, 2729765, 2729766, 2729767, 2729768, 2729769, 2729770, 2729771, 2729772, 2729773, 2729774, 2729775, 2729776, 2729777, 2729778, 2729779, 2729780, 2729781, 2729782, 2729783, 2729784, 2729785, 2729786, 2729787, 2729788, 2729789, 2729790, 2729791, 2729792, 2729793, 2729794, 2729795, 2729796, 2729797, 2729798, 2729799, 2729800, 2729801, 2729802, 2729803, 2729804, 2729805, 2729806, 2729807, 2729808, 2729809, 2729810);... (Thread: ThreadPoolExecutor-1_7) - __SPLIT__ 2026-05-15 07:10:35,652 - [12183] - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:10:36,506 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:36,508 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:36,510 - [12183] - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:10:36,512 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:36,513 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:36,542 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:36,548 - [12183] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-15 07:10:36,552 - [12183] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-15 07:10:36,564 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:36,852 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:36,853 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:37,140 - [12183] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-15 07:10:37,144 - [12183] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-15 07:10:37,144 - [12183] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 84 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:37,474 - [12183] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 84) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-15 07:10:40,548 - [12183] - src.utils.log - INFO - βœ… All 84 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-15 07:10:40,549 - [12183] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 23886 AND WorkOrderNo IN ('4281075', '1838803', '4608305', '5129652', '7488001', '4751880', '2647705', '1242692', '9918636', '1572293', '9453351', '9160677', '6095772', '5993349', '5236341', '1061127', '4878580', '4478749', '5229858', '3481617', '3539120', '8111962', '6572412', '9271748', '3440586', '4386012', '9962936', '4037727', '2953990', '3061313', '9727756', '6879851', '5990540', '3310869', '3933752', '2155784', '5468106', '3075655', '3704602', '2890202', '8496985', '7819038', '7441396', '4987446', '4936476', '7113171', '4746804', '7360765', '5928769', '9044969', '5423291', '9625356', '4963793', '4854334', '7215557', '1379687', '7223113', '2923838', '4135593', '9345951', '3912050', '5164149', '3948912', '4602989', '5127469', '2476659', '3464309', '3757889', '1368441', '3346407', '5720789', '2614682', '4622123', '6382527', '7448612', '7483774', '2427056', '7963476', '6424272', '1492802', '6456846', '8264318', '5027772', '2212485') AND GenerateWorkOrderHistoryId = 12183;... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-15 07:10:40,901 - [12183] - src.utils.log - INFO - βœ… Fetched 84 rows - __SPLIT__ 2026-05-15 07:10:40,902 - [12183] - src.utils.log - INFO - 🏁 Final merged rows: 84 - __SPLIT__ 2026-05-15 07:10:40,908 - [12183] - src.utils.log - INFO - Error: insert_all_publish_tables_parallel() takes 11 positional arguments but 12 were given - __SPLIT__ 2026-05-15 07:10:40,908 - [12183] - src.utils.log - INFO - Time took to perform operation in publishing [12183]: 16.05 - __SPLIT__ 2026-05-15 07:10:40,908 - [12183] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12183] - __SPLIT__ 2026-05-15 07:10:40,908 - [12183] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-15 03:10:40.908' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12183;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-15 07:10:41,197 - [12183] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:17:06,121 - 124402 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124402 - __SPLIT__ 2026-05-18 07:17:06,353 - 124402 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124402 - __SPLIT__ 2026-05-18 07:17:06,444 - 124402 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 07:17:06,519 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:09,184 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:09,253 - 124402 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 07:17:09,327 - 124402 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 07:17:09,391 - 124402 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 07:17:09,472 - 124402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:12,285 - 124402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:17:12,352 - 124402 - 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 = 124402), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124402), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124402 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-05-18 07:17:13,168 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:13,233 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:13,602 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:13,672 - 124402 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-18 07:17:13,741 - 124402 - 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 = 14657... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:14,123 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:14,191 - 124402 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-18 07:17:14,264 - 124402 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-18 07:17:14,330 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:14,754 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:14,833 - 124402 - 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-05-18 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 150309 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:15,220 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:15,913 - 124402 - src.utils.log - INFO - Generating work orders for setup: 150309 - __SPLIT__ 2026-05-18 07:17:16,000 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:16,366 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:16,440 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:16,809 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:16,914 - 124402 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-18 07:17:16,994 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:17,361 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:17,430 - 124402 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-18 07:17:17,497 - 124402 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-18 07:17:17,571 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:17,961 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:18,036 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:18,421 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:18,493 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:18,877 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:18,952 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:19,404 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:19,470 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:19,890 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:19,964 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:20,422 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:20,505 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:20,883 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:20,957 - 124402 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150309 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:21,377 - 124402 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:17:21,448 - 124402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:17:21,523 - 124402 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:21,956 - 124402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-18 07:17:23,157 - 124402 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-18 07:17:23,227 - 124402 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-13 17:56:31.337' and ServiceSetupId = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:23,611 - 124402 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:17:23,685 - 124402 - src.utils.log - INFO - Id's of work order inserted to DB: [3673228 3673229] - __SPLIT__ 2026-05-18 07:17:23,752 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:24,120 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:24,193 - 124402 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-18 07:17:24,260 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:24,685 - 124402 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:17:24,754 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:25,121 - 124402 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:17:25,193 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:25,565 - 124402 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:17:25,636 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:25,995 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:26,068 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:26,445 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:26,505 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:26,875 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:26,949 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:27,315 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:27,389 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:28,874 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:28,939 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:29,309 - 124402 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:17:29,395 - 124402 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-18 07:17:29,461 - 124402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-18 07:17:29,533 - 124402 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-18 07:17:29,657 - 124402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-18 07:17:29,712 - 124402 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-18 07:17:29,798 - 124402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-18 07:17:29,863 - 124402 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-18 07:17:29,922 - 124402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:17:29,982 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673229 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:30,325 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:30,385 - 124402 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:30,767 - 124402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-18 07:17:31,836 - 124402 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-18 07:17:31,903 - 124402 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-18 07:17:31,959 - 124402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-18 07:17:32,021 - 124402 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-18 07:17:32,078 - 124402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-18 07:17:32,133 - 124402 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-18 07:17:32,192 - 124402 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-18 07:17:32,257 - 124402 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-18 07:17:32,335 - 124402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:17:32,397 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673228, 3673229) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:32,745 - 124402 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:17:32,852 - 124402 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:33,225 - 124402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-18 07:17:34,301 - 124402 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-18 07:17:34,361 - 124402 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-18 07:17:34,423 - 124402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:17:34,487 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673228 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:34,822 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:34,887 - 124402 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:35,266 - 124402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-18 07:17:36,339 - 124402 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-18 07:17:36,402 - 124402 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-18 07:17:36,463 - 124402 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:17:36,525 - 124402 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673229 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:36,868 - 124402 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:17:36,929 - 124402 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:37,280 - 124402 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-18 07:17:38,399 - 124402 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-18 07:17:38,462 - 124402 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-18 07:17:38,526 - 124402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:38,876 - 124402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:17:38,991 - 124402 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-18 07:17:39,060 - 124402 - src.utils.log - INFO - Time took to perform operation: 32.56 - __SPLIT__ 2026-05-18 07:17:39,127 - 124402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:39,472 - 124402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:17:39,535 - 124402 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-18 03:17:39.535' WHERE GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:17:39,878 - 124402 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:18:07,252 - [124402] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124402] publish_all=True - __SPLIT__ 2026-05-18 07:18:07,373 - [124402] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124402] publish_all=True - __SPLIT__ 2026-05-18 07:18:07,446 - [124402] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124402] - __SPLIT__ 2026-05-18 07:18:07,514 - [124402] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 07:18:07,578 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:09,653 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:09,728 - [124402] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 07:18:09,789 - [124402] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 07:18:09,863 - [124402] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 07:18:09,933 - [124402] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:11,906 - [124402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:18:11,985 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124402... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:12,391 - [124402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:18:12,456 - [124402] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-18 07:18:12,527 - [124402] - 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 = 150309 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:12,881 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:12,957 - [124402] - 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 = 150309 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:13,307 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:13,373 - [124402] - 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 = 150309 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:13,727 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:13,797 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:14,189 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:14,260 - [124402] - 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-05-18 07:18:14,601 - [124402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:18:14,670 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:15,007 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:15,077 - [124402] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:15,416 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:15,484 - [124402] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:15,825 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:15,893 - [124402] - 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 = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:16,241 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:16,316 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:16,653 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:16,721 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14837' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:17,056 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:17,127 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419387', '1419388') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:17,473 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:17,547 - [124402] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:18,079 - [124402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-18 07:18:19,240 - [124402] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-18 07:18:19,488 - [124402] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-18 07:18:19,551 - [124402] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:19,894 - [124402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:18:19,961 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419387', '1419388') AND wo.AccountNumber = '14837' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-05-18 07:18:20,309 - [124402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:18:20,376 - [124402] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-18 07:18:20,437 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673228, 3673229)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:21,287 - [124402] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-05-18 07:18:21,354 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673228, 3673229)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:21,696 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:21,761 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673228, 3673229)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:22,265 - [124402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:18:22,330 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673228, 3673229)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:22,670 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:22,735 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673228, 3673229)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:23,066 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:23,137 - [124402] - 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 (3673228, 3673229)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:23,780 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:23,843 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673228, 3673229) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:24,183 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:24,302 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673228, 3673229);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:24,639 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:24,706 - [124402] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-18 07:18:24,789 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:25,131 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:25,204 - [124402] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1091 AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:25,546 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:25,618 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:25,962 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:26,037 - [124402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:18:26,107 - [124402] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:26,568 - [124402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-18 07:18:27,611 - [124402] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-18 07:18:27,682 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150309 AND WorkOrderNo IN ('632471', '6031510') AND GenerateWorkOrderHistoryId = 124402;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-05-18 07:18:28,080 - [124402] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:18:28,147 - [124402] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-18 07:18:28,253 - [124402] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-18 07:18:28,320 - [124402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:18:28,394 - [124402] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:28,767 - [124402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-18 07:18:29,874 - [124402] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-18 07:18:29,939 - [124402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:18:30,012 - [124402] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:30,389 - [124402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-05-18 07:18:31,473 - [124402] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-05-18 07:18:31,548 - [124402] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-18 07:18:31,618 - [124402] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-18 07:18:31,685 - [124402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:18:31,756 - [124402] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:32,124 - [124402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-18 07:18:33,148 - [124402] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-18 07:18:33,218 - [124402] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-18 07:18:33,288 - [124402] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-18 07:18:33,359 - [124402] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:18:33,449 - [124402] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:33,824 - [124402] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-18 07:18:34,875 - [124402] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-18 07:18:34,948 - [124402] - 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 = 150309... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:35,288 - [124402] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:18:35,362 - [124402] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-18 07:18:35,477 - [124402] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124402 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:35,816 - [124402] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:18:35,902 - [124402] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-18 07:18:36,098 - [124402] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_7b788488c7 - __SPLIT__ 2026-05-18 07:18:36,436 - [124402] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_7b788488c7 - __SPLIT__ 2026-05-18 07:18:36,771 - [124402] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-18 07:18:36,987 - [124402] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-18 07:18:37,188 - [124402] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_7b788488c7 - __SPLIT__ 2026-05-18 07:18:37,252 - [124402] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_7b788488c7 - __SPLIT__ 2026-05-18 07:18:37,314 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124402 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:37,646 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:37,706 - [124402] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-18 07:18:37,765 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:38,257 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:38,324 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:38,768 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:38,848 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:39,185 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:39,245 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:39,688 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:39,806 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:40,158 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:40,220 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:40,553 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:40,615 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:40,955 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:41,018 - [124402] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673228, 3673229) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:41,465 - [124402] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 07:18:41,539 - [124402] - src.utils.log - INFO - Work order published ids: (3673228, 3673229) - __SPLIT__ 2026-05-18 07:18:41,604 - [124402] - src.utils.log - INFO - Time took to perform operation in publishing [124402]: 34.09 - __SPLIT__ 2026-05-18 07:18:41,668 - [124402] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124402] - __SPLIT__ 2026-05-18 07:18:41,722 - [124402] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-18 03:18:41.539' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124402;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:18:42,051 - [124402] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:29:38,607 - 42405 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42405 - __SPLIT__ 2026-05-18 07:29:38,847 - 42405 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 07:29:38,915 - 42405 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:41,607 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:41,673 - 42405 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 07:29:41,736 - 42405 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 07:29:41,798 - 42405 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 07:29:41,865 - 42405 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42405 - __SPLIT__ 2026-05-18 07:29:41,929 - 42405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:44,430 - 42405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:29:44,494 - 42405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:44,832 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:44,897 - 42405 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14837' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:45,246 - 42405 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:29:45,321 - 42405 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-18 07:29:45,389 - 42405 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-18 07:29:45,448 - 42405 - 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 = 13977... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:45,797 - 42405 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-18 07:29:45,867 - 42405 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-18 07:29:45,944 - 42405 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150309 AND TransactionDate BETWEEN '2026-05-18 00:00:00' AND '2026-06-30 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:46,343 - 42405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:29:46,418 - 42405 - 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-05-18 00:00:00' AND '2026-06-30 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 150309 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:46,766 - 42405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 07:29:46,840 - 42405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:29:46,907 - 42405 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:47,277 - 42405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-18 07:29:48,303 - 42405 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-18 07:29:48,368 - 42405 - src.utils.log - INFO - - __SPLIT__ 2026-05-18 07:29:48,431 - 42405 - src.utils.log - INFO - Total invoice generated: 1 - __SPLIT__ 2026-05-18 07:29:48,499 - 42405 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-13 12:26:31.191' and ServiceSetupId = 150309 and GenerateWorkOrderHistoryId= 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:48,843 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:48,912 - 42405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:29:48,973 - 42405 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:49,335 - 42405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-18 07:29:50,364 - 42405 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-18 07:29:50,435 - 42405 - 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 = 636638;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:50,800 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:50,866 - 42405 - 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 = 150309 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:51,212 - 42405 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 07:29:51,292 - 42405 - 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 = 14657;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:51,675 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:51,734 - 42405 - 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 = 13977;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:52,075 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:52,138 - 42405 - 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 = 150309;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:52,474 - 42405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 07:29:52,543 - 42405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:29:52,607 - 42405 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:52,975 - 42405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-05-18 07:29:54,007 - 42405 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-05-18 07:29:54,069 - 42405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 07:29:54,132 - 42405 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:54,497 - 42405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-18 07:29:55,621 - 42405 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-18 07:29:55,685 - 42405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:56,017 - 42405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:29:56,078 - 42405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-18 03:29:56.078' WHERE GenerateInvoiceHistoryId = 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 07:29:56,417 - 42405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 07:29:56,481 - 42405 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 07:29:56,550 - 42405 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42405 - Time took: 17.72 - __SPLIT__ 2026-05-18 08:10:41,568 - [42405] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=43135 company_id=133 project_id=[42405] publish_all=True - __SPLIT__ 2026-05-18 08:10:41,797 - [42405] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-18 08:10:41,862 - [42405] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-18 08:10:41,933 - [42405] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 08:10:41,999 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:44,094 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:44,164 - [42405] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 08:10:44,232 - [42405] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 08:10:44,302 - [42405] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 08:10:44,371 - [42405] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-18 04:10:44.371' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:46,843 - [42405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 08:10:46,911 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 42405; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:47,264 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:47,328 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 636638;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:47,665 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:47,727 - [42405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:48,217 - [42405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-18 08:10:49,261 - [42405] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-18 08:10:49,456 - [42405] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-18 08:10:49,525 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:55,377 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:55,444 - [42405] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-18 08:10:55,966 - [42405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 08:10:56,038 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:56,379 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:56,438 - [42405] - src.utils.log - INFO - 1 Invoice Generated : [1477224] - __SPLIT__ 2026-05-18 08:10:56,505 - [42405] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1477225' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:56,837 - [42405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 08:10:56,904 - [42405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 08:10:56,968 - [42405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:57,339 - [42405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-05-18 08:10:58,350 - [42405] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-18 08:10:58,417 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3692555;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:58,794 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:58,870 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 444723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:59,466 - [42405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 08:10:59,528 - [42405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 444723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:10:59,867 - [42405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 08:10:59,944 - [42405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 08:11:00,010 - [42405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:00,456 - [42405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-18 08:11:01,468 - [42405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-18 08:11:01,539 - [42405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 08:11:01,605 - [42405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:01,964 - [42405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-05-18 08:11:03,004 - [42405] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-05-18 08:11:03,067 - [42405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 08:11:03,129 - [42405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:03,512 - [42405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-05-18 08:11:04,516 - [42405] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-05-18 08:11:04,580 - [42405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 444723 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:04,922 - [42405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 08:11:04,988 - [42405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 444723 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:05,356 - [42405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 08:11:05,417 - [42405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 444723 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:05,769 - [42405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 08:11:05,917 - [42405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 636638 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:06,250 - [42405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 08:11:06,310 - [42405] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-18 04:10:44.371' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 08:11:06,646 - [42405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 08:11:06,761 - [42405] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 24.83 - __SPLIT__ 2026-05-18 13:22:57,997 - 124405 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124405 - __SPLIT__ 2026-05-18 13:22:58,136 - 124405 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124405 - __SPLIT__ 2026-05-18 13:22:58,226 - 124405 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 13:22:58,303 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:00,760 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:00,830 - 124405 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 13:23:00,893 - 124405 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 13:23:00,963 - 124405 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 13:23:01,031 - 124405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:03,104 - 124405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:23:03,173 - 124405 - 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 = 124405), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124405), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124405 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-05-18 13:23:04,214 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:04,286 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:04,647 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:04,720 - 124405 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-18 13:23:04,791 - 124405 - 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 = 14657... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:05,150 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:05,226 - 124405 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-18 13:23:05,293 - 124405 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-18 13:23:05,364 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:05,722 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:05,842 - 124405 - 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-05-18 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 150312 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:06,209 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:06,863 - 124405 - src.utils.log - INFO - Generating work orders for setup: 150312 - __SPLIT__ 2026-05-18 13:23:06,940 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:07,284 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:07,345 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1131;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:07,690 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:07,792 - 124405 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-18 13:23:07,862 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:08,209 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:08,279 - 124405 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-18 13:23:08,344 - 124405 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-18 13:23:08,412 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:08,792 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:08,857 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:09,227 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:09,285 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:09,652 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:09,712 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:10,086 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:10,191 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:10,563 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:10,625 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:10,991 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:11,053 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:11,410 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:11,473 - 124405 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150312 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:11,843 - 124405 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:23:11,908 - 124405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:23:11,966 - 124405 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:12,351 - 124405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-18 13:23:13,445 - 124405 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-18 13:23:13,512 - 124405 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-13 17:56:31.528' and ServiceSetupId = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:13,877 - 124405 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:23:13,946 - 124405 - src.utils.log - INFO - Id's of work order inserted to DB: [3673232 3673233] - __SPLIT__ 2026-05-18 13:23:14,017 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:14,365 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:14,421 - 124405 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-18 13:23:14,482 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:14,835 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:14,946 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:15,293 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:15,364 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:15,721 - 124405 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:23:15,792 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:16,142 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:16,208 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:16,561 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:16,620 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:16,972 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:17,036 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:17,392 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:17,454 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:17,822 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:17,887 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:18,239 - 124405 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:23:18,313 - 124405 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-18 13:23:18,377 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-18 13:23:18,442 - 124405 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-18 13:23:18,501 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-18 13:23:18,612 - 124405 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-18 13:23:18,672 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-18 13:23:18,739 - 124405 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-18 13:23:18,800 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-18 13:23:18,874 - 124405 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-18 13:23:18,941 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-18 13:23:19,003 - 124405 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-18 13:23:19,072 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-18 13:23:19,135 - 124405 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-18 13:23:19,197 - 124405 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-18 13:23:19,258 - 124405 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-18 13:23:19,326 - 124405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:23:19,399 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673232, 3673233) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:19,749 - 124405 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:23:19,814 - 124405 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:20,165 - 124405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-18 13:23:21,257 - 124405 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-18 13:23:21,332 - 124405 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-18 13:23:21,399 - 124405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:23:21,468 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673232 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:21,870 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:21,936 - 124405 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:22,293 - 124405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-18 13:23:23,371 - 124405 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-18 13:23:23,435 - 124405 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-18 13:23:23,505 - 124405 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:23:23,561 - 124405 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673233 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:23,912 - 124405 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:23:23,980 - 124405 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:24,332 - 124405 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-18 13:23:25,409 - 124405 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-18 13:23:25,477 - 124405 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-18 13:23:25,538 - 124405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:25,882 - 124405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:23:25,948 - 124405 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-18 13:23:26,004 - 124405 - src.utils.log - INFO - Time took to perform operation: 27.72 - __SPLIT__ 2026-05-18 13:23:26,067 - 124405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:26,413 - 124405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:23:26,477 - 124405 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-18 09:23:26.477' WHERE GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:23:26,834 - 124405 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:24:00,776 - [124405] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124405] publish_all=True - __SPLIT__ 2026-05-18 13:24:00,893 - [124405] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124405] publish_all=True - __SPLIT__ 2026-05-18 13:24:00,957 - [124405] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124405] - __SPLIT__ 2026-05-18 13:24:01,024 - [124405] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 13:24:01,081 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:03,163 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:03,227 - [124405] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 13:24:03,290 - [124405] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 13:24:03,354 - [124405] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 13:24:03,411 - [124405] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:05,452 - [124405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:24:05,517 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124405... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:05,923 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:05,987 - [124405] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-05-18 13:24:06,050 - [124405] - 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 = 150312 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:06,426 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:06,486 - [124405] - 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 = 150312 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:06,842 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:06,900 - [124405] - 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 = 150312 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:07,260 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:07,332 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:07,732 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:07,801 - [124405] - 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-05-18 13:24:08,153 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:08,214 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:08,552 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:08,621 - [124405] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:08,969 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:09,046 - [124405] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 2 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:09,395 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:09,467 - [124405] - 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 = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:09,821 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:09,885 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:10,228 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:10,286 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14838' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:10,627 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:10,730 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1419395', '1419396') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:11,089 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:11,153 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:11,671 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-05-18 13:24:12,758 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-05-18 13:24:13,023 - [124405] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-18 13:24:13,095 - [124405] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:13,451 - [124405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:24:13,517 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1419395', '1419396') AND wo.AccountNumber = '14838' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-05-18 13:24:13,880 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:13,956 - [124405] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-05-18 13:24:14,028 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3673232, 3673233)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:14,438 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:14,511 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3673232, 3673233)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:14,898 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:14,973 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3673232, 3673233)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:15,355 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:15,433 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3673232, 3673233)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:15,785 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:15,859 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3673232, 3673233)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:16,217 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:16,292 - [124405] - 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 (3673232, 3673233)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:16,691 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:16,759 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3673232, 3673233) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:17,119 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:17,241 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3673232, 3673233);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:17,592 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:17,666 - [124405] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-05-18 13:24:17,741 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:18,092 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:18,161 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:18,509 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:18,579 - [124405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:24:18,645 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:19,018 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-05-18 13:24:20,094 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-05-18 13:24:20,164 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150312 AND WorkOrderNo IN ('883573', '9441216') AND GenerateWorkOrderHistoryId = 124405;... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-05-18 13:24:20,555 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:20,626 - [124405] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-05-18 13:24:20,703 - [124405] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-05-18 13:24:20,793 - [124405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:24:20,870 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:21,225 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-05-18 13:24:22,305 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-05-18 13:24:22,375 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-05-18 13:24:22,492 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-05-18 13:24:22,559 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-05-18 13:24:22,624 - [124405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:24:22,691 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:23,048 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-05-18 13:24:24,111 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-05-18 13:24:24,179 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-05-18 13:24:24,245 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-18 13:24:24,310 - [124405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:24:24,376 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:24,730 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-05-18 13:24:25,800 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-05-18 13:24:25,868 - [124405] - 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 = 150312... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:26,217 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:26,295 - [124405] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-05-18 13:24:26,363 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:26,857 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-18 13:24:27,913 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-18 13:24:28,119 - [124405] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-18 13:24:28,193 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-05-18 09:24:26.290';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:28,788 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:28,869 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:29,221 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:29,296 - [124405] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-05-18 09:24:26.290'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-05-18 13:24:29,775 - [124405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:24:29,846 - [124405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:24:29,909 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:30,269 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-05-18 13:24:31,358 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-18 13:24:31,424 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1419395', '1419396')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:31,849 - [124405] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:24:31,923 - [124405] - 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 = 150312 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:32,276 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:32,348 - [124405] - 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 = 150312 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:32,707 - [124405] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:24:32,772 - [124405] - 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 = 150312 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:33,120 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:33,191 - [124405] - 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 = 150312 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:33,539 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:33,623 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:34,023 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:34,104 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:34,457 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:34,534 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150312;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:34,888 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:34,960 - [124405] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-05-18 13:24:35,033 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-18 13:24:35,098 - [124405] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:24:35,159 - [124405] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:35,513 - [124405] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-05-18 13:24:36,587 - [124405] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-18 13:24:36,659 - [124405] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-18 13:24:36,726 - [124405] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-05-18 13:24:36,793 - [124405] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-05-18 13:24:36,860 - [124405] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124405 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:37,216 - [124405] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:24:37,300 - [124405] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-05-18 13:24:37,508 - [124405] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e862a89f38 - __SPLIT__ 2026-05-18 13:24:37,856 - [124405] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_e862a89f38 - __SPLIT__ 2026-05-18 13:24:38,209 - [124405] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-05-18 13:24:38,481 - [124405] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-05-18 13:24:38,691 - [124405] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_e862a89f38 - __SPLIT__ 2026-05-18 13:24:38,751 - [124405] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e862a89f38 - __SPLIT__ 2026-05-18 13:24:38,814 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124405 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:39,163 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:39,228 - [124405] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-05-18 13:24:39,296 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:39,821 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:39,883 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:40,335 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:40,388 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:40,727 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:40,788 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:41,231 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:41,298 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:41,644 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:41,704 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:42,050 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:42,115 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:42,463 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:42,569 - [124405] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3673232, 3673233) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:43,025 - [124405] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:24:43,093 - [124405] - src.utils.log - INFO - Work order published ids: (3673232, 3673233) - __SPLIT__ 2026-05-18 13:24:43,152 - [124405] - src.utils.log - INFO - Time took to perform operation in publishing [124405]: 42.13 - __SPLIT__ 2026-05-18 13:24:43,218 - [124405] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124405] - __SPLIT__ 2026-05-18 13:24:43,279 - [124405] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-18 09:24:43.093' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124405;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:24:43,630 - [124405] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:32:05,213 - 124406 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124406 - __SPLIT__ 2026-05-18 13:32:05,335 - 124406 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124406 - __SPLIT__ 2026-05-18 13:32:05,407 - 124406 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-18 13:32:05,479 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:07,734 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:07,797 - 124406 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-18 13:32:07,861 - 124406 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-18 13:32:07,925 - 124406 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-18 13:32:07,985 - 124406 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124406;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:09,908 - 124406 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:32:09,968 - 124406 - 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 = 124406), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124406), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124406 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-05-18 13:32:10,427 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:10,498 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124406;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:10,833 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:10,901 - 124406 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-18 13:32:10,963 - 124406 - 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 = 14657... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:11,305 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:11,380 - 124406 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-18 13:32:11,449 - 124406 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-05-18 13:32:11,510 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150313;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:11,846 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:11,970 - 124406 - 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-05-18 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 150313 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:12,309 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:12,954 - 124406 - src.utils.log - INFO - Generating work orders for setup: 150313 - __SPLIT__ 2026-05-18 13:32:13,055 - 124406 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-05-18 13:32:13,114 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:13,445 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:13,506 - 124406 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-05-18 13:32:13,571 - 124406 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-05-18 13:32:13,634 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:13,990 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:14,054 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:14,404 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:14,469 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:14,811 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:14,873 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:15,227 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:15,284 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:15,645 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:15,738 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:16,092 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:16,216 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:16,554 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:16,614 - 124406 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150313 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:16,985 - 124406 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-18 13:32:17,044 - 124406 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:32:17,115 - 124406 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:17,490 - 124406 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-05-18 13:32:18,544 - 124406 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-05-18 13:32:18,608 - 124406 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-05-13 17:56:31.528' and ServiceSetupId = 150313... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:18,964 - 124406 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:32:19,031 - 124406 - src.utils.log - INFO - Id's of work order inserted to DB: [3673234 3673235] - __SPLIT__ 2026-05-18 13:32:19,096 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150313;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:19,434 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:19,518 - 124406 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-05-18 13:32:19,581 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150313... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:19,913 - 124406 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:32:19,982 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150313... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:20,310 - 124406 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:32:20,377 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150313... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:20,710 - 124406 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:32:20,829 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150313... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:21,156 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:21,222 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150313... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:21,549 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:21,604 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150313;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:21,934 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:21,997 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150313;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:22,321 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:22,380 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150313;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:22,737 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:22,794 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150313;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:23,130 - 124406 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-18 13:32:23,208 - 124406 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-05-18 13:32:23,289 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-05-18 13:32:23,354 - 124406 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-05-18 13:32:23,413 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-05-18 13:32:23,474 - 124406 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-05-18 13:32:23,536 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-05-18 13:32:23,600 - 124406 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-05-18 13:32:23,663 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-18 13:32:23,778 - 124406 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-05-18 13:32:23,839 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-05-18 13:32:23,911 - 124406 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-18 13:32:23,975 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-05-18 13:32:24,034 - 124406 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-05-18 13:32:24,101 - 124406 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-05-18 13:32:24,168 - 124406 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-05-18 13:32:24,233 - 124406 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:32:24,294 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3673234, 3673235) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:24,620 - 124406 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-05-18 13:32:24,708 - 124406 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:25,045 - 124406 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-05-18 13:32:26,048 - 124406 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-05-18 13:32:26,107 - 124406 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-05-18 13:32:26,166 - 124406 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:32:26,233 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673234 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:26,560 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:26,622 - 124406 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:26,955 - 124406 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-18 13:32:27,960 - 124406 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-18 13:32:28,078 - 124406 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-18 13:32:28,145 - 124406 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-18 13:32:28,212 - 124406 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3673235 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:28,547 - 124406 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-18 13:32:28,676 - 124406 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:29,022 - 124406 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-05-18 13:32:30,038 - 124406 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-05-18 13:32:30,108 - 124406 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-05-18 13:32:30,176 - 124406 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124406;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:30,510 - 124406 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:32:30,577 - 124406 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-05-18 13:32:30,646 - 124406 - src.utils.log - INFO - Time took to perform operation: 25.17 - __SPLIT__ 2026-05-18 13:32:30,715 - 124406 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124406;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:31,052 - 124406 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-18 13:32:31,128 - 124406 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-05-18 09:32:31.128' WHERE GenerateWorkOrderHistoryId = 124406;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-18 13:32:31,466 - 124406 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:12:49,746 - 42411 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42411 - __SPLIT__ 2026-05-19 06:12:49,889 - 42411 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-19 06:12:49,976 - 42411 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:52,107 - 42411 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-19 06:12:52,178 - 42411 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-19 06:12:52,249 - 42411 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-19 06:12:52,325 - 42411 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-19 06:12:52,396 - 42411 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42411 - __SPLIT__ 2026-05-19 06:12:52,466 - 42411 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:54,412 - 42411 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:12:54,481 - 42411 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:54,818 - 42411 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-19 06:12:54,888 - 42411 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14839' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:55,247 - 42411 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:12:55,327 - 42411 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-05-19 06:12:55,410 - 42411 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-05-19 06:12:55,478 - 42411 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:55,819 - 42411 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-05-19 06:12:55,890 - 42411 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-05-19 06:12:55,976 - 42411 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 150317 AND TransactionDate BETWEEN '2026-05-19 00:00:00' AND '2026-08-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:56,319 - 42411 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-19 06:12:56,447 - 42411 - 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-05-19 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 = 150317 GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:56,802 - 42411 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-19 06:12:56,876 - 42411 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:12:56,939 - 42411 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:57,276 - 42411 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-05-19 06:12:58,319 - 42411 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-05-19 06:12:58,383 - 42411 - src.utils.log - INFO - - __SPLIT__ 2026-05-19 06:12:58,448 - 42411 - src.utils.log - INFO - Total invoice generated: 3 - __SPLIT__ 2026-05-19 06:12:58,515 - 42411 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-05-13 12:26:31.351' and ServiceSetupId = 150317 and GenerateWorkOrderHistoryId= 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:58,857 - 42411 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:12:58,934 - 42411 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:12:59,018 - 42411 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:12:59,358 - 42411 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-05-19 06:13:00,373 - 42411 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-05-19 06:13:00,437 - 42411 - 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 (636648, 636649, 636647);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:13:00,777 - 42411 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:13:00,867 - 42411 - 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 = 150317 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:13:01,204 - 42411 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:13:01,275 - 42411 - 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 = 150317;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:13:01,622 - 42411 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-19 06:13:01,737 - 42411 - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.InvoiceAutoGenerationAppliedDiscount: - __SPLIT__ 2026-05-19 06:13:01,802 - 42411 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:13:01,871 - 42411 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:13:02,214 - 42411 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-05-19 06:13:03,258 - 42411 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-05-19 06:13:03,331 - 42411 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:13:03,666 - 42411 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:13:03,727 - 42411 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-05-19 02:13:03.727' WHERE GenerateInvoiceHistoryId = 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:13:04,059 - 42411 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:13:04,124 - 42411 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-19 06:13:04,193 - 42411 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42411 - Time took: 14.3 - __SPLIT__ 2026-05-19 06:14:05,834 - [42411] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=43135 company_id=133 project_id=[42411] publish_all=True - __SPLIT__ 2026-05-19 06:14:05,961 - [42411] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-19 06:14:06,023 - [42411] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-19 06:14:06,088 - [42411] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-19 06:14:06,154 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:08,244 - [42411] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-19 06:14:08,309 - [42411] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-05-19 06:14:08,370 - [42411] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-05-19 06:14:08,430 - [42411] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-05-19 06:14:08,495 - [42411] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-19 02:14:08.495' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:10,491 - [42411] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:14:10,555 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 42411; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:10,913 - [42411] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:14:10,982 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (636647, 636648, 636649);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:11,320 - [42411] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:14:11,386 - [42411] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:11,868 - [42411] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-19 06:14:12,902 - [42411] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-19 06:14:13,104 - [42411] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-19 06:14:13,170 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:13,741 - [42411] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:14:13,865 - [42411] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912); ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-05-19 06:14:14,437 - [42411] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:14:14,505 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:14,855 - [42411] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-19 06:14:14,924 - [42411] - src.utils.log - INFO - 3 Invoice Generated : [1477236, 1477237, 1477238] - __SPLIT__ 2026-05-19 06:14:14,996 - [42411] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1477239' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:15,354 - [42411] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:14:15,427 - [42411] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:14:15,492 - [42411] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:15,851 - [42411] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-05-19 06:14:16,934 - [42411] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-19 06:14:17,002 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3692573, 3692574, 3692575);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:17,403 - [42411] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:14:17,474 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (444732, 444733, 444734);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:17,835 - [42411] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-19 06:14:17,934 - [42411] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (444732, 444733, 444734);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:18,282 - [42411] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-19 06:14:18,355 - [42411] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:14:18,425 - [42411] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:18,783 - [42411] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceCharges - __SPLIT__ 2026-05-19 06:14:19,889 - [42411] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-19 06:14:19,958 - [42411] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-19 06:14:20,033 - [42411] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-19 06:14:20,101 - [42411] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (444732, 444733, 444734) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:20,454 - [42411] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:14:20,522 - [42411] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (444732, 444733, 444734) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:20,904 - [42411] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:14:20,971 - [42411] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (444732, 444733, 444734) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:21,378 - [42411] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:14:21,450 - [42411] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (636647, 636648, 636649) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:21,812 - [42411] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:14:21,880 - [42411] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-19 02:14:08.495' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42411;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:14:22,224 - [42411] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:14:22,290 - [42411] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 16.2 - __SPLIT__ 2026-05-19 06:28:37,468 - [13556] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=122885 company_id=135 project_id=[13556] publish_all=True - __SPLIT__ 2026-05-19 06:28:37,587 - [13556] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-05-19 06:28:37,654 - [13556] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-05-19 06:28:37,720 - [13556] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-05-19 06:28:37,786 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:39,946 - [13556] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-19 06:28:40,009 - [13556] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-05-19 06:28:40,073 - [13556] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-05-19 02:28:40.073' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13556;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:40,424 - [13556] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:28:40,490 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 13556; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:40,850 - [13556] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:28:40,915 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (799193, 799194, 799195);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:41,297 - [13556] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:28:41,360 - [13556] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:41,897 - [13556] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-05-19 06:28:43,024 - [13556] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-05-19 06:28:43,231 - [13556] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-05-19 06:28:43,289 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:43,811 - [13556] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:28:43,871 - [13556] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912); ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-05-19 06:28:44,390 - [13556] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:28:44,502 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:44,860 - [13556] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-05-19 06:28:44,928 - [13556] - src.utils.log - INFO - 3 Invoice Generated : [166153, 166154, 166155] - __SPLIT__ 2026-05-19 06:28:44,991 - [13556] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '166156' WHERE CompanyId = 135 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:45,343 - [13556] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:28:45,410 - [13556] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:28:45,476 - [13556] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:45,852 - [13556] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-05-19 06:28:47,031 - [13556] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-05-19 06:28:47,102 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (406720, 406721, 406722);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:47,455 - [13556] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-05-19 06:28:47,530 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (854094, 854095, 854096);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:48,193 - [13556] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-05-19 06:28:48,262 - [13556] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (854094, 854095, 854096);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:48,695 - [13556] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-05-19 06:28:48,764 - [13556] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-05-19 06:28:48,824 - [13556] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:49,202 - [13556] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceCharges - __SPLIT__ 2026-05-19 06:28:50,297 - [13556] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-05-19 06:28:50,362 - [13556] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-05-19 06:28:50,481 - [13556] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-05-19 06:28:50,554 - [13556] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (854094, 854095, 854096) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:50,912 - [13556] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:28:50,981 - [13556] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (854094, 854095, 854096) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:51,330 - [13556] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:28:51,399 - [13556] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (854094, 854095, 854096) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:51,763 - [13556] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:28:51,830 - [13556] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (799193, 799194, 799195) (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:52,202 - [13556] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-05-19 06:28:52,312 - [13556] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-05-19 02:28:40.073' WHERE CompanyId = 135 AND GenerateInvoiceHistoryId = 13556;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-05-19 06:28:52,726 - [13556] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-05-19 06:28:52,803 - [13556] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 15.08 - __SPLIT__