********************************************************** Time Of Error : 02-11-2023 10:01:51 Error Message : Fatal error encountered during command execution. Error Exeption : MySql.Data.MySqlClient.MySqlException: Fatal error encountered attempting to read the resultset. ---> MySql.Data.MySqlClient.MySqlException: Deadlock found when trying to get lock; try restarting transaction at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) Error Place : at LedgerTnxDetail.Insert() in d:\live_code\Naokon\App_Code\DataLinkLayer\LedgerTnxDetail.cs:line 746 at LabOPD.LabPrescriptionOPD(String collectiondate, String barcodeNo, String myAppNumber, String myAppDate, String PatientID, String Title, String PName, String Gender, String House_No, String City, String cityid, String Phone, String Mobile, String Age, String DOB_ShowFormat, String DOB_DBFormat, String Relation, String RelationName, Int32 isActual, String Doctor_ID, String Panel_ID, String ReferedBy, String Source, Double TotalDiscAmt, Double TotalDiscPer, Double GrossAmount, Double NetAmount, String DiscReason, String Remarks, String ApprovedBy, String UniqueHash, String UserID, String ItemData, String PaymentData, Int32 rdDOB, String Sample, String PatientType, String ReportReceivingType, String SampleBySelf, String OtherDr, String CardNo, String Comments, String EmailID, String PDispatchData, String HomeVisitBoy, String Locality, String stateid, String State, String centreID, String proid, String DiscountOn, String frRate, String referlab, String attcahedfile, String mobileappno, String policyno, String mrpbooking, String pagetype, String mytokenno, String IdentityCardType, String IdentityCardNo, String Height, String Weight, String AutoMailToPatient, String uhid_hosp, String ipdno_hosp, String wardno, String bedno, String ageyear, String agemonth, String ageday, String doctorType, String dispatchMode, String collectionType, String collectionBoyId, String collectionBobyName, String deliveryBoyId, String deliveryBoyName, String assistantId, String referralTypeId, String marketingAgentId, String disctype1, String ToutNo, String RandomNo, String AuthCode, String Pensionertype, String WBSHID, String ReferDate, String Employeeno, String DispCode, String DispDept, String EmployeeStatus, String officeaddress, String Employeerelation, String IPDtype, String RefbyHospital, String LMP, String BloodGroup, String collectioncharge, String DeliveryCharge, String pansionername, String AllowOutSideContainer, String OtherReferalDoctor, String OutSideSample, Int32 IsHomeDelivery, Int32 IsIntimateToDoctor, Int32 IsIntimateToPatient, Int32 IsIntimateToNhPanel, Int32 IsDocumentPending, String patientoccupatient) in d:\live_code\Naokon\App_Code\BuisnessLogic\LabOPD.cs:line 1851 Error On Machine : NAOKON-LIS Error Machine IP Address : 10.0.0.100 ********************************************************** Time Of Error : 02-11-2023 12:44:32 Error Message : Fatal error encountered during command execution. Error Exeption : MySql.Data.MySqlClient.MySqlException: Fatal error encountered attempting to read the resultset. ---> MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' inner join investigation_master im on pli.Investigation_ID = im.Investigation' at line 1 at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) Error Place : at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at MySqlHelper.ExecuteDataset(MySqlConnection connection, CommandType commandType, String commandText, MySqlParameter[] commandParameters) in d:\live_code\Naokon\App_Code\DataLinkLayer\ODBCHelper.cs:line 488 at MySqlHelper.ExecuteDataset(MySqlConnection connection, CommandType commandType, String commandText) in d:\live_code\Naokon\App_Code\DataLinkLayer\ODBCHelper.cs:line 460 at StockReports.GetDataTable(String strQuery) in d:\live_code\Naokon\App_Code\BuisnessLogic\Finance\StockReports.cs:line 566 at PatientLabSearch.Search(String LabNo, String UHID_hosp, String IPDNo_hosp, String RegNo, String PName, String CentreID, String dtFrom, String dtTo, String Dept, String Status, String PhoneNo, String Mobile, String refrdby, String Ptype, String TimeFrm, String TimeTo, String FromLabNo, String ToLabNo, String PanelID, String CardNoFrom, String CardNoTo, String InvestigationID, String isUrgent, String slidenumber, String BarCodeNo, String SearchByDate, String OutLab, String OutCentre, String CPTCode, String ColourCode, String CardNo, String _CheckCount, String PrintFlag, String _action, String TestCentre, String DispatchNo, Int32 IsIntimateToDoctor, Int32 IsIntimateToPatient, Int32 IsIntimateToNhPanel, Int32 IsDocumentPending, String CovidStatus) in d:\live_code\Naokon\Design\Lab\Services\PatientLabSearch.asmx:line 1175 Error On Machine : NAOKON-LIS Error Machine IP Address : 10.0.0.100 ********************************************************** Time Of Error : 02-11-2023 12:44:33 Error Message : Fatal error encountered during command execution. Error Exeption : MySql.Data.MySqlClient.MySqlException: Fatal error encountered attempting to read the resultset. ---> MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' inner join investigation_master im on pli.Investigation_ID = im.Investigation' at line 1 at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) Error Place : at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at MySqlHelper.ExecuteDataset(MySqlConnection connection, CommandType commandType, String commandText, MySqlParameter[] commandParameters) in d:\live_code\Naokon\App_Code\DataLinkLayer\ODBCHelper.cs:line 488 at MySqlHelper.ExecuteDataset(MySqlConnection connection, CommandType commandType, String commandText) in d:\live_code\Naokon\App_Code\DataLinkLayer\ODBCHelper.cs:line 460 at StockReports.GetDataTable(String strQuery) in d:\live_code\Naokon\App_Code\BuisnessLogic\Finance\StockReports.cs:line 566 at PatientLabSearch.Search(String LabNo, String UHID_hosp, String IPDNo_hosp, String RegNo, String PName, String CentreID, String dtFrom, String dtTo, String Dept, String Status, String PhoneNo, String Mobile, String refrdby, String Ptype, String TimeFrm, String TimeTo, String FromLabNo, String ToLabNo, String PanelID, String CardNoFrom, String CardNoTo, String InvestigationID, String isUrgent, String slidenumber, String BarCodeNo, String SearchByDate, String OutLab, String OutCentre, String CPTCode, String ColourCode, String CardNo, String _CheckCount, String PrintFlag, String _action, String TestCentre, String DispatchNo, Int32 IsIntimateToDoctor, Int32 IsIntimateToPatient, Int32 IsIntimateToNhPanel, Int32 IsDocumentPending, String CovidStatus) in d:\live_code\Naokon\Design\Lab\Services\PatientLabSearch.asmx:line 1175 Error On Machine : NAOKON-LIS Error Machine IP Address : 10.0.0.100