# Database Corruption and Sqlite errors

**URL:** <https://community.rootsmagic.com/t/database-corruption-and-sqlite-errors/14534>\
**Category:** RootsMagic\
**Tags:** question, rootsmagic\
**Created:** [August 23, 2025, 11:34am UTC](https://community.rootsmagic.com/t/database-corruption-and-sqlite-errors/14534 "2025-08-23T11:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TomH](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.rootsmagic.com/tomh/32/30_2.png) [@TomH](https://community.rootsmagic.com/u/TomH)\
**Post date:** [August 23, 2025, 12:16pm UTC](https://community.rootsmagic.com/t/database-corruption-and-sqlite-errors/14534/2 "2025-08-23T12:16:58Z")

</div>

This is the one to be alarmed by:

> [@SQLite Error 11-database disk image is malformed](https://community.rootsmagic.com/t/sqlite-error-11-database-disk-image-is-malformed/4312):
>
> Does anyone know how to recover from SQLite Error 11-database disk image is malformed?

Database tools Rebuild Indexes and Compact may fix some of the possible causes. Drag’n’drop to a new database might succeed. GEDCOM export and import to a new database might but both DnD and GEDCOM may lose some stuff. That’s about as far as RM Support can go. Beyond that, somebody with SQLite expertise may be able to recover all or some of your data (e.g., link in that discussion).

Preventative measures include avoidance of other processes accessing the database while it’s open in RM, periodically checking your drive for degradation.

For recovery, routine backups from within RM plus other periodic backups to external drive, cloud, off-site.

---

_[View the full topic](https://community.rootsmagic.com/t/database-corruption-and-sqlite-errors/14534)._
