com.almworks.sqlite4java.SQLiteException

[2067] DB[1] step() [INSERT INTO "revs"(parent,current,deleted,revid,available,json,doc_id) VALUES (?,?,?,?,?,?,?)]DB[1][C] [UNIQUE constraint failed: revs.doc_id, revs.revid]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web10

  • via GitHub by tomblench
    ,
  • Stack trace

    • com.almworks.sqlite4java.SQLiteException: [2067] DB[1] step() [INSERT INTO "revs"(parent,current,deleted,revid,available,json,doc_id) VALUES (?,?,?,?,?,?,?)]DB[1][C] [UNIQUE constraint failed: revs.doc_id, revs.revid] at com.almworks.sqlite4java.SQLiteConnection.throwResult(SQLiteConnection.java:1436) at com.almworks.sqlite4java.SQLiteConnection$BaseController.throwResult(SQLiteConnection.java:1689) at com.almworks.sqlite4java.SQLiteStatement.stepResult(SQLiteStatement.java:1402) at com.almworks.sqlite4java.SQLiteStatement.step(SQLiteStatement.java:301) at com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.executeSQLStatement(SQLiteWrapper.java:331) at com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insertWithOnConflict(SQLiteWrapper.java:314) at com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insert(SQLiteWrapper.java:325) at com.cloudant.sync.datastore.callables.InsertRevisionCallable.call(InsertRevisionCallable.java:67) at com.cloudant.sync.datastore.DatastoreImpl.insertDocumentHistoryIntoExistingTree(DatastoreImpl.java:1377) at com.cloudant.sync.datastore.DatastoreImpl.doForceInsertExistingDocumentWithHistory(DatastoreImpl.java:1337) at com.cloudant.sync.datastore.DatastoreImpl.access$800(DatastoreImpl.java:78) at com.cloudant.sync.datastore.DatastoreImpl$14.call(DatastoreImpl.java:1170) at com.cloudant.sync.sqlite.SQLQueueCallable.call(SQLQueueCallable.java:36) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,