Siandien man klaidu diena
Klaidos duomenys:
Klaidos tekstas:
Адресат вызова создал исключение.
Klaidos šaltinis(Ex.Source):
mscorlib
Klaidos metodas (Ex.TargetSite):
_InvokeMethodFast
Klaidos stekas:
в System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
в System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
в System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
в System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
в ApskaitaWUI.BOMapper.LoadObject[T](T ObjectInstance, String MethodName, Boolean AllowCancel, Object[] Params)
в ApskaitaWUI.F_LabourContractUpdate.F_LabourContractUpdate_Load(Object sender, EventArgs e)
----------------------------
Vidinės klaidos (internal exception) duomenys:
Klaidos tekstas:
DataPortal.Create failed (System.Exception: Klaida vykdant SELECT sakinį (statement): [SELECT w.Nuo, w.Tipas, (SELECT MAX(a.Z_data) FROM du_ziniarastis_d d LEFT JOIN du_ziniarastis a ON a.ID=d.Z_ID WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija))) AS MaxWage, (SELECT MAX(d.Nuo) FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) GROUP BY d.AK, d.DS_Serija, d.DS_NR, d.Nuo HAVING SUM(CASE WHEN d.Tipas='n' OR d.Tipas='d' THEN 1 ELSE 0 END)<1) AS MaxUpdate, (SELECT d.Nuo FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) AND d.Tipas='n' LIMIT 1) AS ContractTerminationDate FROM darbuotojai_d w WHERE w.DS_NR=?DN AND UPPER(TRIM(w.DS_Serija))=UPPER(TRIM(?DS)) AND w.Tipas='d';=d.Z_ID WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija))) AS MaxWage, (SELECT MAX(d.Nuo) FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) GROUP BY d.AK, d.DS_Serija, d.DS_NR, d.Nuo HAVING SUM(CASE WHEN d.Tipas='n' OR d.Tipas='d' THEN 1 ELSE 0 END)<1) AS MaxUpdate, (SELECT d.Nuo FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) AND d.Tipas='n' LIMIT 1) AS ContractTerminationDate FROM darbuotojai_d w WHERE w.DS_NR=?DN AND UPPER(TRIM(w.DS_Serija))=UPPER(TRIM(?DS)) AND w.Tipas='d';], Params: ?DS=; ?DN=1;
Klaidos turinys: 'Subquery returns more than 1 row'. ---> MySql.Data.MySqlClient.MySqlException: Subquery returns more than 1 row
в MySql.Data.MySqlClient.MySqlStream.OpenPacket()
в MySql.Data.MySqlClient.NativeDriver.FetchDataRow(Int32 statementId, Int32 pageSize, Int32 columns)
в MySql.Data.MySqlClient.MySqlDataReader.NextResult()
в MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
в MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
в System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
в AccDataAccessLayer.SqlServerSpecificMethods.MySqlCommandManager.FetchCommand(SQLCommand SelectCommand)
--- Конец трассировки внутреннего стека исключений ---
в AccDataAccessLayer.SqlServerSpecificMethods.MySqlCommandManager.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLUtilities.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLCommand.Fetch()
в ApskaitaObjects.Workers.ContractChronologicValidator.Create(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractChronologicValidator..ctor(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractUpdate.DataPortal_Create(Criteria criteria))
Klaidos šaltinis(Ex.Source):
Csla
Klaidos metodas (Ex.TargetSite):
Create
Klaidos stekas:
в AccDataAccessLayer.SqlServerSpecificMethods.MySqlCommandManager.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLUtilities.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLCommand.Fetch()
в ApskaitaObjects.Workers.ContractChronologicValidator.Create(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractChronologicValidator..ctor(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractUpdate.DataPortal_Create(Criteria criteria)
в Csla.MethodCaller.CallMethod(Object obj, MethodInfo info, Object[] parameters)
в Csla.Server.SimpleDataPortal.Create(Type objectType, Object criteria, DataPortalContext context)
в Csla.DataPortal.Create(Type objectType, Object criteria)
в Csla.DataPortal.Create[T](Object criteria)
в ApskaitaObjects.Workers.ContractUpdate.NewContractUpdate(String ContractSerial, Int32 ContractNumber)
----------------------------
Vidinės klaidos (internal exception) duomenys:
Klaidos tekstas:
DataPortal_Create method call failed
Klaidos šaltinis(Ex.Source):
Csla
Klaidos metodas (Ex.TargetSite):
CallMethod
Klaidos stekas:
в AccDataAccessLayer.SqlServerSpecificMethods.MySqlCommandManager.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLUtilities.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLCommand.Fetch()
в ApskaitaObjects.Workers.ContractChronologicValidator.Create(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractChronologicValidator..ctor(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractUpdate.DataPortal_Create(Criteria criteria)
в Csla.MethodCaller.CallMethod(Object obj, MethodInfo info, Object[] parameters)
в Csla.Server.SimpleDataPortal.Create(Type objectType, Object criteria, DataPortalContext context)
----------------------------
Vidinės klaidos (internal exception) duomenys:
Klaidos tekstas:
Klaida vykdant SELECT sakinį (statement): [SELECT w.Nuo, w.Tipas, (SELECT MAX(a.Z_data) FROM du_ziniarastis_d d LEFT JOIN du_ziniarastis a ON a.ID=d.Z_ID WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija))) AS MaxWage, (SELECT MAX(d.Nuo) FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) GROUP BY d.AK, d.DS_Serija, d.DS_NR, d.Nuo HAVING SUM(CASE WHEN d.Tipas='n' OR d.Tipas='d' THEN 1 ELSE 0 END)<1) AS MaxUpdate, (SELECT d.Nuo FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) AND d.Tipas='n' LIMIT 1) AS ContractTerminationDate FROM darbuotojai_d w WHERE w.DS_NR=?DN AND UPPER(TRIM(w.DS_Serija))=UPPER(TRIM(?DS)) AND w.Tipas='d';=d.Z_ID WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija))) AS MaxWage, (SELECT MAX(d.Nuo) FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) GROUP BY d.AK, d.DS_Serija, d.DS_NR, d.Nuo HAVING SUM(CASE WHEN d.Tipas='n' OR d.Tipas='d' THEN 1 ELSE 0 END)<1) AS MaxUpdate, (SELECT d.Nuo FROM darbuotojai_d d WHERE d.DS_NR=w.DS_NR AND UPPER(TRIM(d.DS_Serija))=UPPER(TRIM(w.DS_Serija)) AND d.Tipas='n' LIMIT 1) AS ContractTerminationDate FROM darbuotojai_d w WHERE w.DS_NR=?DN AND UPPER(TRIM(w.DS_Serija))=UPPER(TRIM(?DS)) AND w.Tipas='d';], Params: ?DS=; ?DN=1;
Klaidos turinys: 'Subquery returns more than 1 row'.
Klaidos šaltinis(Ex.Source):
AccDataAccessLayer
Klaidos metodas (Ex.TargetSite):
FetchCommand
Klaidos stekas:
в AccDataAccessLayer.SqlServerSpecificMethods.MySqlCommandManager.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLUtilities.FetchCommand(SQLCommand SelectCommand)
в AccDataAccessLayer.DatabaseAccess.SQLCommand.Fetch()
в ApskaitaObjects.Workers.ContractChronologicValidator.Create(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractChronologicValidator..ctor(String ContractSerial, Int32 ContractNumber)
в ApskaitaObjects.Workers.ContractUpdate.DataPortal_Create(Criteria criteria)
----------------------------
Vidinės klaidos (internal exception) duomenys:
Klaidos tekstas:
Subquery returns more than 1 row
Klaidos šaltinis(Ex.Source):
MySql.Data
Klaidos metodas (Ex.TargetSite):
OpenPacket
Klaidos stekas:
в MySql.Data.MySqlClient.MySqlStream.OpenPacket()
в MySql.Data.MySqlClient.NativeDriver.FetchDataRow(Int32 statementId, Int32 pageSize, Int32 columns)
в MySql.Data.MySqlClient.MySqlDataReader.NextResult()
в MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
в MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
в System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
в AccDataAccessLayer.SqlServerSpecificMethods.MySqlCommandManager.FetchCommand(SQLCommand SelectCommand)