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

报错信息 1
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)

版本:1.40.23 2024-05-06 14:05 Microsoft Windows NT 10.0.18363.0
版本:1.42.32 2024-04-29 15:34 Microsoft Windows NT 10.0.22621.0
版本:1.42.15 2024-04-28 19:09 Microsoft Windows NT 10.0.22621.0
版本:1.42.33 2024-04-26 09:12 Microsoft Windows NT 10.0.22000.0
版本:1.42.31 2024-04-26 08:52 Microsoft Windows NT 10.0.22000.0
版本:1.42.24 2024-04-23 16:47 Microsoft Windows NT 10.0.19044.0
版本:1.42.8 2024-04-19 17:14 Microsoft Windows NT 10.0.19045.0
报错信息 2
Exception
   在 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
   在 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)
版本:1.38.32 2024-04-17 11:12 Microsoft Windows NT 10.0.19045.0