2/20/2022 6:00:02 AM Post Favourite ### After Select Query 2/20/2022 6:00:02 AM ProcessData ### Inside Pre Processed Report 2/20/2022 6:00:02 AM processDataUsingPostTableXML strScript for BAYER QA Distributor File Upload Status 2022Feb20113002583 ### SELECT distinct cast(cast(t.distributorid as int) as varchar) + replace(convert(varchar(8), getdate(), 112)+convert(varchar(8), getdate(), 114), ':','') as ID,cast(getdate() as varchar(50)) as ScheduledDateTime,Distributor,t.LastImportDate,LastInvoiceDate FROM filewisehashcode t INNER JOIN (SELECT distributorid,MAX(LastImportDate) LastImportDate FROM filewisehashcode where filetype='IN' GROUP BY distributorid) MaxDate ON t.distributorid = MaxDate.distributorid AND t.LastImportDate = MaxDate.LastImportDate Inner join pdistributor pd on t.DistributorId=pd.DistributorId inner join usermaster um on pd.UserId=um.id where pd.IsActive =1 and t.MinDate IS NOT NULL and datediff(day,( CAST ( MaxDate.LastImportDate as Date)) ,( cast(GETDATE() as DATE) )) >10 2/20/2022 6:00:02 AM Post Favourite ### After Fill DataSet 2/20/2022 6:00:02 AM Excel Favourite Report ### Html Case 2/20/2022 6:00:03 AM Excel Favourite Report ### Before Checking File Exist For Path D:\BAYER\Zylem\ZylemImportFolders\REPORTS\000000000000001_BAYER QA Distributor File Upload Status 20Feb2022060002.html 2/20/2022 6:00:03 AM Excel Favourite Report ### After Checking File Exist Or Create New File 2/20/2022 6:00:03 AM Excel Favourite Report ### After Writing to File 2/20/2022 6:00:03 AM processDataUsingPostTableXML,impXML.updateXmlNodeFavouriteReport start ### 2/20/2022 6:00:03 AM processDataUsingPostTableXML,impXML.updateXmlNodeFavouriteReport end True ### 2/20/2022 6:00:03 AM ProcessData ### Inside Pre Processed Report 2/20/2022 6:00:03 AM processDataUsingPostTableXML strScript for GenerateUnlinkedCustomerLinking ES 2022Feb20113002643 ### EXEC [pr_CR_Bayer_GenerateUnlinkedCustomerLinking_M3] 'ES' 2/20/2022 6:04:25 AM processDataUsingPostTableXML,Error while executing procedure :EXEC [pr_CR_Bayer_GenerateUnlinkedCustomerLinking_M3] 'ES', Error: ### Cannot drop the table '##CustomerUnlkDetails', because it does not exist or you do not have permission. Cannot drop the table '##CustomerUnlkDetails_Division', because it does not exist or you do not have permission. INSERT INTO ##CustomerUnlkDetails SELECT CL.ID AS DATAID , PD.DISTRIBUTORGROUP, PD.DistributorId AS DBID, PD.Distributor AS DISTRIBUTOR, CL.Code AS PARTY_ID, CL.Name AS PARTY_NAME, CL.ADDRESS AS PARTY_ADDRESS, T1.CITY, T1.STATE, T1.PINCODE, T1.PHONE_NO, T1.CONTACT_PERSON, T1.MOBILE_PHONE_NO, T1.PAN_NO, T1.LIC_NO, CL.LicenceNo AS GSTNO FROM PDistributor AS PD INNER JOIN CUSTOMERLINK AS CL ON PD.DistributorId = CL.DistributorId AND PD.UnkCustomerId = CL.TargetId LEFT OUTER JOIN TEMPLATE1 AS T1 ON CL.DistributorId = T1.DistributorID AND CL.Code = T1.PARTY_ID WHERE (PD.DISTRIBUTORGROUP IN ('ES','COMMON')) AND (CL.ID > 58178) 2/20/2022 6:04:25 AM ProcessData ### Inside Pre Processed Report 2/20/2022 6:04:25 AM processDataUsingPostTableXML strScript for ES_DistributorFileUploadStatus 2022Feb20113002700 ### exec [prDistributorFileUploadStatus] '000000000000001','Feb 20 2022 11:30AM','7','','','','000000000000289','' 2/20/2022 6:04:26 AM Post Favourite ### After Fill DataSet 2/20/2022 6:04:26 AM Excel Favourite Report ### Excel Case 2/20/2022 6:04:26 AM Excel Favourite Report ### Before Checking File Exist For Path D:\BAYER\Zylem\ZylemImportFolders\REPORTS\000000000000001_ES_DistributorFileUploadStatus 20Feb2022060426.xls 2/20/2022 6:04:26 AM Excel Favourite Report ### After Checking File Exist Or Create New File 2/20/2022 6:04:26 AM Excel Favourite Report ### After Writing to File 2/20/2022 6:04:26 AM processDataUsingPostTableXML,impXML.updateXmlNodeFavouriteReport start ### 2/20/2022 6:04:26 AM processDataUsingPostTableXML,impXML.updateXmlNodeFavouriteReport end True ### 2/20/2022 6:04:26 AM processDataUsingPostTableXML ### Finished 2/20/2022 6:04:26 AM processDataUsingPostTableXML ### End 2/20/2022 6:00:05 PM Post Favourite ### After Select Query 2/20/2022 6:00:05 PM ProcessData ### Inside Pre Processed Report 2/20/2022 6:00:05 PM processDataUsingPostTableXML strScript for GenerateUnlinkedCustomerLinking ES 2022Feb20233005783 ### EXEC [pr_CR_Bayer_GenerateUnlinkedCustomerLinking_M3] 'ES' 2/20/2022 6:04:25 PM processDataUsingPostTableXML,Error while executing procedure :EXEC [pr_CR_Bayer_GenerateUnlinkedCustomerLinking_M3] 'ES', Error: ### Cannot drop the table '##CustomerUnlkDetails', because it does not exist or you do not have permission. Cannot drop the table '##CustomerUnlkDetails_Division', because it does not exist or you do not have permission. INSERT INTO ##CustomerUnlkDetails SELECT CL.ID AS DATAID , PD.DISTRIBUTORGROUP, PD.DistributorId AS DBID, PD.Distributor AS DISTRIBUTOR, CL.Code AS PARTY_ID, CL.Name AS PARTY_NAME, CL.ADDRESS AS PARTY_ADDRESS, T1.CITY, T1.STATE, T1.PINCODE, T1.PHONE_NO, T1.CONTACT_PERSON, T1.MOBILE_PHONE_NO, T1.PAN_NO, T1.LIC_NO, CL.LicenceNo AS GSTNO FROM PDistributor AS PD INNER JOIN CUSTOMERLINK AS CL ON PD.DistributorId = CL.DistributorId AND PD.UnkCustomerId = CL.TargetId LEFT OUTER JOIN TEMPLATE1 AS T1 ON CL.DistributorId = T1.DistributorID AND CL.Code = T1.PARTY_ID WHERE (PD.DISTRIBUTORGROUP IN ('ES','COMMON')) AND (CL.ID > 58178) 2/20/2022 6:04:25 PM processDataUsingPostTableXML ### Finished 2/20/2022 6:04:25 PM processDataUsingPostTableXML ### End