System.Data.SQLite.SQLiteException (0x80004005): constraint failed

EM Client crashes and will not function anymore. Reinstalled the application but it keeps crashing.

Hereunder is the first part of the failurenotice. What can I do to fix this?


eM Client (7.0.27943.0)Windows: Microsoft Windows NT 10.0.10586.0, Framework: 4.0.30319.42000
The following error has occurred:
System.Data.SQLite.SQLiteException (0x80004005): constraint failed
UNIQUE constraint failed: MailCategoryNames.categoryName, MailCategoryNames.id
   bij System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   bij System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   bij System.Data.SQLite.SQLiteDataReader.NextResult()
   bij System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)
   bij System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   bij System.Data.SQLite.SQLiteCommand.ExecuteScalar()
   bij MailClient.Storage.Data.DbItemRepository1.StoreCategoryName(UInt64 parentId, String categoryName) &nbsp; &nbsp;bij MailClient.Storage.Mail.Data.DbMailRepository.\<\>c\_\_DisplayClass95\_0.<store>b__0(String i)<br> bij MailClient.Storage.Data.CategoryNameCollection.From(IEnumerable1 values, Func2 storeValue)<br> bij MailClient.Storage.Mail.Data.DbMailRepository.Store(IMailRepositoryItem mail)<br> bij MailClient.Storage.Data.DbRepository1.Add[ST](Object senderContext, IEnumerable1 items)<br> bij MailClient.RepositoryExtensions.Add[T,ST](IRepository1 repository, IEnumerable`1 items)
bij MailClient.Protocols.Imap.Synchronizer.SynchronizeMessagesCommand.Fetch(FetchNotification response)
bij MailClient.Protocols.Imap.Synchronizer.Fetch(Folder folder, FetchNotification response)
bij MailClient.Protocols.Imap.Synchronizer.ImapNotification(ConnectionPoolEntry connectionPoolEntry, Folder activeFolder, NotificationEventArgs e)
bij MailClient.Protocols.Imap.ConnectionPoolEntry.Connection_Notification(Object sender, NotificationEventArgs e)
bij MailClient.Imap.Base.Connection.ParseUntagged(String line)
bij MailClient.Imap.Base.Connection.ParseReply(String line)
bij MailClient.Imap.Base.Connection.ReceiveWorker()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()


" rel=“nofollow” target="_blank">http://emclient.com/ns/report">;

Hello Jan,

We’re sorry for the inconvenience. That unfortunately looks like your database is broken. Could you please try starting with a new database? If eM Client can’t find the database folder in the default location (C:\Users\username\AppData\Roaming) with the default name (‘eM Client’), it will create a new one. In order to start with a new database, simply turn eM Client off and rename the ‘eM Client’ folder in C:\Users\username\AppData\Roaming to e.g. ‘eM Client old database’. Please do note that all settings and locally saved data will be lost.

Regards,
Maurice