android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: awards.key (code 1299)

GitHub | 1fish2 | 2 months ago
  1. 0

    `INSERT INTO awards(name,enum,winners,year)` needs a key

    GitHub | 2 months ago | 1fish2
    android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: awards.key (code 1299)
  2. 0

    Android database method was called twice

    Stack Overflow | 2 years ago | user4901016
    android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: test2.categorys (code 2067)
  3. 0

    P2P - SQLiteReadOnlyDatabaseException error

    GitHub | 2 years ago | pasin
    android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sync fails to insert attachment during initial sync (null attachment key)

    GitHub | 2 years ago | jcamp1
    android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: attachments.key (code 1299)
  6. 0

    Database crash

    GitHub | 2 years ago | gsczechowski
    android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: ShoppingLists.HouseholdID (code 1299)

  1. mhicauber 3 times, last 2 weeks ago
  2. Aria Pahlavan 52 times, last 3 weeks ago
  3. bluebunnty 10 times, last 1 month ago
  4. VeryRedChris 31 times, last 1 month ago
  5. franky li 10 times, last 1 month ago
46 more registered users
15 unregistered visitors
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. android.database.sqlite.SQLiteConstraintException

    NOT NULL constraint failed: awards.key (code 1299)

    at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId()
  2. Android Platform
    SQLiteDatabase.insert
    1. android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
    2. android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)
    3. android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
    4. android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
    5. android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)
    6. android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)
    6 frames
  3. com.thebluealliance.androidclient
    GCMMessageHandler.onHandleIntent
    1. com.thebluealliance.androidclient.database.ModelTable.add(ModelTable.java:44)
    2. com.thebluealliance.androidclient.database.ModelTable.add(ModelTable.java:69)
    3. com.thebluealliance.androidclient.database.writers.AwardListWriter.write(AwardListWriter.java:23)
    4. com.thebluealliance.androidclient.gcm.notifications.AwardsPostedNotification.updateDataLocally(AwardsPostedNotification.java:120)
    5. com.thebluealliance.androidclient.gcm.GCMMessageHandler.handleMessage(GCMMessageHandler.java:199)
    6. com.thebluealliance.androidclient.gcm.GCMMessageHandler.onHandleIntent(GCMMessageHandler.java:127)
    6 frames
  4. Android Platform
    HandlerThread.run
    1. android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
    2. android.os.Handler.dispatchMessage(Handler.java:102)
    3. android.os.Looper.loop(Looper.java:135)
    4. android.os.HandlerThread.run(HandlerThread.java:61)
    4 frames