android.database.sqlite.SQLiteConstraintException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 79#243995568
    via GitHub by jukka-palomaki
    ,
  • SQLiteConstraintException
    via GitHub by 7wonders
    ,
  • Crash in SQLite Insert "Column are not unique"
    via Stack Overflow by Omar
    ,
  • Column id is not unique
    via Stack Overflow by akhokhay
    ,
    • android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: datasets.identity_id, datasets.dataset_name (code 2067) at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method) at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:904) at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754) at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64) at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1814) at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1793) at com.amazonaws.mobileconnectors.cognito.internal.storage.SQLiteLocalStorage.changeIdentityId(SQLiteLocalStorage.java:741) at com.amazonaws.mobileconnectors.cognito.CognitoSyncManager$1.identityChanged(CognitoSyncManager.java:135) at com.amazonaws.auth.AWSAbstractCognitoIdentityProvider.identityChanged(AWSAbstractCognitoIdentityProvider.java:260) at com.amazonaws.auth.AWSAbstractCognitoIdentityProvider.getIdentityId(AWSAbstractCognitoIdentityProvider.java:175) at com.amazonaws.auth.AWSAbstractCognitoIdentityProvider.refresh(AWSAbstractCognitoIdentityProvider.java:313) at com.amazonaws.auth.AWSBasicCognitoIdentityProvider.refresh(AWSBasicCognitoIdentityProvider.java:77) at com.amazonaws.mobile.user.IdentityManager$AWSRefreshingCognitoIdentityProvider.refresh(IdentityManager.java:110) at com.amazonaws.auth.CognitoCredentialsProvider.startSession(CognitoCredentialsProvider.java:561) at com.amazonaws.auth.CognitoCredentialsProvider.refresh(CognitoCredentialsProvider.java:527) at com.amazonaws.auth.CognitoCachingCredentialsProvider.refresh(CognitoCachingCredentialsProvider.java:463) at com.amazonaws.mobile.user.IdentityManager.refreshCredentialWithLogins(IdentityManager.java:399) at com.amazonaws.mobile.user.IdentityManager.access$200(IdentityManager.java:38) at com.amazonaws.mobile.user.IdentityManager$2.run(IdentityManager.java:418) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor4 times, last one,
    Unknown visitor1 times, last one,
    Agócs Tamás
    3 times, last one,
    Unknown visitor1 times, last one,
    9 more bugmates