android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: station._id (code 1555)

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

via GitHub by ojacquemart
, 1 year ago
UNIQUE constraint failed: station._id (code 1555)
via GitHub by gsczechowski
, 2 years ago
NOT NULL constraint failed: ShoppingLists.HouseholdID (code 1299)
via GitHub by tobiasschuerg
, 8 months ago
UNIQUE constraint failed: jobs._id (code 1555) ################################################################# Error Code : 1555 (SQLITE_CONSTRAINT_PRIMARYKEY) Caused By : Abort due to constraint violation. (UNIQUE constraint failed: jobs._id (code 1555)) #################################################################
via Stack Overflow by Ephraim Schmitt
, 1 year ago
PRIMARY KEY must be unique (code 19)
via GitHub by alxndrsn
, 7 months ago
UNIQUE constraint failed: wo_message._id (code 1555) 03-06 08:38:32.542 7222 30495 W MedicGateway: ################################################################# 03-06 08:38:32.542 7222 30495 W MedicGateway: Error Code : 1555
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: station._id (code 1555)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1471)
at com.vlille.checker.db.StationEntityManager.create(StationEntityManager.java:42)
at com.vlille.checker.db.StationEntityManager.create(StationEntityManager.java:15)
at org.droidparts.persist.sql.AbstractEntityManager$1.call(AbstractEntityManager.java:111)
at org.droidparts.persist.sql.AbstractEntityManager$1.call(AbstractEntityManager.java:102)
at org.droidparts.inner.PersistUtils.executeInTransaction(PersistUtils.java:155)
at org.droidparts.persist.sql.AbstractEntityManager.executeInTransaction(AbstractEntityManager.java:148)
at org.droidparts.persist.sql.AbstractEntityManager.cud(AbstractEntityManager.java:127)
at org.droidparts.persist.sql.AbstractEntityManager.create(AbstractEntityManager.java:90)
at com.vlille.checker.db.DBUpdater.update(DBUpdater.java:33)
at com.vlille.checker.ui.async.DBUpdaterAsyncTask.doInBackground(DBUpdaterAsyncTask.java:32)
at com.vlille.checker.ui.async.DBUpdaterAsyncTask.doInBackground(DBUpdaterAsyncTask.java:12)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

11 times, 3 months ago
3 times, 3 months ago
5 times, 3 months ago
2 times, 4 months ago
5 times, 4 months ago

Write tip

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