io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 0

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

Solutions on the web

io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 0
at io.realm.internal.Table.throwDuplicatePrimaryKeyException(
at io.realm.internal.Table.addEmptyRowWithPrimaryKey(
at io.realm.Realm.createObject(
at io.realm.fav_placesRealmProxy.copy(
at io.realm.fav_placesRealmProxy.copyOrUpdate(
at io.realm.DefaultRealmModuleMediator.copyOrUpdate(
at io.realm.Realm.copyOrUpdate(
at io.realm.Realm.copyToRealm(
at io.realm.Realm.executeTransaction(
at android.view.View.performClick(
at android.view.View$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(

Users with the same issue

54 times, 1 year ago

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