Skip to main content
Inspiring
January 8, 2026
Question

An internal error has occurred. ?:0: attempt to index field 'rootfile' (a nil value)

  • January 8, 2026
  • 2 replies
  • 126 views

Screen capture of the LR screen with comments.

 

191 images in this catalog are greyed out and non-accessible. All the rest of the 6248 images in the catalog are viewable and have no issues.

 

Pop-up error dialog I get when trying to delete/export any/all of these 191 images:

“An internal error has occurred.
?:0: attempt to index field 'rootfile' (a nil value)”

 

Noticed that the difference in counts between ‘Catalog’ and ‘Folders’ panes on the left is 191. The same number as the number of grayed out images in Library view panel.

 

See above link for some clarity.

 

How can I delete/remove these from the catalog?

2 replies

Legend
January 9, 2026

@buckshot1960 

 

The error you see

 

“An internal error has occurred.
?:0: attempt to index field 'rootfile' (a nil value)”

 

means that your catalog has a problem. Restore and open the most recent backup of your catalog, if you have one.

 

Each photo in a catalog links to information about where the orginal file is stored on your computer. For any photo where that link is lost, LrC will list the photo in the grid, but will not have access to the orginal file to enable it to build a preview; the thumnail will be grey. How this can happen we can only guess at; most likely the catalog didn't get updated properly for some reason, whether that is ha hardware problem  or a software issue.

 

Community Expert
January 9, 2026

It seems there's a issue with the preview cache. Try to delete the cache and check if it's help.

See here for instruction how to delete the preview cache: Lightroom error on preview cache or displays gray thumbnails

 

My System: Intel i7-8700K - 64GB RAM - NVidia Geforce RTX 3060 - Windows 11 Pro 25H2 -- LR-Classic 15 - Photoshop 27 - Nik Collection 9 - PureRAW 6 - Topaz Photo AI