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

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.

  • Realm PrimaryKey Constraint Exception
    via Stack Overflow by Kero Fawzy
    ,
    • io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 0 at io.realm.internal.Table.throwDuplicatePrimaryKeyException(Table.java:721) at io.realm.internal.Table.addEmptyRowWithPrimaryKey(Table.java:473) at io.realm.Realm.createObject(Realm.java:708) at io.realm.fav_placesRealmProxy.copy(fav_placesRealmProxy.java:397) at io.realm.fav_placesRealmProxy.copyOrUpdate(fav_placesRealmProxy.java:387) at io.realm.DefaultRealmModuleMediator.copyOrUpdate(DefaultRealmModuleMediator.java:99) at io.realm.Realm.copyOrUpdate(Realm.java:1272) at io.realm.Realm.copyToRealm(Realm.java:727) at com.nuku.mc.populate_recyclerview.realmHelper$1.execute(realmHelper.java:36) at io.realm.Realm.executeTransaction(Realm.java:1065) at com.nuku.mc.populate_recyclerview.realmHelper.save(realmHelper.java:31) at com.nuku.mc.populate_recyclerview.placesAdapter$ViewHolder.onClick(placesAdapter.java:159) at android.view.View.performClick(View.java:4212) at android.view.View$PerformClick.run(View.java:17476) at android.os.Handler.handleCallback(Handler.java:800) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5371)

    Users with the same issue

    brunosatriani
    brunosatriani54 times, last one,