# SQLite Error 11-database disk image is malformed

**URL:** <https://community.rootsmagic.com/t/sqlite-error-11-database-disk-image-is-malformed/4312>\
**Category:** RootsMagic\
**Tags:** question, rootsmagic\
**Created:** [April 10, 2022, 9:31pm UTC](https://community.rootsmagic.com/t/sqlite-error-11-database-disk-image-is-malformed/4312 "2022-04-10T21:31:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Attroll](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@Attroll](https://community.rootsmagic.com/u/Attroll)\
**Post date:** [April 10, 2022, 9:31pm UTC](https://community.rootsmagic.com/t/sqlite-error-11-database-disk-image-is-malformed/4312/1 "2022-04-10T21:31:50Z")

</div>

Does anyone know how to recover from SQLite Error 11-database disk image is malformed?

---

<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:** [April 11, 2022, 2:27am UTC](https://community.rootsmagic.com/t/sqlite-error-11-database-disk-image-is-malformed/4312/2 "2022-04-11T02:27:49Z")

</div>

I’ve had some success with these techniques I described 10 years ago. [Corrupt Database Recovery #database – SQLite Tools for RootsMagic](https://sqlitetoolsforrootsmagic.com/corrupt-database-recovery/)

---

<div class="post-metadata">

**Author:** ![hkcraswell](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hkcraswell](https://community.rootsmagic.com/u/hkcraswell)\
**Post date:** [March 7, 2023, 1:40pm UTC](https://community.rootsmagic.com/t/sqlite-error-11-database-disk-image-is-malformed/4312/3 "2023-03-07T13:40:22Z")

</div>

My experience lies with other database software but it seems this can sometimes be caused by having invalid indexes? In that case rebuilding the indexes seems to correct the issue.
