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

GitHub | jpaseneta | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    RealmPrimaryKeyConstraintException: Value already exists: 0

    GitHub | 10 months ago | jpaseneta
    io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 0
  2. 0

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

    GitHub | 1 year ago | LiuDeng
    io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 0
  3. 0

    Realm 1.2.0: createAllFromJson fails on objects with @PrimaryKey

    GitHub | 4 months ago | Zhuinden
    io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    createOrUpdateObjectFromJson throw RealmPrimaryKeyConstraintException: Value already exists:

    GitHub | 1 year ago | Ralphilius
    io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists:
  6. 0

    realm.createOrUpdateObjectFromJson duplicate primary key - fatal error

    GitHub | 1 year ago | miguelmartin75
    io.realm.exceptions.RealmPrimaryKeyConstraintException: Value already exists:

    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. io.realm.exceptions.RealmPrimaryKeyConstraintException

      Value already exists: 0

      at io.realm.internal.Table.throwDuplicatePrimaryKeyException()
    2. io.realm.internal
      Table.addEmptyRow
      1. io.realm.internal.Table.throwDuplicatePrimaryKeyException(Table.java:721)
      2. io.realm.internal.Table.addEmptyRow(Table.java:414)
      2 frames
    3. io.realm
      Realm.copyToRealm
      1. io.realm.Realm.createObject(Realm.java:688)
      2. io.realm.RealmUserRealmProxy.copy(RealmUserRealmProxy.java:390)
      3. io.realm.RealmUserRealmProxy.copyOrUpdate(RealmUserRealmProxy.java:381)
      4. io.realm.DefaultRealmModuleMediator.copyOrUpdate(DefaultRealmModuleMediator.java:99)
      5. io.realm.Realm.copyOrUpdate(Realm.java:1272)
      6. io.realm.Realm.copyToRealm(Realm.java:727)
      6 frames
    4. com.smartwavedev.genie
      MainActivity.onCreate
      1. com.smartwavedev.genie.Activity.MainActivity.onCreate(MainActivity.java:200)
      1 frame