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]

GitHub | tomblench | 4 months ago
  1. 0

    GitHub comment 280#241750708

    GitHub | 4 months ago | tomblench
    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]
  2. 0

    Cannot execute for last inserted row ID, base error code: 19

    GitHub | 9 months ago | Vinoth7
    android.database.sqlite.SQLiteException: Cannot execute for last inserted row ID, base error code: 19
  3. 0

    android.database.sqlite.SQLiteException: Cannot execute for last inserted row ID, base error code: 10

    GitHub | 2 years ago | loeschg
    android.database.sqlite.SQLiteException: Cannot execute for last inserted row ID, base error code: 10
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Close cursors after each test with Robolectric

    GitHub | 2 years ago | wmora
    android.database.sqlite.SQLiteException: Cannot execute for last inserted row ID, base error code: 10
  6. 0

    Sqlite Shadow Crashes execSql

    GitHub | 2 years ago | jophde
    android.database.sqlite.SQLiteException: Cannot execute for changed row count, base error code: 10

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. sqlite4java
      SQLiteStatement.step
      1. com.almworks.sqlite4java.SQLiteConnection.throwResult(SQLiteConnection.java:1436)
      2. com.almworks.sqlite4java.SQLiteConnection$BaseController.throwResult(SQLiteConnection.java:1689)
      3. com.almworks.sqlite4java.SQLiteStatement.stepResult(SQLiteStatement.java:1402)
      4. com.almworks.sqlite4java.SQLiteStatement.step(SQLiteStatement.java:301)
      4 frames
    3. com.cloudant.sync
      SQLQueueCallable.call
      1. com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.executeSQLStatement(SQLiteWrapper.java:331)
      2. com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insertWithOnConflict(SQLiteWrapper.java:314)
      3. com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insert(SQLiteWrapper.java:325)
      4. com.cloudant.sync.datastore.callables.InsertRevisionCallable.call(InsertRevisionCallable.java:67)
      5. com.cloudant.sync.datastore.DatastoreImpl.insertDocumentHistoryIntoExistingTree(DatastoreImpl.java:1377)
      6. com.cloudant.sync.datastore.DatastoreImpl.doForceInsertExistingDocumentWithHistory(DatastoreImpl.java:1337)
      7. com.cloudant.sync.datastore.DatastoreImpl.access$800(DatastoreImpl.java:78)
      8. com.cloudant.sync.datastore.DatastoreImpl$14.call(DatastoreImpl.java:1170)
      9. com.cloudant.sync.sqlite.SQLQueueCallable.call(SQLQueueCallable.java:36)
      9 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames