android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: datasets.identity_id, datasets.dataset_name (code 2067)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by jukka-palomaki
, 1 year ago
UNIQUE constraint failed: datasets.identity_id, datasets.dataset_name (code 2067)
via GitHub by 7wonders
, 2 years ago
foreign key constraint failed (code 19)
via GitHub by PaulineBAUDOUIN
, 2 years ago
PRIMARY KEY must be unique (code 19)
via GitHub by AdamFM
, 2 months ago
UNIQUE constraint failed: requests._file_path (code 2067)
via GitHub by daniele-athome
, 10 months ago
NOT NULL constraint failed: keys_backup.fingerprint (code 1299)
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 com.amazonaws.mobileconnectors.cognito.internal.storage.SQLiteLocalStorage.changeIdentityId(SQLiteLocalStorage.java:741)
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

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
4 times, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.