org.gnucash.android.importer.ImportAsyncTask: FOREIGN KEY constraint failed (code 787) 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging messages. 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging exceptions. 10:11:47.570 W/System.err: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:559) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteSession.execute(SQLiteSession.java:619) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:44) 10:11:47.606 W/System.err: at org.gnucash.android.db.adapter.DatabaseAdapter.doAddModels(DatabaseAdapter.java:260)

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by rivaldi8
, 1 year ago
FOREIGN KEY constraint failed (code 787) 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging messages. 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling
org.gnucash.android.importer.ImportAsyncTask: FOREIGN KEY constraint failed (code 787) 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging messages. 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging exceptions. 10:11:47.570 W/System.err: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:559) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteSession.execute(SQLiteSession.java:619) 10:11:47.606 W/System.err: at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:44) 10:11:47.606 W/System.err: at org.gnucash.android.db.adapter.DatabaseAdapter.doAddModels(DatabaseAdapter.java:260)
at org.gnucash.android.db.adapter.DatabaseAdapter.bulkAddRecords(DatabaseAdapter.java:298)
at org.gnucash.android.db.adapter.TransactionsDbAdapter.bulkAddRecords(TransactionsDbAdapter.java:160)
at org.gnucash.android.importer.GncXmlHandler.saveToDatabase(GncXmlHandler.java:1000)
at org.gnucash.android.importer.GncXmlHandler.endDocument(GncXmlHandler.java:967)
at org.apache.harmony.xml.ExpatParser.endDocument(ExpatParser.java:532)
at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:476)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)
at org.gnucash.android.importer.GncXmlImporter.parse(GncXmlImporter.java:69)
at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:85)
at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:49)
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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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