When Lightroom says the catalog cannot be repaired
Lightroom Classic shows "Lightroom has encountered problems reading this catalog", offers to repair it, and then reports that the catalog "is corrupt and cannot be repaired". Its own repair handles only some kinds of damage. That does not mean your edits are gone: usually most of the file is still readable.
What happens to your catalog here
- A copy is opened, never the original, together with the
.lrcat-walfile if you add it (it holds the changes Lightroom had not yet saved into the catalog). - SQLite's integrity check finds what is damaged. If only indexes are broken, they are rebuilt and nothing is lost.
- Otherwise every row that can still be read is copied, page by page, into a new catalog with the same tables, indexes and triggers. Rows that lost their place in the file are matched to the table they belong to.
- The new catalog is compared with a real catalog of the same Lightroom version (for most versions) and gets back what it lost of the structure; its version and the counter Lightroom numbers new photos from are put back if they were lost, and it must pass the integrity check.
What you get back
- The repaired
.lrcat, to put in the catalog folder in place of the damaged one and open with File > Open Catalog. - XMP sidecars with each photo's develop settings, rating, label, flag and keywords, so the edits are safe even outside the catalog.
- A spreadsheet of every photo, the edit history list, the keyword list and the collections.
- A report counting what could not be recovered: photos whose file record is gone, photos without develop settings, keyword links to lost keywords.
Typical causes
A full disk during a save, a catalog in a network or cloud-synced folder (Dropbox, OneDrive, iCloud), a crash or power cut while Lightroom was writing. A file cut short loses what was in its missing end; a file with a few overwritten pages loses only the rows on those pages.
Before you start
Keep the damaged catalog and its -wal file as they are. Upload the .lrcat and the .lrcat-wal
together, or a ZIP of the whole catalog folder. If there is a backup ZIP in the Backups folder,
it can be uploaded as it is too.
More about what this tool reads and writes: Lightroom Catalog Rescue and Export (.lrcat to XMP).