Lightroom: Photo stuck in purgatory causing catalog failure?

  • 1
  • Problem
  • Updated 7 years ago
I finally discovered which photo has been giving me problems for the last X months+.

It was in the catalog enough that it shows up in the grid, but not in the catalog enough to show up in other circumstances, like catalog:getTargetPhotos().

I deleted it from the catalog, and was not asked whether I wanted to delete or remove (it was not deleted from disk).

I tried to add it back via folder sync but it was not recognized. Finally, I made a copy and imported that instead, then deleted the original from disk. When I tried to rename it to same as original (which no longer existed on disk or "theoretically" in the catalog), it gave me the -2 suffix (indicating original filename was not a viable option).

Summary: I have a photo that is being remembered by the catalog, but that does not appear to be in the catalog... Its entirely possible that this photo is the reason I can not import my catalog into any other catalogs (fails with 'Unknown Error' ). All my backups for the last X months+ have the same problem.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes

Posted 7 years ago

  • 1
Photo of Dan Tull

Dan Tull, Employee

  • 172 Posts
  • 38 Reply Likes
I can look at the catalog if you send it to me. This sounds like some kind of referential integrity issue that'd probably be fairly easy for me to locate.
Photo of TK


  • 531 Posts
  • 112 Reply Likes
Rob, try this as a fix:

1. Enter the grid mode.
2. Select "All Photographs".
3. Deselect the offending image (might not be possible anymore with your latest catalog, as you have removed it, right? Try a backup which still contains the image and deselect it in the grid.).
4. "Export As Catalog" to a new catalog.

I'm confident, the exported catalog will be fine and you will be able to import it into other catalogs.

I had a similar problem once where one image had a nil value for "rootFolder". That one photo caused a number of issues like loss of performance in the grid view and hiding a number of folders. Once it was purged through the catalog export action, the missing folders reappeared and things went back to normal.