Exception:constraint failed NOT NULL constraint failed: ClipboardItem.SubIndexconstraint failed NOT NULL constraint failed: ClipboardItem.SubIndex

报错信息

Exception: constraint failed
NOT NULL constraint failed: ClipboardItem.SubIndex
StackTrace:
   在 FreeSql.Internal.CommonProvider.AdoProvider.LoggerException(IObjectPool`1 pool, PrepareCommandResult pc, Exception ex, DateTime dt, StringBuilder logtxt, Boolean isThrowException)
   在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms)
   在 FreeSql.Sqlite.Curd.SqliteInsert`1.RawExecuteIdentity()
   在 FreeSql.Internal.CommonProvider.InsertProvider`1.SplitExecuteIdentity(Int32 valuesLimit, Int32 parameterLimit)
   在 FreeSql.Sqlite.Curd.SqliteInsert`1.ExecuteIdentity()
   在 FreeSql.DbSet`1.AddPriv(TEntity data, Boolean isCheck)
   在 FreeSql.DbSet`1.Add(TEntity data)
   在 FreeSql.BaseRepository`1.Insert(TEntity entity)
   在 IntelliTools.Domain.MyClipboard.ClipItem.CreateAndSave(ClipItemBase item)
   在 IntelliTools.View.BackgroundWindow.CollectClipItem(ClipItemBase item)
   在 IntelliTools.View.BackgroundWindow.LasyOnClipboardChanged()
   在 IntelliTools.View.BackgroundWindow.Timer_Tick(Object sender, EventArgs e)
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

SQLiteException: constraint failed
NOT NULL constraint failed: ClipboardItem.SubIndex
--ResultCode: Constraint
--ErrorCode: 19
StackTrace:
   在 System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   在 System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   在 System.Data.SQLite.SQLiteDataReader.NextResult()
   在 System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   在 System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   在 System.Data.SQLite.SQLiteCommand.ExecuteScalar(CommandBehavior behavior)
   在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms)

 

解决方法

暂无解决方案。

相关信息
7 查看
1天10小时前
Quicker版本
版本 反馈次数
1.42.33 1
1.42.31 1
1.42.24 1
1.42.8 2
1.42.6 1
1.38.32 1