2026-07-06 06:53:54,590 - 42499 - src.utils.log - INFO - ParallelProcessing=False GenerateInvoiceHistoryId=42499 - __SPLIT__ 2026-07-06 06:53:54,893 - 42499 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 06:53:54,893 - 42499 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:53:56,870 - 42499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:53:56,870 - 42499 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 06:53:56,871 - 42499 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 06:53:56,871 - 42499 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 06:53:56,871 - 42499 - src.utils.log - INFO - Sequential Invoice generation algo started for GenerateInvoiceHistoryId: 42499 - __SPLIT__ 2026-07-06 06:53:56,871 - 42499 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:53:58,802 - 42499 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:53:58,802 - 42499 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:53:59,074 - 42499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:53:59,075 - 42499 - 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 = '14993' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:53:59,356 - 42499 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 06:53:59,360 - 42499 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-07-06 06:53:59,361 - 42499 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 06:53:59,361 - 42499 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:53:59,639 - 42499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:53:59,640 - 42499 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 06:53:59,653 - 42499 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId IN (150609, 150610) AND TransactionDate BETWEEN '2026-07-06 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:53:59,938 - 42499 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 06:53:59,945 - 42499 - 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-07-06 00:00:00' AND '2026-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId IN (150609, 150610) GROUP BY Inv.ServiceSetupId;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:00,291 - 42499 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 06:54:00,301 - 42499 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:00,301 - 42499 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:00,598 - 42499 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-07-06 06:54:01,588 - 42499 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 06:54:01,588 - 42499 - src.utils.log - INFO - - __SPLIT__ 2026-07-06 06:54:01,589 - 42499 - src.utils.log - INFO - Total invoice generated: 12 - __SPLIT__ 2026-07-06 06:54:01,589 - 42499 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 12 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-07-01 06:28:39.788' and ServiceSetupId in (150609, 150610) and GenerateWorkOrderHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:01,871 - 42499 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:01,880 - 42499 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:01,881 - 42499 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:02,176 - 42499 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-07-06 06:54:03,148 - 42499 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 06:54:03,149 - 42499 - 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 (703460, 703461, 703462, 703463, 703464, 703465, 703466, 703467, 703468, 703469, 703470, 703471);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:03,454 - 42499 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-06 06:54:03,454 - 42499 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:03,726 - 42499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:54:03,727 - 42499 - 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 (150609, 150610) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:04,000 - 42499 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 06:54:04,010 - 42499 - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyRoundingLevel ,CompanyRoundingMethod FROM common.CompanyConfiguration cc WHERE CompanyId = 133... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:04,280 - 42499 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 06:54:04,289 - 42499 - 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 (150609, 150610);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:04,560 - 42499 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 06:54:04,569 - 42499 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:04,569 - 42499 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:04,866 - 42499 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-06 06:54:05,829 - 42499 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-06 06:54:05,829 - 42499 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 06:54:05,829 - 42499 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:06,126 - 42499 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-07-06 06:54:07,210 - 42499 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 06:54:07,210 - 42499 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:07,480 - 42499 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:07,480 - 42499 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-07-06 02:54:07.480' WHERE GenerateInvoiceHistoryId = 42499;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 06:54:07,751 - 42499 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 06:54:07,752 - 42499 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 06:54:07,752 - 42499 - src.utils.log - INFO - Sequential Invoice Gen Complete Successfully ProjectId:42499 - Time took: 12.86 - __SPLIT__ 2026-07-06 09:47:15,314 - 124695 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124695 - __SPLIT__ 2026-07-06 09:47:15,315 - 124695 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124695 - __SPLIT__ 2026-07-06 09:47:15,315 - 124695 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 09:47:15,315 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:17,346 - 124695 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:47:17,346 - 124695 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 09:47:17,347 - 124695 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 09:47:17,347 - 124695 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 09:47:17,347 - 124695 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:19,210 - 124695 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 09:47:19,210 - 124695 - 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 = 124695), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124695), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124695 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:19,519 - 124695 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:47:19,520 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:19,787 - 124695 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:47:19,790 - 124695 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 09:47:19,791 - 124695 - 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 = 14638... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:20,063 - 124695 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:47:20,063 - 124695 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 09:47:20,066 - 124695 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-06 09:47:20,067 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:20,335 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:20,335 - 124695 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-06 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId in (150613, 150614, 150615) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:20,608 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:21,167 - 124695 - src.utils.log - INFO - Generating work orders for setup: 150613 - __SPLIT__ 2026-07-06 09:47:21,190 - 124695 - src.utils.log - INFO - Generating work orders for setup: 150614 - __SPLIT__ 2026-07-06 09:47:21,209 - 124695 - src.utils.log - INFO - Generating work orders for setup: 150615 - __SPLIT__ 2026-07-06 09:47:21,229 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (1130, 11428);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:21,496 - 124695 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 09:47:21,506 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11428, 11436);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:21,773 - 124695 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 09:47:21,812 - 124695 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-06 09:47:21,817 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:22,083 - 124695 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:47:22,086 - 124695 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-06 09:47:22,086 - 124695 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-06 09:47:22,086 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:22,401 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:22,401 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:22,715 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:22,715 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:22,988 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:22,989 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:23,304 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:23,304 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:23,618 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:23,619 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:23,898 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:23,898 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:24,168 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:24,168 - 124695 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150613, 150614, 150615) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:24,563 - 124695 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:47:24,563 - 124695 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:47:24,563 - 124695 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:24,866 - 124695 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-06 09:47:26,136 - 124695 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 09:47:26,137 - 124695 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 9 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId in (150613, 150614, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:26,447 - 124695 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:47:26,447 - 124695 - src.utils.log - INFO - Id's of work order inserted to DB: [3681131 3681132 3681133 3681134 3681135 3681136 3681137 3681138 3681139] - __SPLIT__ 2026-07-06 09:47:26,447 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:26,714 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:26,715 - 124695 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-06 09:47:26,715 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150613, 150614, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:26,984 - 124695 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:47:26,984 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150613, 150614, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:27,253 - 124695 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:47:27,261 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150613, 150614, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:27,538 - 124695 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-06 09:47:27,539 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150613, 150614, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:27,807 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:27,807 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150613, 150614, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:28,074 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:28,075 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:28,342 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:28,342 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:28,610 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:28,611 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:29,048 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:29,049 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:29,317 - 124695 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:47:29,330 - 124695 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-06 09:47:29,330 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 09:47:29,330 - 124695 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,330 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-06 09:47:29,330 - 124695 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,330 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-06 09:47:29,331 - 124695 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:47:29,332 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:29,599 - 124695 - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:47:29,600 - 124695 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:29,871 - 124695 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-06 09:47:30,816 - 124695 - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-06 09:47:30,816 - 124695 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-06 09:47:30,816 - 124695 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:47:30,817 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681131, 3681132, 3681133) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:31,083 - 124695 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:47:31,084 - 124695 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:31,360 - 124695 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 09:47:32,305 - 124695 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 09:47:32,305 - 124695 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 09:47:32,306 - 124695 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:47:32,306 - 124695 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681134, 3681135, 3681136, 3681137, 3681138, 3681139) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:32,572 - 124695 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-06 09:47:32,573 - 124695 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:32,847 - 124695 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 09:47:33,792 - 124695 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 09:47:33,793 - 124695 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 09:47:33,793 - 124695 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:47:34,060 - 124695 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 09:47:34,060 - 124695 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-06 09:47:34,060 - 124695 - src.utils.log - INFO - Time took to perform operation: 18.75 - __SPLIT__ 2026-07-06 09:47:58,632 - [124695] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124695] publish_all=True - __SPLIT__ 2026-07-06 09:47:58,633 - [124695] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124695] publish_all=True - __SPLIT__ 2026-07-06 09:47:58,634 - [124695] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124695] - __SPLIT__ 2026-07-06 09:47:58,634 - [124695] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 09:47:58,634 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:00,731 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:00,731 - [124695] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 09:48:00,731 - [124695] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 09:48:00,732 - [124695] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 09:48:00,732 - [124695] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:02,591 - [124695] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 09:48:02,591 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124695... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:02,899 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:02,899 - [124695] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-06 09:48:02,899 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150614, 150613, 150615) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:03,174 - [124695] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:48:03,174 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150614, 150613, 150615) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:03,447 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:03,448 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150614, 150613, 150615) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:03,724 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:03,728 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:03,992 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:03,992 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:04,258 - [124695] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 09:48:04,258 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:04,523 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:04,523 - [124695] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 9 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:04,792 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:04,792 - [124695] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 9 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:05,061 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:05,066 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150614, 150613, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:05,337 - [124695] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:48:05,344 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:05,608 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:05,609 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14995' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:05,873 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:05,876 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427231', '1427232', '1427233', '1427234', '1427235', '1427236', '1427237', '1427238', '1427239') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:06,146 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:06,146 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:06,581 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-06 09:48:07,849 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 09:48:07,982 - [124695] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 09:48:07,983 - [124695] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId in (150614, 150613, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:08,253 - [124695] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 09:48:08,254 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427231', '1427232', '1427233', '1427234', '1427235', '1427236', '1427237', '1427238', '1427239') AND wo.AccountNumber = '14995' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-07-06 09:48:08,525 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:08,526 - [124695] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-06 09:48:08,526 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:08,842 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:08,842 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:09,110 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:09,111 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:09,410 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:09,410 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:09,677 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:09,677 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:09,946 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:09,947 - [124695] - 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 (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:10,245 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:10,245 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:10,513 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:10,513 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:10,779 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:10,782 - [124695] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-06 09:48:10,883 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:11,148 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:11,148 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:11,414 - [124695] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 09:48:11,418 - [124695] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:48:11,418 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:11,709 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-06 09:48:12,681 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-06 09:48:12,682 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150614, 150613, 150615) AND WorkOrderNo IN ('727834', '828171', '754328', '4403898', '1188946', '8490185', '7702113', '8359357', '9341938') AND GenerateWorkOrderHistoryId = 124695;... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-07-06 09:48:13,095 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:13,095 - [124695] - src.utils.log - INFO - 🏁 Final merged rows: 9 - __SPLIT__ 2026-07-06 09:48:13,101 - [124695] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-06 09:48:13,101 - [124695] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:48:13,101 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:13,374 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-06 09:48:14,323 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-06 09:48:14,323 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-06 09:48:14,323 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-06 09:48:14,324 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-06 09:48:14,324 - [124695] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:48:14,324 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:14,594 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-06 09:48:15,535 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-06 09:48:15,536 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-06 09:48:15,536 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 09:48:15,536 - [124695] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:48:15,536 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:15,809 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-06 09:48:16,756 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-06 09:48:16,756 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150614, 150613, 150615)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:17,022 - [124695] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:48:17,028 - [124695] - src.utils.log - INFO - Size of Transaction: 9 - __SPLIT__ 2026-07-06 09:48:17,029 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:17,434 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-06 09:48:18,372 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 09:48:18,504 - [124695] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 09:48:18,504 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-06 05:48:17.023';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:18,885 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:18,888 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150613, 150614, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:19,154 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:19,163 - [124695] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918) AND CreatedDate = '2026-07-06 05:48:17.023'; ... (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-07-06 09:48:19,537 - [124695] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 09:48:19,543 - [124695] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:48:19,543 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:19,817 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.Invoice - __SPLIT__ 2026-07-06 09:48:20,763 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-06 09:48:20,764 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427232', '1427237', '1427234', '1427231', '1427236', '1427235', '1427233', '1427239', '1427238')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:21,959 - [124695] - src.utils.log - INFO - βœ… Fetched 9 rows - __SPLIT__ 2026-07-06 09:48:21,968 - [124695] - 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 (150614, 150613, 150615) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:22,237 - [124695] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:48:22,237 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId in (150614, 150613, 150615) and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:22,505 - [124695] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 09:48:22,506 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150614, 150613, 150615) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:22,773 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:22,774 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId in (150614, 150613, 150615) and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:23,041 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:23,056 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150614, 150613, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:23,324 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:23,330 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150614, 150613, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:23,597 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:23,600 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription, ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId in (150614, 150613, 150615);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:23,866 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:23,867 - [124695] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-06 09:48:23,867 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-06 09:48:23,867 - [124695] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 09:48:23,867 - [124695] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 9 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:24,141 - [124695] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 9) into Billing.InvoiceCharges - __SPLIT__ 2026-07-06 09:48:25,215 - [124695] - src.utils.log - INFO - βœ… All 9 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-06 09:48:25,215 - [124695] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-06 09:48:25,215 - [124695] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-06 09:48:25,215 - [124695] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-06 09:48:25,216 - [124695] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124695 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:25,482 - [124695] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 09:48:25,488 - [124695] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-06 09:48:25,621 - [124695] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e6741ce298 - __SPLIT__ 2026-07-06 09:48:25,888 - [124695] - src.utils.log - INFO - πŸ“Œ Bulk inserting 3 rows into #tbl_e6741ce298 - __SPLIT__ 2026-07-06 09:48:26,416 - [124695] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-06 09:48:26,556 - [124695] - src.utils.log - INFO - βœ” SQL reported affected rows: 3 - __SPLIT__ 2026-07-06 09:48:26,692 - [124695] - src.utils.log - INFO - πŸ” Verified successfully updated 3 rows via #tbl_e6741ce298 - __SPLIT__ 2026-07-06 09:48:26,692 - [124695] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e6741ce298 - __SPLIT__ 2026-07-06 09:48:26,693 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124695 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:26,957 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:26,957 - [124695] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-06 09:48:26,957 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:27,366 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:27,366 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:27,722 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:27,722 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:27,988 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:27,989 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:28,337 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:28,337 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:28,609 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:28,609 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:28,878 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:28,878 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:29,144 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:29,144 - [124695] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:29,774 - [124695] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 09:48:29,775 - [124695] - src.utils.log - INFO - Work order published ids: (3681131, 3681132, 3681133, 3681134, 3681135, 3681136, 3681137, 3681138, 3681139) - __SPLIT__ 2026-07-06 09:48:29,775 - [124695] - src.utils.log - INFO - Time took to perform operation in publishing [124695]: 31.14 - __SPLIT__ 2026-07-06 09:48:29,775 - [124695] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124695] - __SPLIT__ 2026-07-06 09:48:29,775 - [124695] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 05:48:29.774' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124695;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 09:48:30,041 - [124695] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:37:36,258 - [124696] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124696] publish_all=True - __SPLIT__ 2026-07-06 10:37:36,259 - [124696] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124696] publish_all=True - __SPLIT__ 2026-07-06 10:37:36,259 - [124696] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124696] - __SPLIT__ 2026-07-06 10:37:36,260 - [124696] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 10:37:36,260 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:38,324 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:38,325 - [124696] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 10:37:38,325 - [124696] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 10:37:38,326 - [124696] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 10:37:38,326 - [124696] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:40,190 - [124696] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 10:37:40,190 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124696... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:40,499 - [124696] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:37:40,499 - [124696] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-06 10:37:40,500 - [124696] - 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 = 150616 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:40,774 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:40,775 - [124696] - 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 = 150616 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:41,047 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:41,048 - [124696] - 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 = 150616 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:41,324 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:41,327 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:41,592 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:41,593 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:41,859 - [124696] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:37:41,860 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:42,130 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:42,131 - [124696] - 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-07-06 10:37:42,409 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:42,410 - [124696] - 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-07-06 10:37:42,688 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:42,692 - [124696] - 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 = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:42,964 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:42,967 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:43,233 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:43,233 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14995' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:43,499 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:43,502 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427240', '1427241') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:43,772 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:43,772 - [124696] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:44,207 - [124696] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-06 10:37:45,193 - [124696] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 10:37:45,327 - [124696] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 10:37:45,329 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427240', '1427241') AND wo.AccountNumber = '14995' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-07-06 10:37:45,601 - [124696] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:37:45,602 - [124696] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-06 10:37:45,602 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681140, 3681141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:45,905 - [124696] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:37:45,905 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681140, 3681141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:46,173 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:46,174 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681140, 3681141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:46,462 - [124696] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:37:46,463 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681140, 3681141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:46,729 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:46,730 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681140, 3681141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:46,999 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:46,999 - [124696] - 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 (3681140, 3681141)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:47,314 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:47,314 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681140, 3681141) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:47,583 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:47,583 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681140, 3681141);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:47,850 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:47,852 - [124696] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-06 10:37:47,864 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:48,129 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:48,130 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:48,398 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:48,401 - [124696] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:37:48,402 - [124696] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:48,693 - [124696] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-06 10:37:49,649 - [124696] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-06 10:37:49,651 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150616 AND WorkOrderNo IN ('1715467', '6379164') AND GenerateWorkOrderHistoryId = 124696;... (Thread: ThreadPoolExecutor-28_0) - __SPLIT__ 2026-07-06 10:37:50,065 - [124696] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 10:37:50,066 - [124696] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-06 10:37:50,072 - [124696] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-06 10:37:50,072 - [124696] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:37:50,072 - [124696] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:50,345 - [124696] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-06 10:37:51,291 - [124696] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-06 10:37:51,291 - [124696] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-06 10:37:51,291 - [124696] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-06 10:37:51,291 - [124696] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-06 10:37:51,291 - [124696] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:37:51,291 - [124696] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:51,563 - [124696] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-06 10:37:52,504 - [124696] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-06 10:37:52,504 - [124696] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-06 10:37:52,505 - [124696] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 10:37:52,505 - [124696] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 10:37:52,505 - [124696] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:52,779 - [124696] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-06 10:37:53,728 - [124696] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-06 10:37:53,729 - [124696] - 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 = 150616... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:53,995 - [124696] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 10:37:54,003 - [124696] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-06 10:37:54,003 - [124696] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124696 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:54,271 - [124696] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 10:37:54,277 - [124696] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-06 10:37:54,410 - [124696] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_70f46ceb90 - __SPLIT__ 2026-07-06 10:37:54,678 - [124696] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_70f46ceb90 - __SPLIT__ 2026-07-06 10:37:54,944 - [124696] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-06 10:37:55,084 - [124696] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-06 10:37:55,221 - [124696] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_70f46ceb90 - __SPLIT__ 2026-07-06 10:37:55,222 - [124696] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_70f46ceb90 - __SPLIT__ 2026-07-06 10:37:55,222 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124696 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:55,488 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:55,488 - [124696] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-06 10:37:55,488 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:55,888 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:55,889 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:56,238 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:56,239 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:56,506 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:56,506 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:56,850 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:56,850 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:57,123 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:57,124 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:57,394 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:57,394 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:57,662 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:57,663 - [124696] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681140, 3681141) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:58,015 - [124696] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 10:37:58,015 - [124696] - src.utils.log - INFO - Work order published ids: (3681140, 3681141) - __SPLIT__ 2026-07-06 10:37:58,015 - [124696] - src.utils.log - INFO - Time took to perform operation in publishing [124696]: 21.76 - __SPLIT__ 2026-07-06 10:37:58,015 - [124696] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124696] - __SPLIT__ 2026-07-06 10:37:58,015 - [124696] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 06:37:58.015' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124696;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 10:37:58,282 - [124696] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:21:17,389 - 124697 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124697 - __SPLIT__ 2026-07-06 11:21:17,390 - 124697 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124697 - __SPLIT__ 2026-07-06 11:21:17,391 - 124697 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 11:21:17,391 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:19,374 - 124697 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:21:19,375 - 124697 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 11:21:19,375 - 124697 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 11:21:19,376 - 124697 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 11:21:19,376 - 124697 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:21,235 - 124697 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:21:21,235 - 124697 - 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 = 124697), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124697), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124697 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:21,543 - 124697 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:21:21,544 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:21,811 - 124697 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:21:21,814 - 124697 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 11:21:21,814 - 124697 - 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 (13962, 14638)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:22,095 - 124697 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:21:22,095 - 124697 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 11:21:22,099 - 124697 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-06 11:21:22,099 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150636, 150620);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:22,367 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:22,368 - 124697 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-06 00:00:00' and ServiceDate <= '2026-09-30 00:00:00' and ServiceSetupId in (150636, 150620) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:22,640 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:23,199 - 124697 - src.utils.log - INFO - Generating work orders for setup: 150620 - __SPLIT__ 2026-07-06 11:21:23,223 - 124697 - src.utils.log - INFO - Generating work orders for setup: 150636 - __SPLIT__ 2026-07-06 11:21:23,242 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:23,509 - 124697 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:21:23,518 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11427, 11428);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:23,785 - 124697 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:21:23,822 - 124697 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-06 11:21:23,828 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:24,092 - 124697 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:21:24,095 - 124697 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-06 11:21:24,095 - 124697 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-06 11:21:24,095 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:24,410 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:24,410 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:24,723 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:24,723 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:24,997 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:24,997 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:25,310 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:25,311 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:25,623 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:25,624 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:25,901 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:25,902 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:26,171 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:26,171 - 124697 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150636, 150620) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:26,562 - 124697 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 11:21:26,562 - 124697 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:21:26,562 - 124697 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:26,865 - 124697 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-06 11:21:27,976 - 124697 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 11:21:27,976 - 124697 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-01 11:58:39.763' and ServiceSetupId in (150636, 150620)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:28,286 - 124697 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:21:28,286 - 124697 - src.utils.log - INFO - Id's of work order inserted to DB: [3681142 3681143 3681144 3681145 3681146] - __SPLIT__ 2026-07-06 11:21:28,287 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150636, 150620);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:28,553 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:28,553 - 124697 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-06 11:21:28,554 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150636, 150620)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:28,822 - 124697 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 11:21:28,822 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150636, 150620)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:29,090 - 124697 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:21:29,098 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150636, 150620)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:29,373 - 124697 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 11:21:29,375 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150636, 150620)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:29,642 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:29,643 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150636, 150620)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:29,909 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:29,910 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150636, 150620);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:30,176 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:30,177 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150636, 150620);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:30,443 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:30,444 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150636, 150620);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:30,904 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:30,905 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150636, 150620);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:31,173 - 124697 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 11:21:31,186 - 124697 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-06 11:21:31,186 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-06 11:21:31,187 - 124697 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:21:31,188 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681142, 3681143, 3681144, 3681145, 3681146) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:31,453 - 124697 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-06 11:21:31,454 - 124697 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:31,725 - 124697 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-06 11:21:32,666 - 124697 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-06 11:21:32,666 - 124697 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-06 11:21:32,667 - 124697 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:21:32,667 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681142 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:32,933 - 124697 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 11:21:32,934 - 124697 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:33,208 - 124697 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 11:21:34,147 - 124697 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 11:21:34,147 - 124697 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 11:21:34,147 - 124697 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 11:21:34,147 - 124697 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681144, 3681145, 3681146, 3681143) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:34,414 - 124697 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-06 11:21:34,415 - 124697 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:34,689 - 124697 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 11:21:35,630 - 124697 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 11:21:35,631 - 124697 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 11:21:35,631 - 124697 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124697;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 11:21:35,898 - 124697 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 11:21:35,898 - 124697 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-06 11:21:35,898 - 124697 - src.utils.log - INFO - Time took to perform operation: 18.51 - __SPLIT__ 2026-07-06 12:01:10,969 - 124698 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124698 - __SPLIT__ 2026-07-06 12:01:10,971 - 124698 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124698 - __SPLIT__ 2026-07-06 12:01:10,985 - 124698 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 12:01:10,985 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:13,637 - 124698 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:01:13,637 - 124698 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 12:01:13,638 - 124698 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 12:01:13,638 - 124698 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 12:01:13,638 - 124698 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:16,064 - 124698 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:01:16,065 - 124698 - 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 = 124698), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124698), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124698 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:16,376 - 124698 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:01:16,377 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:16,648 - 124698 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:01:16,652 - 124698 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-06 12:01:16,652 - 124698 - 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 (13962, 14638)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:16,930 - 124698 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:01:16,930 - 124698 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-06 12:01:16,934 - 124698 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-06 12:01:16,935 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:17,207 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:17,207 - 124698 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId,IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-06 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId in (150625, 150637) and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:17,483 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:18,052 - 124698 - src.utils.log - INFO - Generating work orders for setup: 150625 - __SPLIT__ 2026-07-06 12:01:18,070 - 124698 - src.utils.log - INFO - Generating work orders for setup: 150637 - __SPLIT__ 2026-07-06 12:01:18,078 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1130.0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:18,350 - 124698 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:01:18,358 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId in (11437, 1127);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:18,628 - 124698 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:01:18,666 - 124698 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-06 12:01:18,671 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:18,940 - 124698 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:01:18,942 - 124698 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-06 12:01:18,942 - 124698 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-06 12:01:18,943 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:19,261 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:19,261 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:19,579 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:19,579 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:19,857 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:19,857 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:20,175 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:20,175 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:20,492 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:20,492 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:20,774 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:20,774 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:21,046 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:21,047 - 124698 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId in (150625, 150637) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:21,441 - 124698 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:01:21,441 - 124698 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:01:21,441 - 124698 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:21,747 - 124698 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-06 12:01:22,868 - 124698 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-06 12:01:22,868 - 124698 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-06 17:03:35.662' and ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:23,182 - 124698 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:01:23,183 - 124698 - src.utils.log - INFO - Id's of work order inserted to DB: [3681147 3681148 3681149] - __SPLIT__ 2026-07-06 12:01:23,183 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:23,453 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:23,453 - 124698 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-06 12:01:23,453 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:23,725 - 124698 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:01:23,726 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:23,997 - 124698 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:01:24,005 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:24,284 - 124698 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:01:24,285 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:24,556 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:24,556 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:24,827 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:24,827 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:25,098 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:25,098 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:25,369 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:25,369 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:25,797 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:25,798 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:26,070 - 124698 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,083 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-06 12:01:26,084 - 124698 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,084 - 124698 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-06 12:01:26,084 - 124698 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-06 12:01:26,084 - 124698 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:01:26,084 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681147, 3681148, 3681149) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:26,354 - 124698 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:01:26,355 - 124698 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:26,629 - 124698 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-06 12:01:27,581 - 124698 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-06 12:01:27,581 - 124698 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-06 12:01:27,581 - 124698 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:01:27,582 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681147 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:27,851 - 124698 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:01:27,852 - 124698 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:28,129 - 124698 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 12:01:29,079 - 124698 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 12:01:29,079 - 124698 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 12:01:29,079 - 124698 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:01:29,080 - 124698 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681148, 3681149) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:29,350 - 124698 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:01:29,351 - 124698 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:29,627 - 124698 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-06 12:01:30,577 - 124698 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-06 12:01:30,578 - 124698 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-06 12:01:30,578 - 124698 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:30,849 - 124698 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:01:30,849 - 124698 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-06 12:01:30,849 - 124698 - src.utils.log - INFO - Time took to perform operation: 19.88 - __SPLIT__ 2026-07-06 12:01:30,849 - 124698 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:31,119 - 124698 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:01:31,119 - 124698 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-07-06 08:01:31.119' WHERE GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:01:31,391 - 124698 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:06:59,492 - [124698] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124698] publish_all=True - __SPLIT__ 2026-07-06 12:06:59,493 - [124698] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124698] publish_all=True - __SPLIT__ 2026-07-06 12:06:59,493 - [124698] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124698] - __SPLIT__ 2026-07-06 12:06:59,508 - [124698] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-06 12:06:59,508 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:02,155 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:02,155 - [124698] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-06 12:07:02,156 - [124698] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-06 12:07:02,156 - [124698] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-06 12:07:02,157 - [124698] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:04,556 - [124698] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:07:04,556 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124698... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:04,867 - [124698] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:07:04,867 - [124698] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-06 12:07:04,868 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150625, 150637) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:05,143 - [124698] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:07:05,143 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150625, 150637) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:05,418 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:05,418 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId in (150625, 150637) AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:05,695 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:05,701 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:05,967 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:05,967 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:06,234 - [124698] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:07:06,234 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:06,500 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:06,501 - [124698] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 3 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:06,772 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:06,772 - [124698] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 3 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:07,043 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:07,047 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:07,320 - [124698] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:07:07,324 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:07,590 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:07,590 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14997' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:07,856 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:07,859 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427247', '1427248', '1427249') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:08,130 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:08,130 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:08,567 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-06 12:07:09,683 - [124698] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 12:07:09,816 - [124698] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 12:07:09,817 - [124698] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150625;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:10,085 - [124698] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:07:10,087 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427247', '1427248', '1427249') AND wo.AccountNumber = '14997' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-06 12:07:10,359 - [124698] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:07:10,359 - [124698] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-06 12:07:10,360 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681147, 3681148, 3681149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:10,664 - [124698] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:07:10,664 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681147, 3681148, 3681149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:10,933 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:10,933 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681147, 3681148, 3681149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:11,224 - [124698] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:07:11,225 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681147, 3681148, 3681149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:11,493 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:11,493 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681147, 3681148, 3681149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:11,762 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:11,762 - [124698] - 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 (3681147, 3681148, 3681149)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:12,054 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:12,055 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681147, 3681148, 3681149) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:12,323 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:12,323 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681147, 3681148, 3681149);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:12,590 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:12,593 - [124698] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-06 12:07:12,606 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:12,872 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:12,872 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:13,138 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:13,142 - [124698] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:07:13,142 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:13,435 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-06 12:07:14,394 - [124698] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-06 12:07:14,395 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId IN (150625, 150637) AND WorkOrderNo IN ('162514', '9986673', '9687131') AND GenerateWorkOrderHistoryId = 124698;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-06 12:07:14,811 - [124698] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-07-06 12:07:14,812 - [124698] - src.utils.log - INFO - 🏁 Final merged rows: 3 - __SPLIT__ 2026-07-06 12:07:14,818 - [124698] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-06 12:07:14,818 - [124698] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:07:14,818 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:15,092 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-06 12:07:16,040 - [124698] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-06 12:07:16,041 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-06 12:07:16,041 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-06 12:07:16,041 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-06 12:07:16,041 - [124698] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:07:16,041 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:16,313 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-06 12:07:17,257 - [124698] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-06 12:07:17,257 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-06 12:07:17,257 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-06 12:07:17,257 - [124698] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:07:17,257 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:17,531 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-06 12:07:18,477 - [124698] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-06 12:07:18,477 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId in (150625, 150637)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:18,744 - [124698] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:07:18,754 - [124698] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-06 12:07:18,754 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:19,160 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-06 12:07:20,099 - [124698] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-06 12:07:20,232 - [124698] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-06 12:07:20,233 - [124698] - 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-07-06 08:07:18.748';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:20,605 - [124698] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:07:20,608 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId in (150625, 150637);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:20,874 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:20,883 - [124698] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-06 08:07:18.748'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-06 12:07:21,251 - [124698] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-06 12:07:21,256 - [124698] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:07:21,257 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:21,532 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-06 12:07:22,475 - [124698] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-06 12:07:22,476 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427247', '1427249')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:23,410 - [124698] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-06 12:07:23,421 - [124698] - 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 = 150625 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:23,691 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:23,691 - [124698] - 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 = 150625 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:23,961 - [124698] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-06 12:07:23,961 - [124698] - 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 = 150625 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:24,230 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:24,231 - [124698] - 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 = 150625 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:24,499 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:24,512 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150625;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:24,779 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:24,785 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150625;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:25,053 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:25,056 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150625;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:25,325 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:25,325 - [124698] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-06 12:07:25,325 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-06 12:07:25,326 - [124698] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-06 12:07:25,326 - [124698] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:25,601 - [124698] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-07-06 12:07:26,546 - [124698] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-06 12:07:26,546 - [124698] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-06 12:07:26,546 - [124698] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-06 12:07:26,547 - [124698] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-06 12:07:26,547 - [124698] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124698 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:26,815 - [124698] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-06 12:07:26,821 - [124698] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-06 12:07:26,955 - [124698] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_89fecd88e4 - __SPLIT__ 2026-07-06 12:07:27,223 - [124698] - src.utils.log - INFO - πŸ“Œ Bulk inserting 2 rows into #tbl_89fecd88e4 - __SPLIT__ 2026-07-06 12:07:27,623 - [124698] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-06 12:07:27,764 - [124698] - src.utils.log - INFO - βœ” SQL reported affected rows: 2 - __SPLIT__ 2026-07-06 12:07:27,901 - [124698] - src.utils.log - INFO - πŸ” Verified successfully updated 2 rows via #tbl_89fecd88e4 - __SPLIT__ 2026-07-06 12:07:27,901 - [124698] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_89fecd88e4 - __SPLIT__ 2026-07-06 12:07:27,901 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124698 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:28,167 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:28,168 - [124698] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-06 12:07:28,168 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:28,572 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:28,572 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:28,924 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:28,924 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:29,192 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:29,193 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:29,536 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:29,537 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:29,809 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:29,809 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:30,079 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:30,079 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:30,346 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:30,347 - [124698] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681147, 3681148, 3681149) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:30,737 - [124698] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-06 12:07:30,738 - [124698] - src.utils.log - INFO - Work order published ids: (3681147, 3681148, 3681149) - __SPLIT__ 2026-07-06 12:07:30,738 - [124698] - src.utils.log - INFO - Time took to perform operation in publishing [124698]: 31.24 - __SPLIT__ 2026-07-06 12:07:30,738 - [124698] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124698] - __SPLIT__ 2026-07-06 12:07:30,738 - [124698] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-06 08:07:30.738' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124698;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-06 12:07:31,006 - [124698] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:50:22,482 - 12573 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12573 - __SPLIT__ 2026-07-07 06:50:22,484 - 12573 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12573 - __SPLIT__ 2026-07-07 06:50:22,506 - 12573 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 06:50:22,506 - 12573 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:50:25,047 - 12573 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:50:25,047 - 12573 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-07 06:50:25,048 - 12573 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12573;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:50:25,331 - 12573 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:50:25,331 - 12573 - 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 = 12573), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12573), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12573 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:50:25,646 - 12573 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:50:25,646 - 12573 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12573;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:50:25,930 - 12573 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:50:25,932 - 12573 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-07 02:50:25.932' WHERE GenerateWorkOrderHistoryId = 12573;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:50:26,215 - 12573 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:50:26,215 - 12573 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12573 - __SPLIT__ 2026-07-07 06:52:29,374 - 12574 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12574 - __SPLIT__ 2026-07-07 06:52:29,377 - 12574 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12574 - __SPLIT__ 2026-07-07 06:52:29,392 - 12574 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 06:52:29,392 - 12574 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:52:32,070 - 12574 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:52:32,070 - 12574 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-07 06:52:32,070 - 12574 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12574;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:52:32,407 - 12574 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:52:32,407 - 12574 - 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 = 12574), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12574), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12574 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:52:32,736 - 12574 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:52:32,736 - 12574 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12574;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:52:33,038 - 12574 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:52:33,039 - 12574 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-07 02:52:33.039' WHERE GenerateWorkOrderHistoryId = 12574;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:52:33,365 - 12574 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:52:33,365 - 12574 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12574 - __SPLIT__ 2026-07-07 06:53:42,738 - 12575 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12575 - __SPLIT__ 2026-07-07 06:53:42,739 - 12575 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12575 - __SPLIT__ 2026-07-07 06:53:42,740 - 12575 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 06:53:42,740 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:44,808 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:44,808 - 12575 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-07 06:53:44,809 - 12575 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12575;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:45,104 - 12575 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:53:45,104 - 12575 - 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 = 12575), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12575), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12575 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:45,438 - 12575 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:53:45,438 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12575;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:45,737 - 12575 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:53:45,741 - 12575 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-07 06:53:45,741 - 12575 - 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 = 13107... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:46,045 - 12575 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-07 06:53:46,045 - 12575 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-07 06:53:46,049 - 12575 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-07 06:53:46,050 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:46,347 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:46,347 - 12575 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-06-01 00:00:00' and ServiceDate <= '2026-06-30 00:00:00' and ServiceSetupId = 34250 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:46,650 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:47,274 - 12575 - src.utils.log - INFO - Generating work orders for setup: 34250 - __SPLIT__ 2026-07-07 06:53:47,414 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1361;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:47,711 - 12575 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:53:47,755 - 12575 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-07 06:53:47,761 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:48,057 - 12575 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:53:48,059 - 12575 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-07 06:53:48,059 - 12575 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-07 06:53:48,059 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:48,374 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:48,374 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:48,687 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:48,687 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:48,994 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:48,995 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:49,314 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:49,314 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:49,628 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:49,628 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:49,939 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:49,939 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:50,239 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:50,240 - 12575 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34250 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:50,867 - 12575 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 06:53:50,868 - 12575 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 06:53:50,868 - 12575 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:51,215 - 12575 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-07 06:53:53,214 - 12575 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-07 06:53:53,214 - 12575 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 22 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-07 12:02:46.580' and ServiceSetupId = 34250... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:53,519 - 12575 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-07 06:53:53,519 - 12575 - src.utils.log - INFO - Id's of work order inserted to DB: [2736752 2736753 2736754 2736755 2736756 2736757 2736758 2736759 2736760 2736761 2736762 2736763 2736764 2736765 2736766 2736767 2736768 2736769 2736770 2736771 2736772 2736773] - __SPLIT__ 2026-07-07 06:53:53,519 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:53,815 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:53,816 - 12575 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-07 06:53:53,816 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34250... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:54,115 - 12575 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:53:54,115 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34250... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:54,411 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:54,415 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34250... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:54,715 - 12575 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 06:53:54,717 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34250... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:55,019 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:55,019 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34250... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:55,315 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:55,315 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:55,613 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:55,614 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:55,910 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:55,911 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:56,226 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:56,226 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34250;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:56,525 - 12575 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 06:53:56,534 - 12575 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-07 06:53:56,534 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 06:53:56,534 - 12575 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,534 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-07 06:53:56,534 - 12575 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 06:53:56,535 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2736768, 2736769, 2736770, 2736771, 2736772, 2736773, 2736752, 2736753, 2736754, 2736755, 2736756, 2736757, 2736758, 2736759, 2736760, 2736761, 2736762, 2736763, 2736764, 2736765, 2736766, 2736767) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:56,835 - 12575 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-07 06:53:56,836 - 12575 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:57,154 - 12575 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-07 06:53:58,208 - 12575 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-07 06:53:58,208 - 12575 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-07 06:53:58,208 - 12575 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-07 06:53:58,208 - 12575 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 06:53:58,208 - 12575 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 06:53:58,209 - 12575 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2736768, 2736769, 2736770, 2736771, 2736772, 2736773, 2736752, 2736753, 2736754, 2736755, 2736756, 2736757, 2736758, 2736759, 2736760, 2736761, 2736762, 2736763, 2736764, 2736765, 2736766, 2736767) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:58,503 - 12575 - src.utils.log - INFO - βœ… Fetched 22 rows - __SPLIT__ 2026-07-07 06:53:58,504 - 12575 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 22 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:53:58,825 - 12575 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 22) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-07 06:53:59,895 - 12575 - src.utils.log - INFO - βœ… All 22 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-07 06:53:59,895 - 12575 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 06:53:59,895 - 12575 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12575;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 06:54:00,194 - 12575 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 06:54:00,194 - 12575 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-07 06:54:00,194 - 12575 - src.utils.log - INFO - Time took to perform operation: 17.46 - __SPLIT__ 2026-07-07 10:13:37,538 - 124699 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124699 - __SPLIT__ 2026-07-07 10:13:37,539 - 124699 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124699 - __SPLIT__ 2026-07-07 10:13:37,540 - 124699 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 10:13:37,540 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:39,691 - 124699 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:13:39,692 - 124699 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-07 10:13:39,692 - 124699 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-07 10:13:39,693 - 124699 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-07 10:13:39,693 - 124699 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124699;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:42,129 - 124699 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 10:13:42,129 - 124699 - 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 = 124699), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124699), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124699 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:42,468 - 124699 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:13:42,469 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124699;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:42,742 - 124699 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:13:42,744 - 124699 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-07 10:13:42,745 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:43,028 - 124699 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-07 10:13:43,029 - 124699 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-07 10:13:43,032 - 124699 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-07 10:13:43,032 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:43,306 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:43,307 - 124699 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-07 00:00:00' and ServiceDate <= '2026-07-21 00:00:00' and ServiceSetupId = 150640 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:43,589 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:44,161 - 124699 - src.utils.log - INFO - Generating work orders for setup: 150640 - __SPLIT__ 2026-07-07 10:13:44,271 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:44,542 - 124699 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:13:44,581 - 124699 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-07 10:13:44,587 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:44,857 - 124699 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:13:44,859 - 124699 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-07 10:13:44,859 - 124699 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-07 10:13:44,859 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:45,235 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:45,236 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:45,589 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:45,590 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:45,883 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:45,883 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:46,236 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:46,236 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:46,581 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:46,582 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:46,944 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:46,945 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:47,234 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:47,234 - 124699 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150640 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:47,682 - 124699 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:13:47,682 - 124699 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:13:47,682 - 124699 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:48,014 - 124699 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-07 10:13:49,164 - 124699 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-07 10:13:49,164 - 124699 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 6 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-07 12:02:46.580' and ServiceSetupId = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:49,508 - 124699 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:13:49,509 - 124699 - src.utils.log - INFO - Id's of work order inserted to DB: [3681150 3681151 3681152 3681153 3681154 3681155] - __SPLIT__ 2026-07-07 10:13:49,509 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:49,779 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:49,780 - 124699 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-07 10:13:49,780 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:50,054 - 124699 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-07 10:13:50,054 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:50,326 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:50,330 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:50,612 - 124699 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 10:13:50,614 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:50,885 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:50,886 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:51,164 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:51,165 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:51,438 - 124699 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 10:13:51,439 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:51,710 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:51,711 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:52,585 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:52,585 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:52,857 - 124699 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-07 10:13:52,870 - 124699 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:13:52,871 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681152, 3681153, 3681154, 3681155, 3681150, 3681151) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:53,142 - 124699 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:13:53,143 - 124699 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:53,448 - 124699 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-07 10:13:54,450 - 124699 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-07 10:13:54,450 - 124699 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-07 10:13:54,450 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-07 10:13:54,450 - 124699 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 10:13:54,451 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-07 10:13:54,451 - 124699 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 10:13:54,451 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-07 10:13:54,451 - 124699 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-07 10:13:54,451 - 124699 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:13:54,451 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681152, 3681153, 3681154, 3681155, 3681150, 3681151) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:54,721 - 124699 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:13:54,722 - 124699 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:55,024 - 124699 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-07 10:13:55,995 - 124699 - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-07 10:13:55,996 - 124699 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-07 10:13:55,996 - 124699 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-07 10:13:55,996 - 124699 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 10:13:55,996 - 124699 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:13:55,996 - 124699 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681152, 3681153, 3681154, 3681155, 3681150, 3681151) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:56,273 - 124699 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:13:56,274 - 124699 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:56,576 - 124699 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-07 10:13:57,718 - 124699 - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-07 10:13:57,719 - 124699 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 10:13:57,719 - 124699 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124699;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:13:57,990 - 124699 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 10:13:57,990 - 124699 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-07 10:13:57,990 - 124699 - src.utils.log - INFO - Time took to perform operation: 20.45 - __SPLIT__ 2026-07-07 10:14:30,579 - [124699] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681150, 3681151, 3681152, 3681153, 3681154, 3681155] user_id=43135 company_id=133 project_id=[124699] publish_all=False - __SPLIT__ 2026-07-07 10:14:30,580 - [124699] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681150, 3681151, 3681152, 3681153, 3681154, 3681155] user_id=43135 company_id=133 project_id=[124699] publish_all=False - __SPLIT__ 2026-07-07 10:14:30,580 - [124699] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124699] - __SPLIT__ 2026-07-07 10:14:30,581 - [124699] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 10:14:30,581 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:32,646 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:32,647 - [124699] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-07 10:14:32,647 - [124699] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-07 10:14:32,648 - [124699] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-07 10:14:32,648 - [124699] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124699;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:35,083 - [124699] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 10:14:35,083 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:35,359 - [124699] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:14:35,359 - [124699] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-07 10:14:35,359 - [124699] - 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 = 150640 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:35,642 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:35,642 - [124699] - 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 = 150640 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:35,921 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:35,922 - [124699] - 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 = 150640 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:36,208 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:36,213 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:36,487 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:36,487 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:36,759 - [124699] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 10:14:36,760 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:37,033 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:37,034 - [124699] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 6 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:37,313 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:37,314 - [124699] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 6 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:37,587 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:37,592 - [124699] - 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 = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:37,871 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:37,875 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:38,146 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:38,146 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15001' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:38,417 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:38,420 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427250', '1427251', '1427252', '1427253', '1427254', '1427255') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:38,696 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:38,697 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:39,162 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-07 10:14:40,448 - [124699] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-07 10:14:40,582 - [124699] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-07 10:14:40,585 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427250', '1427251', '1427252', '1427253', '1427254', '1427255') AND wo.AccountNumber = '15001' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-07 10:14:40,866 - [124699] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:14:40,867 - [124699] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-07 10:14:40,867 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:41,246 - [124699] - src.utils.log - INFO - βœ… Fetched 30 rows - __SPLIT__ 2026-07-07 10:14:41,246 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:41,520 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:41,520 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:41,856 - [124699] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-07 10:14:41,856 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:42,129 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:42,129 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:42,425 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:42,425 - [124699] - 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 (3681150, 3681151, 3681152, 3681153, 3681154, 3681155)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:42,781 - [124699] - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-07-07 10:14:42,781 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:43,053 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:43,054 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:43,326 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:43,329 - [124699] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-07 10:14:43,341 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:43,613 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:43,616 - [124699] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (1147, 1141) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:43,888 - [124699] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 10:14:43,891 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:44,162 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:44,166 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:14:44,166 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:44,491 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-07 10:14:45,486 - [124699] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-07 10:14:45,488 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150640 AND WorkOrderNo IN ('8426489', '6315850', '8149301', '5133599', '9046818', '2059981') AND GenerateWorkOrderHistoryId = 124699;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-07 10:14:46,040 - [124699] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:14:46,041 - [124699] - src.utils.log - INFO - 🏁 Final merged rows: 6 - __SPLIT__ 2026-07-07 10:14:46,047 - [124699] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-07 10:14:46,047 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:14:46,047 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:46,353 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-07 10:14:47,542 - [124699] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-07 10:14:47,542 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:14:47,543 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:47,844 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-07-07 10:14:48,864 - [124699] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-07-07 10:14:48,864 - [124699] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-07 10:14:48,865 - [124699] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-07 10:14:48,865 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:14:48,865 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:49,165 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-07 10:14:50,192 - [124699] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-07 10:14:50,193 - [124699] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-07 10:14:50,193 - [124699] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 10:14:50,193 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:14:50,193 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:50,498 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-07 10:14:51,559 - [124699] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-07 10:14:51,559 - [124699] - 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 = 150640... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:51,829 - [124699] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 10:14:51,836 - [124699] - src.utils.log - INFO - Size of Transaction: 6 - __SPLIT__ 2026-07-07 10:14:51,837 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:52,272 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-07 10:14:53,270 - [124699] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-07 10:14:53,405 - [124699] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-07 10:14:53,405 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-07 06:14:51.831';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:57,707 - [124699] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:14:57,710 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:57,981 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:14:57,990 - [124699] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915) AND CreatedDate = '2026-07-07 06:14:51.831'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-07 10:14:58,462 - [124699] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 10:14:58,469 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:14:58,469 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 6 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:14:58,776 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.Invoice - __SPLIT__ 2026-07-07 10:14:59,764 - [124699] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-07 10:14:59,765 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427255', '1427254', '1427253', '1427252', '1427251', '1427250')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:01,065 - [124699] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-07 10:15:01,075 - [124699] - 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 = 150640 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:01,350 - [124699] - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-07 10:15:01,350 - [124699] - 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 = 150640 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:01,626 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:15:01,627 - [124699] - 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 = 150640 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:01,901 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:15:01,901 - [124699] - 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 = 150640 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:02,175 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:15:02,189 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:02,460 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:15:02,466 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:02,738 - [124699] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 10:15:02,749 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150640;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:03,021 - [124699] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 10:15:03,031 - [124699] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-07 10:15:03,031 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:15:03,031 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:03,332 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-07 10:15:04,324 - [124699] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-07 10:15:04,324 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:15:04,324 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 30 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:04,630 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 30) into Billing.InvoiceCharges - __SPLIT__ 2026-07-07 10:15:05,763 - [124699] - src.utils.log - INFO - βœ… All 30 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-07 10:15:05,764 - [124699] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 10:15:05,764 - [124699] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 12 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:06,067 - [124699] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 12) into Billing.DiscountApplied - __SPLIT__ 2026-07-07 10:15:07,037 - [124699] - src.utils.log - INFO - βœ… All 12 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-07 10:15:07,038 - [124699] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-07 10:15:07,038 - [124699] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-07 10:15:07,038 - [124699] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124699 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:07,331 - [124699] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 10:15:07,338 - [124699] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-07 10:15:07,474 - [124699] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_b4c05ed202 - __SPLIT__ 2026-07-07 10:15:07,774 - [124699] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_b4c05ed202 - __SPLIT__ 2026-07-07 10:15:08,043 - [124699] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-07 10:15:08,192 - [124699] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-07 10:15:08,345 - [124699] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_b4c05ed202 - __SPLIT__ 2026-07-07 10:15:08,345 - [124699] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_b4c05ed202 - __SPLIT__ 2026-07-07 10:15:08,345 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124699 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:08,617 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:08,618 - [124699] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-07 10:15:08,618 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:09,076 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:09,077 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:09,471 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:09,471 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:09,745 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:09,745 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:10,131 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:10,131 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:10,415 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:10,416 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:10,693 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:10,693 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:10,965 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:10,966 - [124699] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:11,561 - [124699] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 10:15:11,562 - [124699] - src.utils.log - INFO - Work order published ids: (3681150, 3681151, 3681152, 3681153, 3681154, 3681155) - __SPLIT__ 2026-07-07 10:15:11,562 - [124699] - src.utils.log - INFO - Time took to perform operation in publishing [124699]: 40.98 - __SPLIT__ 2026-07-07 10:15:11,562 - [124699] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124699] - __SPLIT__ 2026-07-07 10:15:11,562 - [124699] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-07 06:15:11.562' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124699;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 10:15:11,835 - [124699] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 11:48:23,129 - 12596 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12596 - __SPLIT__ 2026-07-07 11:48:23,130 - 12596 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12596 - __SPLIT__ 2026-07-07 11:48:23,145 - 12596 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 11:48:23,145 - 12596 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 11:48:25,826 - 12596 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 11:48:25,826 - 12596 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-07 11:48:25,826 - 12596 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 11:48:26,121 - 12596 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 11:48:26,121 - 12596 - 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 = 12596), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12596), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12596 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 11:48:26,439 - 12596 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 11:48:26,440 - 12596 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 11:48:26,736 - 12596 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 11:48:26,737 - 12596 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-07 07:48:26.737' WHERE GenerateWorkOrderHistoryId = 12596;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 11:48:27,033 - 12596 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 11:48:27,033 - 12596 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 12596 - __SPLIT__ 2026-07-07 13:00:09,348 - 124700 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124700 - __SPLIT__ 2026-07-07 13:00:09,349 - 124700 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124700 - __SPLIT__ 2026-07-07 13:00:09,350 - 124700 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 13:00:09,350 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:14,686 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:14,687 - 124700 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-07 13:00:14,687 - 124700 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-07 13:00:14,688 - 124700 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-07 13:00:14,688 - 124700 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:17,221 - 124700 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:00:17,221 - 124700 - 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 = 124700), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124700), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124700 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:17,540 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:17,541 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:17,810 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:17,814 - 124700 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-07 13:00:17,815 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:18,098 - 124700 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-07 13:00:18,098 - 124700 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-07 13:00:18,102 - 124700 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-07 13:00:18,103 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:18,372 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:18,373 - 124700 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-01 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150641 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:18,652 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:19,223 - 124700 - src.utils.log - INFO - Generating work orders for setup: 150641 - __SPLIT__ 2026-07-07 13:00:19,355 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:19,623 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:19,667 - 124700 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-07 13:00:19,674 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:19,941 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:19,943 - 124700 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-07 13:00:19,943 - 124700 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-07 13:00:19,943 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:20,286 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:20,286 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:20,628 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:20,628 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:20,912 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:20,912 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:21,249 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:21,249 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:21,593 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:21,594 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:21,892 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:21,892 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:22,181 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:22,181 - 124700 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150641 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:22,625 - 124700 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:00:22,626 - 124700 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:00:22,626 - 124700 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:22,960 - 124700 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-07 13:00:24,815 - 124700 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-07 13:00:24,816 - 124700 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 21 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-07 12:02:45.947' and ServiceSetupId = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:25,149 - 124700 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:00:25,150 - 124700 - src.utils.log - INFO - Id's of work order inserted to DB: [3681156 3681157 3681158 3681159 3681160 3681161 3681162 3681163 3681164 3681165 3681166 3681167 3681168 3681169 3681170 3681171 3681172 3681173 3681174 3681175 3681176] - __SPLIT__ 2026-07-07 13:00:25,150 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:25,419 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:25,419 - 124700 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-07 13:00:25,419 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:25,690 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:25,690 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:25,960 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:25,964 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:26,243 - 124700 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:00:26,245 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:26,513 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:26,514 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:26,781 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:26,781 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:27,050 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:27,050 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:27,318 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:27,319 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:27,727 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:27,727 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:27,997 - 124700 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-07 13:00:28,011 - 124700 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,012 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-07 13:00:28,012 - 124700 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,012 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-07 13:00:28,012 - 124700 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-07 13:00:28,012 - 124700 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:00:28,012 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:28,280 - 124700 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:00:28,281 - 124700 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:28,577 - 124700 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-07 13:00:29,535 - 124700 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-07 13:00:29,535 - 124700 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-07 13:00:29,535 - 124700 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-07 13:00:29,535 - 124700 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 13:00:29,535 - 124700 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:00:29,536 - 124700 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:29,803 - 124700 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:00:29,804 - 124700 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:30,103 - 124700 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-07 13:00:31,074 - 124700 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-07 13:00:31,075 - 124700 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 13:00:31,075 - 124700 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:00:31,343 - 124700 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:00:31,343 - 124700 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-07 13:00:31,344 - 124700 - src.utils.log - INFO - Time took to perform operation: 21.99 - __SPLIT__ 2026-07-07 13:01:36,517 - [124700] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124700] publish_all=True - __SPLIT__ 2026-07-07 13:01:36,518 - [124700] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124700] publish_all=True - __SPLIT__ 2026-07-07 13:01:36,519 - [124700] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124700] - __SPLIT__ 2026-07-07 13:01:36,519 - [124700] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 13:01:36,519 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:38,544 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:38,545 - [124700] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-07 13:01:38,545 - [124700] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-07 13:01:38,546 - [124700] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-07 13:01:38,546 - [124700] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:40,416 - [124700] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:01:40,417 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124700... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:40,757 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:01:40,757 - [124700] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-07 13:01:40,757 - [124700] - 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 = 150641 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:41,038 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:41,038 - [124700] - 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 = 150641 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:41,320 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:41,321 - [124700] - 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 = 150641 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:41,607 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:41,611 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:41,883 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:41,883 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:42,153 - [124700] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 13:01:42,153 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:42,425 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:42,425 - [124700] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 21 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:42,699 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:42,700 - [124700] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 21 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:42,974 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:42,978 - [124700] - 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 = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:43,255 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:43,265 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:43,534 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:43,534 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15002' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:43,803 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:43,806 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427256', '1427257', '1427258', '1427259', '1427260', '1427261', '1427262', '1427263', '1427264', '1427265', '1427266', '1427267', '1427268', '1427269', '1427270', '1427271', '1427272', '1427273', '1427274', '1427275', '1427276') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:44,082 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:44,082 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:44,543 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-07 13:01:46,915 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-07 13:01:47,048 - [124700] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-07 13:01:47,051 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427256', '1427257', '1427258', '1427259', '1427260', '1427261', '1427262', '1427263', '1427264', '1427265', '1427266', '1427267', '1427268', '1427269', '1427270', '1427271', '1427272', '1427273', '1427274', '1427275', '1427276') AND wo.AccountNumber = '15002' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-07 13:01:47,331 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:01:47,332 - [124700] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-07 13:01:47,332 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:47,721 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:01:47,721 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:47,995 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:47,995 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:48,344 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:01:48,344 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:48,614 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:48,615 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:48,892 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:48,892 - [124700] - 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 (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:49,230 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:49,230 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:49,505 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:49,505 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:49,777 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:49,780 - [124700] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-07 13:01:49,792 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:50,064 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:50,065 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:50,336 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:50,339 - [124700] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:01:50,340 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:50,662 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-07 13:01:51,999 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-07 13:01:52,000 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150641 AND WorkOrderNo IN ('3829572', '3834769', '1059488', '4396028', '4891069', '8650651', '6797980', '3928659', '9746372', '4452127', '5841306', '6229015', '9512401', '6751474', '3107169', '9161643', '5463932', '3313861', '2769126', '8342646', '9611934') AND GenerateWorkOrderHistoryId = 124700;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-07 13:01:52,484 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:01:52,484 - [124700] - src.utils.log - INFO - 🏁 Final merged rows: 21 - __SPLIT__ 2026-07-07 13:01:52,490 - [124700] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-07 13:01:52,490 - [124700] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:01:52,490 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:52,792 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-07 13:01:53,767 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-07 13:01:53,767 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-07 13:01:53,767 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-07 13:01:53,767 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-07 13:01:53,767 - [124700] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:01:53,768 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:54,062 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-07 13:01:55,023 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-07 13:01:55,023 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-07 13:01:55,023 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 13:01:55,023 - [124700] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:01:55,023 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:55,324 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-07 13:01:56,298 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-07 13:01:56,299 - [124700] - 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 = 150641... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:56,565 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:01:56,572 - [124700] - src.utils.log - INFO - Size of Transaction: 21 - __SPLIT__ 2026-07-07 13:01:56,573 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:57,002 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-07 13:01:58,034 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-07 13:01:58,169 - [124700] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-07 13:01:58,169 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-07 09:01:56.567';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:58,601 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:01:58,604 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:58,874 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:01:58,883 - [124700] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930) AND CreatedDate = '2026-07-07 09:01:56.567'; ... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-07-07 13:01:59,293 - [124700] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:01:59,298 - [124700] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:01:59,298 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:01:59,600 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.Invoice - __SPLIT__ 2026-07-07 13:02:00,580 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-07 13:02:00,580 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427276', '1427275', '1427274', '1427273', '1427272', '1427271', '1427270', '1427269', '1427268', '1427267', '1427266', '1427265', '1427264', '1427263', '1427262', '1427261', '1427260', '1427259', '1427258', '1427257', '1427256')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:02,777 - [124700] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:02:02,787 - [124700] - 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 = 150641 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:03,060 - [124700] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:02:03,060 - [124700] - 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 = 150641 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:03,332 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:03,333 - [124700] - 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 = 150641 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:03,605 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:03,606 - [124700] - 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 = 150641 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:03,877 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:03,890 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:04,157 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:04,163 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:04,433 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:04,436 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150641;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:04,705 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:04,706 - [124700] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-07 13:02:04,706 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-07 13:02:04,706 - [124700] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:02:04,706 - [124700] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:05,004 - [124700] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.InvoiceCharges - __SPLIT__ 2026-07-07 13:02:06,107 - [124700] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-07 13:02:06,107 - [124700] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-07 13:02:06,107 - [124700] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-07 13:02:06,107 - [124700] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-07 13:02:06,108 - [124700] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124700 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:06,380 - [124700] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:02:06,386 - [124700] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-07 13:02:06,820 - [124700] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_5f5e99a1d8 - __SPLIT__ 2026-07-07 13:02:07,089 - [124700] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_5f5e99a1d8 - __SPLIT__ 2026-07-07 13:02:07,355 - [124700] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-07 13:02:07,504 - [124700] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-07 13:02:07,643 - [124700] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_5f5e99a1d8 - __SPLIT__ 2026-07-07 13:02:07,644 - [124700] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_5f5e99a1d8 - __SPLIT__ 2026-07-07 13:02:07,644 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124700 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:07,913 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:07,913 - [124700] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-07 13:02:07,914 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:08,433 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:08,434 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:08,863 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:08,863 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:09,134 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:09,134 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:09,540 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:09,540 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:09,820 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:09,821 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:10,098 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:10,098 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:10,368 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:10,368 - [124700] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:11,875 - [124700] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:02:11,876 - [124700] - src.utils.log - INFO - Work order published ids: (3681156, 3681157, 3681158, 3681159, 3681160, 3681161, 3681162, 3681163, 3681164, 3681165, 3681166, 3681167, 3681168, 3681169, 3681170, 3681171, 3681172, 3681173, 3681174, 3681175, 3681176) - __SPLIT__ 2026-07-07 13:02:11,876 - [124700] - src.utils.log - INFO - Time took to perform operation in publishing [124700]: 35.36 - __SPLIT__ 2026-07-07 13:02:11,876 - [124700] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124700] - __SPLIT__ 2026-07-07 13:02:11,876 - [124700] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-07 09:02:11.876' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124700;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:02:12,149 - [124700] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:11:51,211 - 124701 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124701 - __SPLIT__ 2026-07-07 13:11:51,212 - 124701 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124701 - __SPLIT__ 2026-07-07 13:11:51,213 - 124701 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 13:11:51,214 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:53,304 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:11:53,304 - 124701 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-07 13:11:53,305 - 124701 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-07 13:11:53,305 - 124701 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-07 13:11:53,305 - 124701 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:55,184 - 124701 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:11:55,184 - 124701 - 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 = 124701), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124701), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124701 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:55,505 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:11:55,505 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:55,775 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:11:55,777 - 124701 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-07 13:11:55,778 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:56,058 - 124701 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-07 13:11:56,058 - 124701 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-07 13:11:56,061 - 124701 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-07 13:11:56,061 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:56,330 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:11:56,331 - 124701 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-08-01 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150642 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:56,611 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:11:57,179 - 124701 - src.utils.log - INFO - Generating work orders for setup: 150642 - __SPLIT__ 2026-07-07 13:11:57,313 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:57,581 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:11:57,628 - 124701 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-07 13:11:57,635 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:57,902 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:11:57,904 - 124701 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-07 13:11:57,904 - 124701 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-07 13:11:57,904 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:58,249 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:11:58,249 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:58,589 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:11:58,589 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:58,867 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:11:58,868 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:59,204 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:11:59,205 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:59,539 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:11:59,540 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:11:59,830 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:11:59,830 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:00,104 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:12:00,104 - 124701 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150642 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:00,556 - 124701 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:12:00,556 - 124701 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:00,556 - 124701 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:00,859 - 124701 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-07 13:12:02,547 - 124701 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-07 13:12:02,547 - 124701 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 21 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-07 12:02:46.580' and ServiceSetupId = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:02,881 - 124701 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:02,882 - 124701 - src.utils.log - INFO - Id's of work order inserted to DB: [3681177 3681178 3681179 3681180 3681181 3681182 3681183 3681184 3681185 3681186 3681187 3681188 3681189 3681190 3681191 3681192 3681193 3681194 3681195 3681196 3681197] - __SPLIT__ 2026-07-07 13:12:02,882 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:03,151 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:03,151 - 124701 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-07 13:12:03,152 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:03,423 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:03,423 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:03,692 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:03,696 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:03,973 - 124701 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:03,974 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:04,242 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:04,243 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:04,512 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:04,513 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:04,784 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:04,785 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:05,052 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:05,053 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:05,446 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:05,447 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:05,717 - 124701 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-07 13:12:05,726 - 124701 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,727 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-07 13:12:05,727 - 124701 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,727 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-07 13:12:05,727 - 124701 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-07 13:12:05,727 - 124701 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:05,727 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:05,997 - 124701 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:05,998 - 124701 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:06,271 - 124701 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-07 13:12:07,224 - 124701 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-07 13:12:07,224 - 124701 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-07 13:12:07,225 - 124701 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-07 13:12:07,225 - 124701 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 13:12:07,225 - 124701 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:07,225 - 124701 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:07,492 - 124701 - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:07,493 - 124701 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:07,770 - 124701 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-07 13:12:08,729 - 124701 - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-07 13:12:08,729 - 124701 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-07 13:12:08,729 - 124701 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:09,010 - 124701 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:12:09,010 - 124701 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-07 13:12:09,011 - 124701 - src.utils.log - INFO - Time took to perform operation: 17.8 - __SPLIT__ 2026-07-07 13:12:28,748 - [124701] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124701] publish_all=True - __SPLIT__ 2026-07-07 13:12:28,749 - [124701] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[] user_id=43135 company_id=133 project_id=[124701] publish_all=True - __SPLIT__ 2026-07-07 13:12:28,749 - [124701] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124701] - __SPLIT__ 2026-07-07 13:12:28,763 - [124701] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-07 13:12:28,764 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:31,439 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:31,440 - [124701] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-07 13:12:31,440 - [124701] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-07 13:12:31,441 - [124701] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-07 13:12:31,441 - [124701] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:33,847 - [124701] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:12:33,847 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.GenerateWorkOrderHistoryId = 124701... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:34,184 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:34,185 - [124701] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-07 13:12:34,185 - [124701] - 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 = 150642 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:34,470 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:34,471 - [124701] - 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 = 150642 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:34,749 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:34,750 - [124701] - 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 = 150642 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:35,037 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:35,042 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:35,308 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:35,308 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:35,575 - [124701] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-07 13:12:35,575 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:35,841 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:35,842 - [124701] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 21 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:36,111 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:36,111 - [124701] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 21 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:36,380 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:36,385 - [124701] - 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 = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:36,659 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:36,669 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:36,935 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:36,935 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15003' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:37,202 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:37,205 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427277', '1427278', '1427279', '1427280', '1427281', '1427282', '1427283', '1427284', '1427285', '1427286', '1427287', '1427288', '1427289', '1427290', '1427291', '1427292', '1427293', '1427294', '1427295', '1427296', '1427297') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:37,482 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:37,483 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:37,918 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-07 13:12:39,613 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-07 13:12:39,746 - [124701] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-07 13:12:39,748 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427277', '1427278', '1427279', '1427280', '1427281', '1427282', '1427283', '1427284', '1427285', '1427286', '1427287', '1427288', '1427289', '1427290', '1427291', '1427292', '1427293', '1427294', '1427295', '1427296', '1427297') AND wo.AccountNumber = '15003' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-07 13:12:40,030 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:40,031 - [124701] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-07 13:12:40,031 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:40,412 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:40,413 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:40,688 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:40,688 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:41,029 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:41,029 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:41,300 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:41,301 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:41,576 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:41,576 - [124701] - 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 (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:41,912 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:41,913 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:42,185 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:42,185 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:42,455 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:42,458 - [124701] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-07 13:12:42,470 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:42,736 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:42,737 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:43,003 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:43,007 - [124701] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:43,007 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:43,299 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-07 13:12:44,408 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-07 13:12:44,410 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150642 AND WorkOrderNo IN ('7110391', '4243108', '5765883', '8868291', '3164731', '8746885', '8434410', '8822863', '6939163', '9569475', '5464300', '8779125', '9906481', '6490734', '4389903', '8362385', '8446387', '5059461', '5460612', '8670525', '5511393') AND GenerateWorkOrderHistoryId = 124701;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-07 13:12:44,894 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:44,895 - [124701] - src.utils.log - INFO - 🏁 Final merged rows: 21 - __SPLIT__ 2026-07-07 13:12:44,901 - [124701] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-07 13:12:44,901 - [124701] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:44,901 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:45,176 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-07 13:12:46,135 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-07 13:12:46,136 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-07 13:12:46,136 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-07 13:12:46,136 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-07 13:12:46,136 - [124701] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:46,136 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:46,408 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-07 13:12:47,356 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-07 13:12:47,356 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-07 13:12:47,357 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-07 13:12:47,357 - [124701] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:47,357 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:47,631 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-07 13:12:48,583 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-07 13:12:48,584 - [124701] - 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 = 150642... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:48,850 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:48,857 - [124701] - src.utils.log - INFO - Size of Transaction: 21 - __SPLIT__ 2026-07-07 13:12:48,858 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:49,262 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-07 13:12:50,213 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-07 13:12:50,346 - [124701] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-07 13:12:50,346 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919, 12345678920, 12345678921, 12345678922, 12345678923, 12345678924, 12345678925, 12345678926, 12345678927, 12345678928, 12345678929, 12345678930) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-07 09:12:48.852';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:50,771 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:50,774 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:51,045 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:51,055 - [124701] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919,12345678920,12345678921,12345678922,12345678923,12345678924,12345678925,12345678926,12345678927,12345678928,12345678929,12345678930) AND CreatedDate = '2026-07-07 09:12:48.852'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-07 13:12:51,455 - [124701] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-07 13:12:51,461 - [124701] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:51,462 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:51,737 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.Invoice - __SPLIT__ 2026-07-07 13:12:52,687 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-07 13:12:52,687 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427297', '1427296', '1427295', '1427294', '1427293', '1427292', '1427291', '1427290', '1427289', '1427288', '1427287', '1427286', '1427285', '1427284', '1427283', '1427282', '1427281', '1427280', '1427279', '1427278', '1427277')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:54,941 - [124701] - src.utils.log - INFO - βœ… Fetched 21 rows - __SPLIT__ 2026-07-07 13:12:54,951 - [124701] - 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 = 150642 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:55,224 - [124701] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-07 13:12:55,224 - [124701] - 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 = 150642 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:55,495 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:55,496 - [124701] - 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 = 150642 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:55,769 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:55,769 - [124701] - 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 = 150642 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:56,039 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:56,052 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:56,320 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:56,326 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:56,594 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:56,598 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150642;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:56,867 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:56,868 - [124701] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-07 13:12:56,868 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-07 13:12:56,868 - [124701] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-07 13:12:56,868 - [124701] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 21 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:57,143 - [124701] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 21) into Billing.InvoiceCharges - __SPLIT__ 2026-07-07 13:12:58,224 - [124701] - src.utils.log - INFO - βœ… All 21 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-07 13:12:58,224 - [124701] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-07 13:12:58,224 - [124701] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-07 13:12:58,225 - [124701] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-07 13:12:58,225 - [124701] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124701 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:58,494 - [124701] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-07 13:12:58,501 - [124701] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-07 13:12:58,635 - [124701] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0b3b5fae5b - __SPLIT__ 2026-07-07 13:12:58,904 - [124701] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0b3b5fae5b - __SPLIT__ 2026-07-07 13:12:59,171 - [124701] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-07 13:12:59,318 - [124701] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-07 13:12:59,460 - [124701] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_0b3b5fae5b - __SPLIT__ 2026-07-07 13:12:59,460 - [124701] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0b3b5fae5b - __SPLIT__ 2026-07-07 13:12:59,460 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124701 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:12:59,727 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:12:59,728 - [124701] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-07 13:12:59,728 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:00,310 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:00,310 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:00,738 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:00,738 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:01,011 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:01,011 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:01,420 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:01,420 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:01,702 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:01,702 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:01,978 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:01,978 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:02,247 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:02,248 - [124701] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:03,812 - [124701] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-07 13:13:03,813 - [124701] - src.utils.log - INFO - Work order published ids: (3681177, 3681178, 3681179, 3681180, 3681181, 3681182, 3681183, 3681184, 3681185, 3681186, 3681187, 3681188, 3681189, 3681190, 3681191, 3681192, 3681193, 3681194, 3681195, 3681196, 3681197) - __SPLIT__ 2026-07-07 13:13:03,813 - [124701] - src.utils.log - INFO - Time took to perform operation in publishing [124701]: 35.06 - __SPLIT__ 2026-07-07 13:13:03,813 - [124701] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124701] - __SPLIT__ 2026-07-07 13:13:03,813 - [124701] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-07 09:13:03.813' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124701;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-07 13:13:04,080 - [124701] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-08 14:15:06,894 - 124702 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124702 - __SPLIT__ 2026-07-08 14:15:06,895 - 124702 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124702 - __SPLIT__ 2026-07-08 14:15:06,910 - 124702 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-08 14:15:06,910 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:09,479 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:09,479 - 124702 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-08 14:15:09,480 - 124702 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-08 14:15:09,480 - 124702 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-08 14:15:09,481 - 124702 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:11,923 - 124702 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-08 14:15:11,923 - 124702 - 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 = 124702), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124702), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124702 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:12,249 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:12,249 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:12,521 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:12,525 - 124702 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-08 14:15:12,526 - 124702 - 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 = 14572... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:12,811 - 124702 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-08 14:15:12,812 - 124702 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-08 14:15:12,815 - 124702 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-08 14:15:12,816 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:13,087 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:13,088 - 124702 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-08 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150644 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:13,367 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:13,937 - 124702 - src.utils.log - INFO - Generating work orders for setup: 150644 - __SPLIT__ 2026-07-08 14:15:13,954 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11437;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:14,225 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:14,262 - 124702 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-08 14:15:14,265 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:14,535 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:14,537 - 124702 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-08 14:15:14,537 - 124702 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-08 14:15:14,538 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:14,879 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:14,880 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:15,220 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:15,220 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:15,507 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:15,507 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:15,852 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:15,852 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:16,195 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:16,196 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:16,485 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:16,485 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:16,761 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:16,761 - 124702 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150644 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:17,209 - 124702 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:15:17,209 - 124702 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:15:17,209 - 124702 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:17,518 - 124702 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-08 14:15:18,556 - 124702 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-08 14:15:18,556 - 124702 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.992' and ServiceSetupId = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:18,893 - 124702 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:15:18,894 - 124702 - src.utils.log - INFO - Id's of work order inserted to DB: [3681198 3681199] - __SPLIT__ 2026-07-08 14:15:18,894 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:19,166 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:19,166 - 124702 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-08 14:15:19,166 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:19,440 - 124702 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:15:19,441 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:19,712 - 124702 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:15:19,720 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:19,999 - 124702 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-08 14:15:20,001 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:20,272 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:20,272 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:20,542 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:20,543 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:20,816 - 124702 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:15:20,818 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:21,088 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:21,089 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:21,986 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:21,987 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:22,260 - 124702 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:15:22,280 - 124702 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-08 14:15:22,280 - 124702 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-08 14:15:22,280 - 124702 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-08 14:15:22,280 - 124702 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-08 14:15:22,280 - 124702 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-08 14:15:22,280 - 124702 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:15:22,281 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('3681199', '3681198') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:22,552 - 124702 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:15:22,553 - 124702 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:22,853 - 124702 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-08 14:15:22,853 - 124702 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-08 14:15:22,853 - 124702 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:15:22,854 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681199 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:23,125 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:23,126 - 124702 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:23,428 - 124702 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-07-08 14:15:24,389 - 124702 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-07-08 14:15:24,389 - 124702 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-08 14:15:24,389 - 124702 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:15:24,390 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681198, 3681199) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:24,662 - 124702 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:15:24,663 - 124702 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:24,938 - 124702 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-08 14:15:25,901 - 124702 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-08 14:15:25,901 - 124702 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-08 14:15:25,902 - 124702 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:15:25,902 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681198 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:26,171 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:26,172 - 124702 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:26,451 - 124702 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-08 14:15:27,421 - 124702 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-08 14:15:27,422 - 124702 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-08 14:15:27,422 - 124702 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:15:27,422 - 124702 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681199 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:27,691 - 124702 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:15:27,692 - 124702 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:27,971 - 124702 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-08 14:15:28,939 - 124702 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-08 14:15:28,940 - 124702 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-08 14:15:28,940 - 124702 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:15:29,212 - 124702 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-08 14:15:29,212 - 124702 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-08 14:15:29,212 - 124702 - src.utils.log - INFO - Time took to perform operation: 22.32 - __SPLIT__ 2026-07-08 14:15:59,231 - [124702] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681198, 3681199] user_id=43135 company_id=133 project_id=[124702] publish_all=False - __SPLIT__ 2026-07-08 14:15:59,232 - [124702] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681198, 3681199] user_id=43135 company_id=133 project_id=[124702] publish_all=False - __SPLIT__ 2026-07-08 14:15:59,232 - [124702] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124702] - __SPLIT__ 2026-07-08 14:15:59,232 - [124702] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-08 14:15:59,233 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:01,247 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:01,248 - [124702] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-08 14:16:01,248 - [124702] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-08 14:16:01,249 - [124702] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-08 14:16:01,249 - [124702] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:03,131 - [124702] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-08 14:16:03,131 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:03,403 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:03,403 - [124702] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-08 14:16:03,404 - [124702] - 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 = 150644 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:03,684 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:03,684 - [124702] - 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 = 150644 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:03,963 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:03,963 - [124702] - 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 = 150644 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:04,245 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:04,249 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:04,516 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:04,516 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:04,783 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:04,784 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:05,053 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:05,054 - [124702] - 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-07-08 14:16:05,325 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:05,325 - [124702] - 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-07-08 14:16:05,597 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:05,602 - [124702] - 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 = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:05,880 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:05,882 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:06,149 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:06,150 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15000' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:06,417 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:06,419 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo IN ('1427298', '1427299') AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:06,694 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:06,694 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:07,132 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-08 14:16:08,129 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-08 14:16:08,263 - [124702] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-08 14:16:08,264 - [124702] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:08,539 - [124702] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-08 14:16:08,540 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1427298', '1427299') AND wo.AccountNumber = '15000' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-08 14:16:08,819 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:08,819 - [124702] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-08 14:16:08,820 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:09,134 - [124702] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-08 14:16:09,135 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:09,408 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:09,408 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:09,721 - [124702] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-07-08 14:16:09,721 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:09,991 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:09,991 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:10,263 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:10,264 - [124702] - 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 (3681198, 3681199)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:10,567 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:10,568 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3681198, 3681199) and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:10,839 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:10,839 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3681198, 3681199);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:11,108 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:11,110 - [124702] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-08 14:16:11,123 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:11,390 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:11,393 - [124702] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (947, 1007) AND CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:11,666 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:11,669 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:11,936 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:11,940 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:11,940 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:12,233 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-08 14:16:13,209 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-08 14:16:13,210 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150644 AND WorkOrderNo IN ('768545', '1525429') AND GenerateWorkOrderHistoryId = 124702;... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-08 14:16:13,721 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:13,722 - [124702] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-07-08 14:16:13,728 - [124702] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-08 14:16:13,728 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:13,728 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:14,002 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-08 14:16:14,967 - [124702] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-08 14:16:14,968 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:14,968 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:15,274 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-07-08 14:16:16,241 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-07-08 14:16:16,242 - [124702] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-08 14:16:16,242 - [124702] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-08 14:16:16,242 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:16,242 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:16,515 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-08 14:16:17,475 - [124702] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-08 14:16:17,475 - [124702] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-08 14:16:17,475 - [124702] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-08 14:16:17,475 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:17,475 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:17,751 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-08 14:16:18,722 - [124702] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-08 14:16:18,723 - [124702] - 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 = 150644... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:18,990 - [124702] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-08 14:16:18,997 - [124702] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-07-08 14:16:18,998 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:19,404 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-08 14:16:20,349 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-08 14:16:20,482 - [124702] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-08 14:16:20,483 - [124702] - 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-07-08 10:16:18.992';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:20,952 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:20,955 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:21,223 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:21,232 - [124702] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-07-08 10:16:18.992'; ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-07-08 14:16:21,635 - [124702] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-08 14:16:21,639 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:21,640 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:21,917 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-07-08 14:16:22,888 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-08 14:16:22,888 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1427298', '1427299')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:23,892 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:23,901 - [124702] - 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 = 150644 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:24,174 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:24,175 - [124702] - 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 = 150644 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:24,452 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:24,452 - [124702] - 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 = 150644 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:24,727 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:24,727 - [124702] - 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 = 150644 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:24,999 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:25,012 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:25,281 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:25,287 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:25,557 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:25,568 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150644;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:25,839 - [124702] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-08 14:16:25,847 - [124702] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-08 14:16:25,847 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:25,848 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:26,144 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-07-08 14:16:27,094 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-07-08 14:16:27,094 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:27,095 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:27,371 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-07-08 14:16:28,335 - [124702] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-08 14:16:28,336 - [124702] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-08 14:16:28,336 - [124702] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:28,635 - [124702] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-07-08 14:16:29,587 - [124702] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-07-08 14:16:29,587 - [124702] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-08 14:16:29,588 - [124702] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-08 14:16:29,588 - [124702] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124702 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:29,859 - [124702] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-08 14:16:29,865 - [124702] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-08 14:16:30,000 - [124702] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_f29e5cef8f - __SPLIT__ 2026-07-08 14:16:30,273 - [124702] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_f29e5cef8f - __SPLIT__ 2026-07-08 14:16:30,540 - [124702] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-08 14:16:30,684 - [124702] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-08 14:16:30,825 - [124702] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_f29e5cef8f - __SPLIT__ 2026-07-08 14:16:30,825 - [124702] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_f29e5cef8f - __SPLIT__ 2026-07-08 14:16:30,825 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124702 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:31,092 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:31,093 - [124702] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-08 14:16:31,093 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:31,542 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:31,543 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:31,931 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:31,931 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:32,201 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:32,201 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:32,589 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:32,589 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:32,866 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:32,866 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:33,141 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:33,141 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:33,410 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:33,411 - [124702] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3681198, 3681199) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:33,800 - [124702] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-08 14:16:33,800 - [124702] - src.utils.log - INFO - Work order published ids: (3681198, 3681199) - __SPLIT__ 2026-07-08 14:16:33,801 - [124702] - src.utils.log - INFO - Time took to perform operation in publishing [124702]: 34.57 - __SPLIT__ 2026-07-08 14:16:33,801 - [124702] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124702] - __SPLIT__ 2026-07-08 14:16:33,801 - [124702] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-08 10:16:33.800' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124702;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-08 14:16:34,069 - [124702] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-09 10:43:51,938 - 12611 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12611 - __SPLIT__ 2026-07-09 10:43:51,939 - 12611 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12611 - __SPLIT__ 2026-07-09 10:43:51,954 - 12611 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-09 10:43:51,954 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:54,871 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:43:54,871 - 12611 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-09 10:43:54,871 - 12611 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12611;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:55,169 - 12611 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-09 10:43:55,169 - 12611 - 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 = 12611), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12611), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12611 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:55,493 - 12611 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:43:55,494 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12611;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:55,793 - 12611 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:43:55,796 - 12611 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-09 10:43:55,797 - 12611 - 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 = 13120... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:56,101 - 12611 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-07-09 10:43:56,101 - 12611 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-09 10:43:56,105 - 12611 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-09 10:43:56,105 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:56,409 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:43:56,410 - 12611 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-09 00:00:00' and ServiceDate <= '2026-11-30 00:00:00' and ServiceSetupId = 34344 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:56,712 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:43:57,329 - 12611 - src.utils.log - INFO - Generating work orders for setup: 34344 - __SPLIT__ 2026-07-09 10:43:57,370 - 12611 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-09 10:43:57,376 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:57,679 - 12611 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:43:57,681 - 12611 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-09 10:43:57,681 - 12611 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-09 10:43:57,681 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:57,995 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:57,995 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:58,307 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:58,307 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:58,629 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:58,629 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:59,033 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:59,033 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:59,378 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:59,379 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:59,688 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:59,688 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:43:59,989 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:43:59,989 - 12611 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34344 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:00,392 - 12611 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:44:00,392 - 12611 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:44:00,393 - 12611 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:00,771 - 12611 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-09 10:44:01,880 - 12611 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-09 10:44:01,881 - 12611 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.953' and ServiceSetupId = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:02,199 - 12611 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:44:02,200 - 12611 - src.utils.log - INFO - Id's of work order inserted to DB: [2737048 2737049] - __SPLIT__ 2026-07-09 10:44:02,200 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:02,517 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:02,518 - 12611 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-09 10:44:02,518 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:02,818 - 12611 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:44:02,818 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:03,115 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:03,120 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:03,436 - 12611 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:44:03,438 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:03,735 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:03,736 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:04,036 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:04,037 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:04,350 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:04,351 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:04,647 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:04,648 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:04,974 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:04,974 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:05,274 - 12611 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,283 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:44:05,284 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737048, 2737049) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:05,589 - 12611 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:44:05,590 - 12611 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:05,906 - 12611 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-09 10:44:06,974 - 12611 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-09 10:44:06,974 - 12611 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-09 10:44:06,974 - 12611 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-09 10:44:06,974 - 12611 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-09 10:44:06,974 - 12611 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:44:06,975 - 12611 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737048, 2737049) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:07,300 - 12611 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:44:07,301 - 12611 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:07,621 - 12611 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-09 10:44:08,705 - 12611 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-09 10:44:08,706 - 12611 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-09 10:44:08,706 - 12611 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12611;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:44:09,014 - 12611 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-09 10:44:09,014 - 12611 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-09 10:44:09,014 - 12611 - src.utils.log - INFO - Time took to perform operation: 17.07 - __SPLIT__ 2026-07-09 10:46:08,237 - [12611] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737048] user_id=122885 company_id=135 project_id=[12611] publish_all=False - __SPLIT__ 2026-07-09 10:46:08,238 - [12611] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[2737048] user_id=122885 company_id=135 project_id=[12611] publish_all=False - __SPLIT__ 2026-07-09 10:46:08,238 - [12611] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [12611] - __SPLIT__ 2026-07-09 10:46:08,239 - [12611] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-09 10:46:08,240 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:10,293 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:10,293 - [12611] - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-09 10:46:10,294 - [12611] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12611;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:10,590 - [12611] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-09 10:46:10,590 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:10,885 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:10,886 - [12611] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-09 10:46:10,886 - [12611] - 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 = 34344 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:11,189 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:11,189 - [12611] - 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 = 34344 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:11,480 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:11,481 - [12611] - 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 = 34344 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:11,788 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:11,791 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:12,082 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:12,082 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:12,370 - [12611] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:46:12,370 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 135; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:12,663 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:12,663 - [12611] - 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-07-09 10:46:12,952 - [12611] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:46:12,955 - [12611] - 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 = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:13,248 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:13,250 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'Fortive';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:13,536 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:13,537 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '8663' and a.CompanyId = 124;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:13,825 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:13,828 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '169198R' AND CompanyId = 135 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:14,112 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:14,113 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:14,592 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-09 10:46:15,660 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-09 10:46:15,802 - [12611] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-09 10:46:15,804 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '169198R' AND wo.AccountNumber = '8663' AND wo.CompanyId = 135 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-07-09 10:46:16,093 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:16,093 - [12611] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-09 10:46:16,093 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:16,384 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:16,384 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:16,674 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:16,675 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:16,964 - [12611] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-09 10:46:16,964 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:17,250 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:17,250 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:17,541 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:17,542 - [12611] - 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 = 2737048... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:17,842 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:17,842 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 2737048 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:18,134 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:18,134 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 2737048;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:18,450 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:18,453 - [12611] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-09 10:46:18,465 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 135;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:18,755 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:18,756 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 135 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:19,071 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:19,075 - [12611] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:46:19,075 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:19,420 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-09 10:46:20,502 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-09 10:46:20,503 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 34344 AND WorkOrderNo = '1728292' AND GenerateWorkOrderHistoryId = 12611; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:20,824 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:20,830 - [12611] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-09 10:46:20,830 - [12611] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:46:20,830 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:21,164 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-09 10:46:22,190 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-09 10:46:22,191 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-09 10:46:22,191 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-09 10:46:22,191 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-09 10:46:22,191 - [12611] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:46:22,191 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:22,517 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-09 10:46:23,584 - [12611] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-09 10:46:23,584 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-09 10:46:23,585 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-09 10:46:23,585 - [12611] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:46:23,585 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:23,921 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-09 10:46:24,947 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-09 10:46:24,947 - [12611] - 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 = 34344... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:25,237 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:25,244 - [12611] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-09 10:46:25,245 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:25,732 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-09 10:46:26,801 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-09 10:46:26,943 - [12611] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-09 10:46:26,944 - [12611] - 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-07-09 06:46:25.239';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:27,289 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:27,291 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:27,580 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:27,588 - [12611] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-09 06:46:25.239'; ... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-07-09 10:46:27,899 - [12611] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-09 10:46:27,904 - [12611] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:46:27,904 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:28,214 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-09 10:46:29,241 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-09 10:46:29,242 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '169198R'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:29,582 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:29,591 - [12611] - 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 = 34344 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:29,878 - [12611] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-09 10:46:29,878 - [12611] - 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 = 34344 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:30,166 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:30,167 - [12611] - 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 = 34344 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:30,462 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:30,462 - [12611] - 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 = 34344 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:30,751 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:30,763 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:31,057 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:31,062 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:31,347 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:31,351 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 34344;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:31,665 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:31,666 - [12611] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-09 10:46:31,666 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-09 10:46:31,666 - [12611] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-09 10:46:31,666 - [12611] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:31,977 - [12611] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-09 10:46:32,990 - [12611] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-09 10:46:32,991 - [12611] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-09 10:46:32,991 - [12611] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-09 10:46:32,991 - [12611] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-09 10:46:32,991 - [12611] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12611 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:33,279 - [12611] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-09 10:46:33,286 - [12611] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-09 10:46:33,434 - [12611] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_31713abc6b - __SPLIT__ 2026-07-09 10:46:33,723 - [12611] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_31713abc6b - __SPLIT__ 2026-07-09 10:46:34,014 - [12611] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-09 10:46:34,173 - [12611] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-09 10:46:34,320 - [12611] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_31713abc6b - __SPLIT__ 2026-07-09 10:46:34,320 - [12611] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_31713abc6b - __SPLIT__ 2026-07-09 10:46:34,320 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 12611 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:34,604 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:34,605 - [12611] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-09 10:46:34,605 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:34,906 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:34,906 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:35,232 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:35,232 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:35,523 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:35,523 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:35,847 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:35,848 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:36,149 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:36,149 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:36,440 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:36,441 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:36,727 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:36,727 - [12611] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 2737048 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:37,041 - [12611] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-09 10:46:37,041 - [12611] - src.utils.log - INFO - Work order published ids: (2737048,) - __SPLIT__ 2026-07-09 10:46:37,041 - [12611] - src.utils.log - INFO - Time took to perform operation in publishing [12611]: 28.8 - __SPLIT__ 2026-07-09 10:46:37,041 - [12611] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [12611] - __SPLIT__ 2026-07-09 10:46:37,041 - [12611] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-09 06:46:37.041' WHERE CompanyId = 135 AND GenerateWorkOrderHistoryId = 12611;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-09 10:46:37,350 - [12611] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-10 15:16:08,477 - 124704 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124704 - __SPLIT__ 2026-07-10 15:16:08,478 - 124704 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124704 - __SPLIT__ 2026-07-10 15:16:08,479 - 124704 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-10 15:16:08,479 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:10,548 - 124704 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-10 15:16:10,549 - 124704 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-10 15:16:10,549 - 124704 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-10 15:16:10,550 - 124704 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-10 15:16:10,550 - 124704 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124704;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:12,563 - 124704 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-10 15:16:12,563 - 124704 - 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 = 124704), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124704), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124704 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:12,894 - 124704 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-10 15:16:12,894 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124704;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:13,180 - 124704 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-10 15:16:13,183 - 124704 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-10 15:16:13,184 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:13,478 - 124704 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-10 15:16:13,478 - 124704 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-10 15:16:13,481 - 124704 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-10 15:16:13,482 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:13,766 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:13,767 - 124704 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-10 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150646 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:14,055 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:14,652 - 124704 - src.utils.log - INFO - Generating work orders for setup: 150646 - __SPLIT__ 2026-07-10 15:16:14,924 - 124704 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-10 15:16:14,931 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:15,221 - 124704 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-10 15:16:15,223 - 124704 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-10 15:16:15,223 - 124704 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-10 15:16:15,223 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:16,072 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:16,072 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:16,580 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:16,581 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:16,880 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:16,880 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:17,535 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:17,535 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:17,884 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:17,884 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:18,764 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:18,764 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:19,067 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:19,068 - 124704 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:20,908 - 124704 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-10 15:16:20,908 - 124704 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-10 15:16:20,909 - 124704 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 36 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:21,247 - 124704 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 36) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-10 15:16:23,695 - 124704 - src.utils.log - INFO - βœ… All 36 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-10 15:16:23,696 - 124704 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 36 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.992' and ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:24,023 - 124704 - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-10 15:16:24,024 - 124704 - src.utils.log - INFO - Id's of work order inserted to DB: [3681236 3681237 3681238 3681239 3681240 3681241 3681242 3681243 3681244 3681245 3681246 3681247 3681248 3681249 3681250 3681251 3681252 3681253 3681254 3681255 3681256 3681257 3681258 3681259 3681260 3681261 3681262 3681263 3681264 3681265 3681266 3681267 3681268 3681269 3681270 3681271] - __SPLIT__ 2026-07-10 15:16:24,024 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:24,307 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:24,307 - 124704 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-10 15:16:24,308 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:24,592 - 124704 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-10 15:16:24,592 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:24,875 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:24,880 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:25,170 - 124704 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-10 15:16:25,172 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:25,456 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:25,456 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:25,739 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:25,740 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:26,023 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:26,024 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:26,307 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:26,308 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:26,852 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:26,852 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:27,136 - 124704 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-10 15:16:27,145 - 124704 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,146 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-10 15:16:27,147 - 124704 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-10 15:16:27,147 - 124704 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-10 15:16:27,147 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681236, 3681237, 3681238, 3681239, 3681240, 3681241, 3681242, 3681243, 3681244, 3681245, 3681246, 3681247, 3681248, 3681249, 3681250, 3681251, 3681252, 3681253, 3681254, 3681255, 3681256, 3681257, 3681258, 3681259, 3681260, 3681261, 3681262, 3681263, 3681264, 3681265, 3681266, 3681267, 3681268, 3681269, 3681270, 3681271) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:27,431 - 124704 - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-10 15:16:27,432 - 124704 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 36 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:27,737 - 124704 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 36) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-10 15:16:28,751 - 124704 - src.utils.log - INFO - βœ… All 36 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-10 15:16:28,751 - 124704 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-10 15:16:28,752 - 124704 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-10 15:16:28,752 - 124704 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-10 15:16:28,752 - 124704 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-10 15:16:28,752 - 124704 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681236, 3681237, 3681238, 3681239, 3681240, 3681241, 3681242, 3681243, 3681244, 3681245, 3681246, 3681247, 3681248, 3681249, 3681250, 3681251, 3681252, 3681253, 3681254, 3681255, 3681256, 3681257, 3681258, 3681259, 3681260, 3681261, 3681262, 3681263, 3681264, 3681265, 3681266, 3681267, 3681268, 3681269, 3681270, 3681271) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:29,034 - 124704 - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-10 15:16:29,035 - 124704 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 36 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:29,343 - 124704 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 36) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-10 15:16:30,376 - 124704 - src.utils.log - INFO - βœ… All 36 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-10 15:16:30,376 - 124704 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-10 15:16:30,376 - 124704 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124704;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-10 15:16:30,660 - 124704 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-10 15:16:30,660 - 124704 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-10 15:16:30,660 - 124704 - src.utils.log - INFO - Time took to perform operation: 22.18 - __SPLIT__ 2026-07-14 13:41:48,055 - 124714 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124714 - __SPLIT__ 2026-07-14 13:41:48,260 - 124714 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124714 - __SPLIT__ 2026-07-14 13:41:48,339 - 124714 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 13:41:48,401 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:51,022 - 124714 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:41:51,085 - 124714 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 13:41:51,140 - 124714 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 13:41:51,208 - 124714 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 13:41:51,266 - 124714 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124714;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:53,769 - 124714 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:41:53,830 - 124714 - 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 = 124714), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124714), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124714 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:54,207 - 124714 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:41:54,260 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124714;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:54,586 - 124714 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:41:54,645 - 124714 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 13:41:54,698 - 124714 - 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 = 14615... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:55,037 - 124714 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 13:41:55,092 - 124714 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 13:41:55,150 - 124714 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 13:41:55,206 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150650;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:55,592 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:41:55,659 - 124714 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-14 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150650 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:55,998 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:41:56,635 - 124714 - src.utils.log - INFO - Generating work orders for setup: 150650 - __SPLIT__ 2026-07-14 13:41:56,812 - 124714 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-14 13:41:56,879 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:57,212 - 124714 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:41:57,280 - 124714 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 13:41:57,344 - 124714 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 13:41:57,410 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:57,822 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:41:57,885 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:58,282 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:41:58,352 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:58,698 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:41:58,765 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:59,171 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:41:59,228 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:41:59,617 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:41:59,684 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:00,081 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:42:00,157 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:00,499 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:42:00,560 - 124714 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150650 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:01,596 - 124714 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:42:01,689 - 124714 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:42:01,756 - 124714 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:02,128 - 124714 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-14 13:42:03,667 - 124714 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-14 13:42:03,729 - 124714 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 14 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:59.058' and ServiceSetupId = 150650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:04,111 - 124714 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-07-14 13:42:04,173 - 124714 - src.utils.log - INFO - Id's of work order inserted to DB: [3681352 3681353 3681354 3681355 3681356 3681357 3681358 3681359 3681360 3681361 3681362 3681363 3681364 3681365] - __SPLIT__ 2026-07-14 13:42:04,235 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150650;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:04,567 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:04,655 - 124714 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-14 13:42:04,718 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:05,050 - 124714 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:42:05,109 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:05,446 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:05,509 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:05,891 - 124714 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-14 13:42:05,963 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:06,301 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:06,369 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150650... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:06,708 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:06,775 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150650;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:07,112 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:07,184 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150650;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:07,525 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:07,594 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150650;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:08,025 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:08,086 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150650;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:08,425 - 124714 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:42:08,489 - 124714 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-14 13:42:08,562 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-14 13:42:08,630 - 124714 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-14 13:42:08,698 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-14 13:42:08,770 - 124714 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-14 13:42:08,842 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-14 13:42:08,913 - 124714 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-14 13:42:09,021 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-14 13:42:09,082 - 124714 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-14 13:42:09,154 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-14 13:42:09,225 - 124714 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:42:09,296 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-14 13:42:09,368 - 124714 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:42:09,433 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-14 13:42:09,499 - 124714 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-14 13:42:09,571 - 124714 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:42:09,639 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681352, 3681353, 3681354, 3681355, 3681356, 3681357, 3681358, 3681359, 3681360, 3681361, 3681362, 3681363, 3681364, 3681365) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:09,981 - 124714 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-07-14 13:42:10,051 - 124714 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:10,395 - 124714 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-14 13:42:11,428 - 124714 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-14 13:42:11,496 - 124714 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-14 13:42:11,568 - 124714 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-14 13:42:11,628 - 124714 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:42:11,694 - 124714 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:42:11,768 - 124714 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681352, 3681353, 3681354, 3681355, 3681356, 3681357, 3681358, 3681359, 3681360, 3681361, 3681362, 3681363, 3681364, 3681365) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:12,107 - 124714 - src.utils.log - INFO - βœ… Fetched 14 rows - __SPLIT__ 2026-07-14 13:42:12,224 - 124714 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 14 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:12,562 - 124714 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 14) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-14 13:42:13,730 - 124714 - src.utils.log - INFO - βœ… All 14 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-14 13:42:13,800 - 124714 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:42:13,874 - 124714 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124714;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:42:14,209 - 124714 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:42:14,280 - 124714 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-14 13:42:14,352 - 124714 - src.utils.log - INFO - Time took to perform operation: 25.95 - __SPLIT__ 2026-07-14 13:48:21,560 - 124718 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124718 - __SPLIT__ 2026-07-14 13:48:21,788 - 124718 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124718 - __SPLIT__ 2026-07-14 13:48:21,857 - 124718 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 13:48:21,930 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:24,109 - 124718 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:48:24,184 - 124718 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 13:48:24,259 - 124718 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 13:48:24,331 - 124718 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 13:48:24,394 - 124718 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124718;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:26,332 - 124718 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:48:26,397 - 124718 - 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 = 124718), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124718), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124718 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:26,778 - 124718 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:48:26,842 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124718;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:27,181 - 124718 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:48:27,250 - 124718 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 13:48:27,326 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14626... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:27,678 - 124718 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 13:48:27,747 - 124718 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 13:48:27,849 - 124718 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 13:48:27,914 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:28,306 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:28,379 - 124718 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-06 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150646 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:28,731 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:29,377 - 124718 - src.utils.log - INFO - Generating work orders for setup: 150646 - __SPLIT__ 2026-07-14 13:48:29,730 - 124718 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-14 13:48:29,812 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:30,157 - 124718 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:48:30,234 - 124718 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 13:48:30,303 - 124718 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 13:48:30,372 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:30,790 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:30,862 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:31,263 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:31,330 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:31,677 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:31,750 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:32,153 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:32,239 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:32,631 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:32,701 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:33,105 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:33,179 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:33,526 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:33,600 - 124718 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150646 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:35,589 - 124718 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 13:48:35,664 - 124718 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:48:35,728 - 124718 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 36 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:36,098 - 124718 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 36) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-14 13:48:38,347 - 124718 - src.utils.log - INFO - βœ… All 36 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-14 13:48:38,417 - 124718 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 36 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:58.992' and ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:38,795 - 124718 - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-14 13:48:38,863 - 124718 - src.utils.log - INFO - Id's of work order inserted to DB: [3681462 3681463 3681464 3681465 3681466 3681467 3681468 3681469 3681470 3681471 3681472 3681473 3681474 3681475 3681476 3681477 3681478 3681479 3681480 3681481 3681482 3681483 3681484 3681485 3681486 3681487 3681488 3681489 3681490 3681491 3681492 3681493 3681494 3681495 3681496 3681497] - __SPLIT__ 2026-07-14 13:48:38,926 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:39,262 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:39,330 - 124718 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-14 13:48:39,392 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:39,733 - 124718 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 13:48:39,806 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:40,142 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:40,217 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:40,606 - 124718 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-14 13:48:40,671 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:41,006 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:41,075 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 150646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:41,413 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:41,474 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:41,817 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:41,889 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:42,236 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:42,303 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:42,732 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:42,806 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 150646;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:43,151 - 124718 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 13:48:43,232 - 124718 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-14 13:48:43,302 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-14 13:48:43,374 - 124718 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-14 13:48:43,433 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-14 13:48:43,498 - 124718 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-14 13:48:43,566 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SetupAutoGenerationSourceMapping: - __SPLIT__ 2026-07-14 13:48:43,640 - 124718 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-14 13:48:43,760 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-14 13:48:43,826 - 124718 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-14 13:48:43,891 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.SubWorkOrderAutoGeneration: - __SPLIT__ 2026-07-14 13:48:43,965 - 124718 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:48:44,031 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-14 13:48:44,097 - 124718 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-14 13:48:44,166 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-14 13:48:44,235 - 124718 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-14 13:48:44,304 - 124718 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:48:44,378 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681462, 3681463, 3681464, 3681465, 3681466, 3681467, 3681468, 3681469, 3681470, 3681471, 3681472, 3681473, 3681474, 3681475, 3681476, 3681477, 3681478, 3681479, 3681480, 3681481, 3681482, 3681483, 3681484, 3681485, 3681486, 3681487, 3681488, 3681489, 3681490, 3681491, 3681492, 3681493, 3681494, 3681495, 3681496, 3681497) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:44,725 - 124718 - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-14 13:48:44,791 - 124718 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 36 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:45,136 - 124718 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 36) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-07-14 13:48:46,305 - 124718 - src.utils.log - INFO - βœ… All 36 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-07-14 13:48:46,373 - 124718 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-14 13:48:46,437 - 124718 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-14 13:48:46,510 - 124718 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:48:46,581 - 124718 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-14 13:48:46,653 - 124718 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (3681462, 3681463, 3681464, 3681465, 3681466, 3681467, 3681468, 3681469, 3681470, 3681471, 3681472, 3681473, 3681474, 3681475, 3681476, 3681477, 3681478, 3681479, 3681480, 3681481, 3681482, 3681483, 3681484, 3681485, 3681486, 3681487, 3681488, 3681489, 3681490, 3681491, 3681492, 3681493, 3681494, 3681495, 3681496, 3681497) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:46,987 - 124718 - src.utils.log - INFO - βœ… Fetched 36 rows - __SPLIT__ 2026-07-14 13:48:47,132 - 124718 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 36 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:47,477 - 124718 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 36) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-14 13:48:48,665 - 124718 - src.utils.log - INFO - βœ… All 36 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-14 13:48:48,740 - 124718 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-14 13:48:48,815 - 124718 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 124718;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 13:48:49,157 - 124718 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 13:48:49,228 - 124718 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-14 13:48:49,324 - 124718 - src.utils.log - INFO - Time took to perform operation: 27.37 - __SPLIT__ 2026-07-14 14:23:46,127 - 124722 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124722 - __SPLIT__ 2026-07-14 14:23:46,336 - 124722 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124722 - __SPLIT__ 2026-07-14 14:23:46,414 - 124722 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 14:23:46,469 - 124722 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:49,095 - 124722 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:23:49,159 - 124722 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 14:23:49,220 - 124722 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 14:23:49,280 - 124722 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 14:23:49,337 - 124722 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124722;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:51,951 - 124722 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 14:23:52,007 - 124722 - 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 = 124722), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124722), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124722 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:52,396 - 124722 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:23:52,455 - 124722 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124722;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:52,802 - 124722 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:23:52,862 - 124722 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 14:23:52,916 - 124722 - 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 = 13965... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:53,269 - 124722 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 14:23:53,332 - 124722 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 14:23:53,394 - 124722 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 14:23:53,455 - 124722 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150653;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:53,845 - 124722 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:23:53,909 - 124722 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-14 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 150653 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:54,257 - 124722 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:23:54,327 - 124722 - src.utils.log - INFO - Unable to get work order table Error: list index out of range - __SPLIT__ 2026-07-14 14:23:54,394 - 124722 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 14:23:54,457 - 124722 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 14:23:54,522 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:54,941 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:55,009 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:55,410 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:55,469 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:55,831 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:55,898 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:56,309 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:56,393 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:56,792 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:56,860 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:57,221 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:57,285 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:57,642 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:57,753 - 124722 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:58,346 - 124722 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:23:58,412 - 124722 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-14 14:23:58,491 - 124722 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-14 10:23:58.491' WHERE GenerateWorkOrderHistoryId = 124722;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:23:58,835 - 124722 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 14:23:58,901 - 124722 - src.utils.log - INFO - Time took to perform operation: 12.5 - __SPLIT__ 2026-07-14 14:32:03,860 - 124723 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124723 - __SPLIT__ 2026-07-14 14:32:03,981 - 124723 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124723 - __SPLIT__ 2026-07-14 14:32:04,046 - 124723 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-14 14:32:04,116 - 124723 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:06,292 - 124723 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:32:06,359 - 124723 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-14 14:32:06,421 - 124723 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-14 14:32:06,495 - 124723 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-14 14:32:06,563 - 124723 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:08,498 - 124723 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 14:32:08,569 - 124723 - 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 = 124723), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124723), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124723 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:08,944 - 124723 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:32:09,015 - 124723 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:09,352 - 124723 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-14 14:32:09,422 - 124723 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-14 14:32:09,494 - 124723 - 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 = 13965... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:09,831 - 124723 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-14 14:32:09,901 - 124723 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-14 14:32:09,966 - 124723 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-14 14:32:10,034 - 124723 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150653;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:10,379 - 124723 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:32:10,488 - 124723 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-14 00:00:00' and ServiceDate <= '2029-12-31 00:00:00' and ServiceSetupId = 150653 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:10,820 - 124723 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-14 14:32:10,884 - 124723 - src.utils.log - INFO - Unable to get work order table Error: list index out of range - __SPLIT__ 2026-07-14 14:32:10,942 - 124723 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-14 14:32:10,998 - 124723 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-14 14:32:11,064 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:11,438 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:11,500 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:11,873 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:11,933 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:12,261 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:12,328 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:12,704 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:12,773 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:13,152 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:13,213 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:13,550 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:13,617 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:13,951 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:14,011 - 124723 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150653 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:14,511 - 124723 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-14 14:32:14,578 - 124723 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-14 14:32:14,645 - 124723 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-14 10:32:14.645' WHERE GenerateWorkOrderHistoryId = 124723;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-14 14:32:14,982 - 124723 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-14 14:32:15,056 - 124723 - src.utils.log - INFO - Time took to perform operation: 11.01 - __SPLIT__ 2026-07-15 10:35:08,814 - [124726] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681560] user_id=43135 company_id=133 project_id=[124726] publish_all=False - __SPLIT__ 2026-07-15 10:35:08,935 - [124726] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681560] user_id=43135 company_id=133 project_id=[124726] publish_all=False - __SPLIT__ 2026-07-15 10:35:09,006 - [124726] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124726] - __SPLIT__ 2026-07-15 10:35:09,074 - [124726] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-15 10:35:09,134 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:11,270 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:11,331 - [124726] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-15 10:35:11,389 - [124726] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-15 10:35:11,455 - [124726] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-15 10:35:11,538 - [124726] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124726;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:13,458 - [124726] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:35:13,525 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:13,856 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:13,919 - [124726] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-15 10:35:13,983 - [124726] - 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 = 150656 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:14,316 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:14,380 - [124726] - 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 = 150656 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:14,715 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:14,775 - [124726] - 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 = 150656 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:15,118 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:15,190 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:15,578 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:15,650 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:15,988 - [124726] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:35:16,063 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:16,402 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:16,476 - [124726] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:16,813 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:16,879 - [124726] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:17,221 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:17,299 - [124726] - 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 = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:17,636 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:17,714 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:18,043 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:18,110 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15000' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:18,444 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:18,511 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427305' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:18,848 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:18,912 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:19,437 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-15 10:35:20,469 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-15 10:35:20,719 - [124726] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-15 10:35:20,786 - [124726] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:21,116 - [124726] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:35:21,174 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427305' AND wo.AccountNumber = '15000' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-15 10:35:21,519 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:21,591 - [124726] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-15 10:35:21,663 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:22,028 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:22,095 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:22,434 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:22,502 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:22,882 - [124726] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:35:22,959 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:23,284 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:23,357 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:23,692 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:23,759 - [124726] - 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 = 3681560... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:24,115 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:24,188 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3681560 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:24,528 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:24,636 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3681560;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:24,971 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:25,042 - [124726] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-15 10:35:25,116 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:25,454 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:25,518 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:25,854 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:25,920 - [124726] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:35:25,991 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:26,365 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-15 10:35:27,385 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-15 10:35:27,448 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150656 AND WorkOrderNo = '954759' AND GenerateWorkOrderHistoryId = 124726; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:27,916 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:27,990 - [124726] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-15 10:35:28,051 - [124726] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:35:28,120 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:28,481 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-15 10:35:29,486 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-15 10:35:29,556 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-15 10:35:29,625 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-15 10:35:29,739 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-15 10:35:29,806 - [124726] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:35:29,870 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:30,230 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-15 10:35:31,243 - [124726] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-15 10:35:31,315 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-15 10:35:31,373 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-15 10:35:31,435 - [124726] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:35:31,494 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:31,854 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-15 10:35:32,851 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-15 10:35:32,914 - [124726] - 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 = 150656... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:33,247 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:33,329 - [124726] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-15 10:35:33,391 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:33,879 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-15 10:35:34,882 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-15 10:35:35,085 - [124726] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-15 10:35:35,145 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-15 06:35:33.324';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:40,500 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:40,626 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:40,957 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:41,038 - [124726] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-15 06:35:33.324'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-15 10:35:41,937 - [124726] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:35:42,014 - [124726] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:35:42,085 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:42,447 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-15 10:35:43,452 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-15 10:35:43,521 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427305'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:44,424 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:44,501 - [124726] - 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 = 150656 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:44,836 - [124726] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-15 10:35:44,907 - [124726] - 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 = 150656 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:45,258 - [124726] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:35:45,330 - [124726] - 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 = 150656 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:45,671 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:45,743 - [124726] - 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 = 150656 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:46,077 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:46,162 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:46,499 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:46,631 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:46,973 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:47,044 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150656;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:47,381 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:47,449 - [124726] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-15 10:35:47,522 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-15 10:35:47,598 - [124726] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 10:35:47,670 - [124726] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:48,033 - [124726] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-15 10:35:49,036 - [124726] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-15 10:35:49,110 - [124726] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-15 10:35:49,182 - [124726] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-15 10:35:49,254 - [124726] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-15 10:35:49,320 - [124726] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124726 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:49,652 - [124726] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:35:49,733 - [124726] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-15 10:35:49,944 - [124726] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_8ed6cb0cbf - __SPLIT__ 2026-07-15 10:35:50,277 - [124726] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_8ed6cb0cbf - __SPLIT__ 2026-07-15 10:35:50,609 - [124726] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-15 10:35:50,816 - [124726] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-15 10:35:51,070 - [124726] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_8ed6cb0cbf - __SPLIT__ 2026-07-15 10:35:51,144 - [124726] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_8ed6cb0cbf - __SPLIT__ 2026-07-15 10:35:51,218 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124726 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:51,552 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:51,618 - [124726] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-15 10:35:51,693 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:52,155 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:52,227 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:52,646 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:52,714 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:53,051 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:53,131 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:53,542 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:53,614 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:53,951 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:54,024 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:54,360 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:54,433 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:54,766 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:54,832 - [124726] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681560 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:55,261 - [124726] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 10:35:55,332 - [124726] - src.utils.log - INFO - Work order published ids: (3681560,) - __SPLIT__ 2026-07-15 10:35:55,404 - [124726] - src.utils.log - INFO - Time took to perform operation in publishing [124726]: 46.33 - __SPLIT__ 2026-07-15 10:35:55,479 - [124726] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124726] - __SPLIT__ 2026-07-15 10:35:55,551 - [124726] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-15 06:35:55.332' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124726;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:35:55,890 - [124726] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:49:00,968 - 124730 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124730 - __SPLIT__ 2026-07-15 10:49:01,098 - 124730 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124730 - __SPLIT__ 2026-07-15 10:49:01,168 - 124730 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-15 10:49:01,239 - 124730 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:49:03,390 - 124730 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:49:03,471 - 124730 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-15 10:49:03,547 - 124730 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-15 10:49:03,612 - 124730 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-15 10:49:03,714 - 124730 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124730;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:49:05,621 - 124730 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:49:05,687 - 124730 - 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 = 124730), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124730), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124730 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:49:06,054 - 124730 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 10:49:06,125 - 124730 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124730;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:49:06,456 - 124730 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 10:49:06,524 - 124730 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No setups found in given range', WorkOrderStatusDateTime = '2026-07-15 06:49:06.524' WHERE GenerateWorkOrderHistoryId = 124730;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 10:49:06,858 - 124730 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 10:49:06,925 - 124730 - src.utils.log - INFO - No Setup Found Error:No setups found for GenerateWorkOrderHistoryid: 124730 - __SPLIT__ 2026-07-15 13:43:33,315 - 12651 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=12651 - __SPLIT__ 2026-07-15 13:43:33,439 - 12651 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 12651 - __SPLIT__ 2026-07-15 13:43:33,524 - 12651 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-15 13:43:33,589 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:35,629 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:35,694 - 12651 - src.utils.log - INFO - Connection string not found connecting to common DB - __SPLIT__ 2026-07-15 13:43:35,762 - 12651 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 12651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:36,112 - 12651 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:43:36,178 - 12651 - 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 = 12651), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 12651), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 12651 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:36,559 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:36,628 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 12651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:36,972 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:37,048 - 12651 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-15 13:43:37,116 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13039... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:37,500 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:37,564 - 12651 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-15 13:43:37,638 - 12651 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-15 13:43:37,707 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:38,056 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:38,118 - 12651 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-15 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 34382 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:38,470 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:39,175 - 12651 - src.utils.log - INFO - Generating work orders for setup: 34382 - __SPLIT__ 2026-07-15 13:43:39,270 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:39,617 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:39,702 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1434;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:40,050 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:40,156 - 12651 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-07-15 13:43:40,220 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:40,578 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:40,641 - 12651 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-15 13:43:40,705 - 12651 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-15 13:43:40,770 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:41,131 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:41,196 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:41,562 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:41,631 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:41,986 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:42,052 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:42,413 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:42,483 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:42,842 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:42,962 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:43,326 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:43,396 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:43,743 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:43,814 - 12651 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 34382 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:44,187 - 12651 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-15 13:43:44,263 - 12651 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:43:44,334 - 12651 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:44,734 - 12651 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-07-15 13:43:46,000 - 12651 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-15 13:43:46,062 - 12651 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 5 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-07-08 11:55:59.058' and ServiceSetupId = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:46,419 - 12651 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-15 13:43:46,489 - 12651 - src.utils.log - INFO - Id's of work order inserted to DB: [2737387 2737388 2737389 2737390 2737391] - __SPLIT__ 2026-07-15 13:43:46,561 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:46,917 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:46,990 - 12651 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-07-15 13:43:47,057 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:47,411 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:47,476 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:47,825 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:47,955 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:48,307 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:48,379 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:48,731 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:48,810 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 34382... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:49,158 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:49,232 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:49,583 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:49,653 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:50,006 - 12651 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-15 13:43:50,082 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:50,451 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:50,524 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 34382;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:50,878 - 12651 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-15 13:43:50,961 - 12651 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-07-15 13:43:51,032 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-15 13:43:51,103 - 12651 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-07-15 13:43:51,173 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.CommunicationPreferencesServiceReportNotification: - __SPLIT__ 2026-07-15 13:43:51,243 - 12651 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-07-15 13:43:51,311 - 12651 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:43:51,435 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ('2737391', '2737390', '2737389', '2737387', '2737388') ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:51,793 - 12651 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-15 13:43:51,870 - 12651 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:52,241 - 12651 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-07-15 13:43:52,314 - 12651 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-07-15 13:43:52,388 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationAppliedDiscount: - __SPLIT__ 2026-07-15 13:43:52,460 - 12651 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-07-15 13:43:52,532 - 12651 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:43:52,608 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737387, 2737388, 2737389, 2737390, 2737391) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:52,964 - 12651 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-15 13:43:53,040 - 12651 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:53,417 - 12651 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.SubWorkOrderAutoGeneration - __SPLIT__ 2026-07-15 13:43:54,633 - 12651 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-07-15 13:43:54,709 - 12651 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-15 13:43:54,779 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: - __SPLIT__ 2026-07-15 13:43:54,850 - 12651 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-07-15 13:43:54,922 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: - __SPLIT__ 2026-07-15 13:43:54,997 - 12651 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-07-15 13:43:55,067 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationCrews: - __SPLIT__ 2026-07-15 13:43:55,134 - 12651 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-07-15 13:43:55,249 - 12651 - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderAutoGenerationServices: - __SPLIT__ 2026-07-15 13:43:55,311 - 12651 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-15 13:43:55,371 - 12651 - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-15 13:43:55,441 - 12651 - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN (2737387, 2737388, 2737389, 2737390, 2737391) ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:55,788 - 12651 - src.utils.log - INFO - βœ… Fetched 5 rows - __SPLIT__ 2026-07-15 13:43:55,857 - 12651 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 5 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:56,229 - 12651 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 5) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-07-15 13:43:57,294 - 12651 - src.utils.log - INFO - βœ… All 5 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-07-15 13:43:57,358 - 12651 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-07-15 13:43:57,411 - 12651 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 12651;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-15 13:43:57,752 - 12651 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-15 13:43:57,816 - 12651 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-07-15 13:43:57,881 - 12651 - src.utils.log - INFO - Time took to perform operation: 24.29 - __SPLIT__ 2026-07-16 05:32:59,285 - 124739 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124739 - __SPLIT__ 2026-07-16 05:32:59,412 - 124739 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124739 - __SPLIT__ 2026-07-16 05:32:59,479 - 124739 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 05:32:59,545 - 124739 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:01,598 - 124739 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 05:33:01,675 - 124739 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 05:33:01,739 - 124739 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 05:33:01,811 - 124739 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 05:33:01,876 - 124739 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:03,839 - 124739 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 05:33:03,898 - 124739 - 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 = 124739), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124739), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124739 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:04,269 - 124739 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 05:33:04,334 - 124739 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:04,667 - 124739 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 05:33:04,729 - 124739 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 05:33:04,793 - 124739 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:05,125 - 124739 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 05:33:05,188 - 124739 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 05:33:05,254 - 124739 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 05:33:05,313 - 124739 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:05,638 - 124739 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 05:33:05,747 - 124739 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-16 00:00:00' and ServiceDate <= '2026-08-31 00:00:00' and ServiceSetupId = 150664 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:06,081 - 124739 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 05:33:06,151 - 124739 - src.utils.log - INFO - Unable to get work order table Error: list index out of range - __SPLIT__ 2026-07-16 05:33:06,208 - 124739 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 05:33:06,265 - 124739 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 05:33:06,323 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:06,805 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:06,861 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:07,277 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:07,335 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:07,682 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:07,737 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:08,413 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:08,474 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:08,851 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:08,957 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:09,367 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:09,436 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:09,764 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:09,826 - 124739 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:10,394 - 124739 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:33:10,456 - 124739 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-16 05:33:10,517 - 124739 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-16 01:33:10.517' WHERE GenerateWorkOrderHistoryId = 124739;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:33:10,843 - 124739 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 05:33:10,910 - 124739 - src.utils.log - INFO - Time took to perform operation: 11.43 - __SPLIT__ 2026-07-16 05:35:03,098 - 124740 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=124740 - __SPLIT__ 2026-07-16 05:35:03,215 - 124740 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 124740 - __SPLIT__ 2026-07-16 05:35:03,274 - 124740 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 05:35:03,335 - 124740 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:05,455 - 124740 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 05:35:05,520 - 124740 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 05:35:05,586 - 124740 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 05:35:05,654 - 124740 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 05:35:05,713 - 124740 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 124740;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:07,618 - 124740 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 05:35:07,682 - 124740 - 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 = 124740), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 124740), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 124740 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled' AND ((ss.OrderType = gw.OrderType) OR gw.OrderType IS NULL);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:08,047 - 124740 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 05:35:08,113 - 124740 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 124740;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:08,436 - 124740 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 05:35:08,505 - 124740 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-07-16 05:35:08,573 - 124740 - 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 = 14037... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:08,905 - 124740 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-07-16 05:35:08,963 - 124740 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-07-16 05:35:09,029 - 124740 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-07-16 05:35:09,098 - 124740 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:09,427 - 124740 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 05:35:09,547 - 124740 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId, IsInitial from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-07-16 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 150664 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:09,893 - 124740 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 05:35:09,981 - 124740 - src.utils.log - INFO - Unable to get work order table Error: list index out of range - __SPLIT__ 2026-07-16 05:35:10,056 - 124740 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-07-16 05:35:10,132 - 124740 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-07-16 05:35:10,209 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:10,584 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:10,697 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:11,082 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:11,155 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:11,496 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:11,563 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:11,940 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:12,014 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:12,387 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:12,461 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:12,802 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:12,873 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:13,211 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:13,282 - 124740 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 150664 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:13,791 - 124740 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 05:35:13,857 - 124740 - src.utils.log - INFO - No work order found in given range - __SPLIT__ 2026-07-16 05:35:13,932 - 124740 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Failed', WoGenErrorInfo ='No work orders generated with selected filters', WorkOrderStatusDateTime = '2026-07-16 01:35:13.932' WHERE GenerateWorkOrderHistoryId = 124740;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 05:35:14,272 - 124740 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 05:35:14,348 - 124740 - src.utils.log - INFO - Time took to perform operation: 11.07 - __SPLIT__ 2026-07-16 09:15:13,312 - [124740] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681578] user_id=43135 company_id=133 project_id=[124740] publish_all=False - __SPLIT__ 2026-07-16 09:15:13,446 - [124740] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3681578] user_id=43135 company_id=133 project_id=[124740] publish_all=False - __SPLIT__ 2026-07-16 09:15:13,518 - [124740] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [124740] - __SPLIT__ 2026-07-16 09:15:13,585 - [124740] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-07-16 09:15:13,658 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:15,729 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:15,798 - [124740] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-07-16 09:15:15,868 - [124740] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-07-16 09:15:15,937 - [124740] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-07-16 09:15:16,007 - [124740] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124740;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:17,907 - [124740] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 09:15:17,972 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:18,313 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:18,380 - [124740] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-07-16 09:15:18,450 - [124740] - 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 = 150664 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:18,781 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:18,852 - [124740] - 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 = 150664 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:19,192 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:19,264 - [124740] - 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 = 150664 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:19,608 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:19,677 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:20,060 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:20,129 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:20,463 - [124740] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-07-16 09:15:20,531 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder, BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:20,868 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:20,968 - [124740] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'WorkOrder'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:21,301 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:21,374 - [124740] - src.utils.log - INFO - πŸ” Fetching data: UPDATE Common.GenerateNumberConfig WITH (ROWLOCK) SET NextNumber = NextNumber + 1 OUTPUT deleted.NextNumber AS StartNumber WHERE CompanyId = 133 AND EnitityNumberType = 'Invoice'; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:21,713 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:21,796 - [124740] - 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 = 150664... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:22,136 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:22,205 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:22,540 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:22,614 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '15013' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:22,952 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:23,031 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderNo FROM ServiceCore.WorkOrder WHERE WorkOrderNo = '1427312' AND CompanyId = 133 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:23,369 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:23,442 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:23,962 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-07-16 09:15:25,102 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-07-16 09:15:25,347 - [124740] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-16 09:15:25,422 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1427312' AND wo.AccountNumber = '15013' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-07-16 09:15:25,749 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:25,809 - [124740] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-07-16 09:15:25,874 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:26,228 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:26,293 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:26,623 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:26,682 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:27,039 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:27,102 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:27,431 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:27,497 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:27,835 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:27,905 - [124740] - 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 = 3681578... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:28,255 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:28,335 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3681578 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:28,670 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:28,741 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3681578;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:29,075 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:29,195 - [124740] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-07-16 09:15:29,271 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:29,598 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:29,669 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:29,992 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:30,068 - [124740] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 09:15:30,136 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:30,501 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-07-16 09:15:31,490 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-07-16 09:15:31,552 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 150664 AND WorkOrderNo = '1840647' AND GenerateWorkOrderHistoryId = 124740; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:32,017 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:32,091 - [124740] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-07-16 09:15:32,321 - [124740] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 09:15:32,398 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:32,756 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-07-16 09:15:33,845 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-07-16 09:15:33,911 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderAppliedDiscount: - __SPLIT__ 2026-07-16 09:15:33,970 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkOrderSalesPersonCommission: - __SPLIT__ 2026-07-16 09:15:34,029 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceAuto.WorkOrderCommissionAdjustment: - __SPLIT__ 2026-07-16 09:15:34,096 - [124740] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 09:15:34,208 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:34,563 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-07-16 09:15:35,581 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-07-16 09:15:35,653 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of ServiceCore.WorkorderSourceMapping: - __SPLIT__ 2026-07-16 09:15:35,720 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of CRM.LeadNote: - __SPLIT__ 2026-07-16 09:15:35,788 - [124740] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 09:15:35,857 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:36,218 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-07-16 09:15:37,217 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-07-16 09:15:37,293 - [124740] - 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 = 150664... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:37,626 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:37,698 - [124740] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-07-16 09:15:37,764 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:38,249 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-07-16 09:15:39,307 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-07-16 09:15:39,512 - [124740] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-07-16 09:15:39,581 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-07-16 05:15:37.694';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:44,924 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:45,001 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:45,339 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:45,468 - [124740] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-07-16 05:15:37.694'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-07-16 09:15:46,362 - [124740] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-07-16 09:15:46,439 - [124740] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 09:15:46,508 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:46,864 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-07-16 09:15:47,914 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-07-16 09:15:47,983 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1427312'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:48,960 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:49,039 - [124740] - 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 = 150664 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:49,370 - [124740] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-07-16 09:15:49,441 - [124740] - 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 = 150664 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:49,783 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:49,854 - [124740] - 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 = 150664 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:50,184 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:50,255 - [124740] - 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 = 150664 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:50,593 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:50,673 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:51,005 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:51,079 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:51,411 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:51,533 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 150664;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:51,868 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:51,939 - [124740] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-07-16 09:15:52,010 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.AccountDiscountSetup: - __SPLIT__ 2026-07-16 09:15:52,080 - [124740] - src.utils.log - INFO - Checking if all rows exist in parent table or not - __SPLIT__ 2026-07-16 09:15:52,153 - [124740] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:52,518 - [124740] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-07-16 09:15:53,524 - [124740] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-07-16 09:15:53,590 - [124740] - src.utils.log - INFO - πŸ“₯ Empty dataframe of Billing.DiscountApplied: - __SPLIT__ 2026-07-16 09:15:53,665 - [124740] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-07-16 09:15:53,732 - [124740] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-07-16 09:15:53,805 - [124740] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124740 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:54,136 - [124740] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-07-16 09:15:54,214 - [124740] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-07-16 09:15:54,413 - [124740] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_4c1ca2bc1c - __SPLIT__ 2026-07-16 09:15:54,755 - [124740] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_4c1ca2bc1c - __SPLIT__ 2026-07-16 09:15:55,084 - [124740] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-07-16 09:15:55,288 - [124740] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-07-16 09:15:55,493 - [124740] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_4c1ca2bc1c - __SPLIT__ 2026-07-16 09:15:55,565 - [124740] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_4c1ca2bc1c - __SPLIT__ 2026-07-16 09:15:55,679 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 124740 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:56,068 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:56,139 - [124740] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-07-16 09:15:56,209 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:56,670 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:56,745 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:57,162 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:57,237 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:57,570 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:57,643 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:58,054 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:58,123 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:58,463 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:58,532 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:58,864 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:58,949 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:59,284 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:59,352 - [124740] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3681578 (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:15:59,734 - [124740] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-07-16 09:15:59,803 - [124740] - src.utils.log - INFO - Work order published ids: (3681578,) - __SPLIT__ 2026-07-16 09:15:59,912 - [124740] - src.utils.log - INFO - Time took to perform operation in publishing [124740]: 46.33 - __SPLIT__ 2026-07-16 09:15:59,978 - [124740] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [124740] - __SPLIT__ 2026-07-16 09:16:00,048 - [124740] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-07-16 05:15:59.803' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 124740;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-07-16 09:16:00,387 - [124740] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__