2015-01-13 21:57
Dianaval
Programoje vedu dvi įmones vieną persikėliau viskas gerai, o kitai tikrinant duomenis meta klaidą: There is row at position 0.
Paspaudus detaliau:
Klaidos duomenys:
Klaidos tekstas:
DataPortal.Update failed (System.IndexOutOfRangeException: There is no row at position 0.
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem..ctor(DataTable myData, Int32& index, FinancialStatementItemType nType)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem.FetchStructure()
at ApskaitaObjects.CustomDatabaseStructureErrorManager.UpgradeOldVersionBalanceStructure(DatabaseStructureErrorList& StructureErrorList)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.RepairCustomError(DatabaseStructureErrorList& StructureErrorList, DatabaseStructureError CustomError)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureError.Update(DatabaseStructureErrorList& parent)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureErrorList.DataPortal_Update())
Klaidos šaltinis(Ex.Source):
Csla
Klaidos metodas (Ex.TargetSite):
Update
Klaidos stekas:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem..ctor(DataTable myData, Int32& index, FinancialStatementItemType nType)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem.FetchStructure()
at ApskaitaObjects.CustomDatabaseStructureErrorManager.UpgradeOldVersionBalanceStructure(DatabaseStructureErrorList& StructureErrorList)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.RepairCustomError(DatabaseStructureErrorList& StructureErrorList, DatabaseStructureError CustomError)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureError.Update(DatabaseStructureErrorList& parent)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureErrorList.DataPortal_Update()
at Csla.MethodCaller.CallMethod(Object obj, MethodInfo info, Object[] parameters)
at Csla.MethodCaller.CallMethod(Object obj, String method, Object[] parameters)
at Csla.Server.SimpleDataPortal.Update(Object obj, DataPortalContext context)
at Csla.DataPortal.Update(Object obj)
at Csla.DataPortal.Update[T](T obj)
at Csla.BusinessListBase`2.Save()
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureErrorList.Save()
at ApskaitaWUI.F_DatabaseStructureError.RepairErrorsButton_Click(Object sender, EventArgs e)
----------------------------
Vidinės klaidos (internal exception) duomenys:
Klaidos tekstas:
DataPortal_Update method call failed
Klaidos šaltinis(Ex.Source):
Csla
Klaidos metodas (Ex.TargetSite):
CallMethod
Klaidos stekas:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem..ctor(DataTable myData, Int32& index, FinancialStatementItemType nType)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem.FetchStructure()
at ApskaitaObjects.CustomDatabaseStructureErrorManager.UpgradeOldVersionBalanceStructure(DatabaseStructureErrorList& StructureErrorList)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.RepairCustomError(DatabaseStructureErrorList& StructureErrorList, DatabaseStructureError CustomError)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureError.Update(DatabaseStructureErrorList& parent)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureErrorList.DataPortal_Update()
at Csla.MethodCaller.CallMethod(Object obj, MethodInfo info, Object[] parameters)
at Csla.MethodCaller.CallMethod(Object obj, String method, Object[] parameters)
at Csla.Server.SimpleDataPortal.Update(Object obj, DataPortalContext context)
----------------------------
Vidinės klaidos (internal exception) duomenys:
Klaidos tekstas:
There is no row at position 0.
Klaidos šaltinis(Ex.Source):
System.Data
Klaidos metodas (Ex.TargetSite):
GetNodeByIndex
Klaidos stekas:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem..ctor(DataTable myData, Int32& index, FinancialStatementItemType nType)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.OldBalanceItem.FetchStructure()
at ApskaitaObjects.CustomDatabaseStructureErrorManager.UpgradeOldVersionBalanceStructure(DatabaseStructureErrorList& StructureErrorList)
at ApskaitaObjects.CustomDatabaseStructureErrorManager.RepairCustomError(DatabaseStructureErrorList& StructureErrorList, DatabaseStructureError CustomError)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureError.Update(DatabaseStructureErrorList& parent)
at AccDataAccessLayer.DatabaseAccess.DatabaseStructure.DatabaseStructureErrorList.DataPortal_Update()