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

GitHub | 1fish2 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    GitHub | 5 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

    UNIQUE constraint failed when trying to share video via intent

    Stack Overflow | 1 year ago | John Smith
    android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: files._data (code 2067)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    P2P - SQLiteReadOnlyDatabaseException error

    GitHub | 2 years ago | pasin
    android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787)
  6. 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)
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