Foxtable(狐表)用户栏目专家坐堂 → [求助]DataTable 内部索引已损坏:“5”。


  共有2209人关注过本帖平板打印复制链接

主题:[求助]DataTable 内部索引已损坏:“5”。

帅哥哟,离线,有人找我吗?
xiaoqiwei
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:668 积分:8549 威望:0 精华:0 注册:2011/5/5 23:55:00
[求助]DataTable 内部索引已损坏:“5”。  发帖心情 Post By:2020/11/21 3:14:00 [只看该作者]

Foxtable版本:2020-01-19

这是什么问题?突然这样,总是报下面两个错误

System.InvalidOperationException: DataTable 内部索引已损坏:“5”。
   在 System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append)
   在 System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append)
   在 System.Data.Index.RecordStateChanged(Int32 oldRecord, DataViewRowState oldOldState, DataViewRowState oldNewState, Int32 newRecord, DataViewRowState newOldState, DataViewRowState newNewState)
   在 System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2)
   在 System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)
   在 System.Data.DataRow.EndEdit()
   在 【FoxTable】.DataTable.O.o_00OO_.(Object A_0, DataColumnChangeEventArgs A_1)

System.Data.ConstraintException: 列“_Identify”被约束为是唯一的。值“106”已存在。
   在 System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action)
   在 System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
   在 System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)
   在 System.Data.DataRow.EndEdit()
   在 【FoxTable】.DataTable.O.o_00OO_.(Object A_0, DataColumnChangeEventArgs A_1)
[此贴子已经被作者于2020/11/21 3:41:27编辑过]

 回到顶部