malformed database

Smee

Well-Known Member
Licensed User
Longtime User
I am getting the following error when trying to initialise a database

android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed: , while compiling: PRAGMA journal_mode=TRUNCATE

The file opens ok with sqllite administrator on windows. i have done a database clean and it shows everything is ok. I ftp upload the database (binary) and then ftp download to a tablet.

if i try a different database same name etc(old back up) it downloads and initialises properly.

Can anyone advise any ideas on how to repair or fix this problem?

Thanks
 

colin van Blommestein

Member
Licensed User
Longtime User
Nullexception error

Error sorted.
Restarted phone and database seemed to repair itself
Is there a database repair addon for DBUtils, SQLite
Thanks Erel for responding.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Nullexception error

Error sorted.
Restarted phone and database seemed to repair itself
Is there a database repair addon for DBUtils, SQLite
Thanks Erel for responding.

That's not a malformed database then, unless you got a malformed database error message, which you haven't indicated.
 
Upvote 0
Top