Skip to main content
Known Participant
December 11, 2020
Question

repair corrupted files (dng)

  • December 11, 2020
  • 5 replies
  • 7595 views

Hi, among several thousand images that I have imported into LR (NEF => .dng) several single files are corrupted. LR cannot open them. The NEF files are ok, imported . dng-files are corrupted. File names and Metadata are ok, the development protocol is greyed.

How can I repair the corrupted files?

Is there any program to find single corrupted files among thousands of images?

Thanks!

Robert, Vienna

Windows 10 Prof, latest version, LR Classic latest vesion

5 replies

Participating Frequently
April 17, 2025

When you ran “Check DNG” and found those 2 invalid files, were you able to open the original NEFs outside Lightroom? Just wondering if those are intact or maybe partially corrupted too.

Also, not sure if anyone’s mentioned this already, but have you tried checking those problem files with any jpeg repair software (just in case the embedded previews are causing the hiccup)? Might sound odd since it’s DNG, but sometimes those previews get corrupted and throw weird errors.

AxelMatt
Community Expert
Community Expert
April 17, 2025

@alan_7530 This thread is approx. 5 years old and it's unlikely that this will still be read.

 

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

After you get the image files restored from backup, make sure you do a deep scan of the hard drive for bad sectors.

 

GoldingD
Legend
December 11, 2020

How do you know that the RAW files, the NEF files are not corrupt?

If you inspect them in camera, you are not seeing the RAW data, you are seeing an embedded JPEG.

 

If you inspect them in a file manager, you are looking at the embedded JPEG not the RAW data

 

If you look at them in the Import screen in LrC, you are seeing the embedded JPEG, You will not see a translation until after previews are created

 

If you look at them in Adobe Camera RAW, you are looking at the embedded JPEG, you will see an issue when you convert.

 

 

Known Participant
December 11, 2020

I copied the NEFs from the memory card to the PC, where they are still sitting, LR catalog  and DNGs on an external HDD..... Ok, and how can I come to terms with that problem? Just converting them into DNG, what I did? Mostly successfully, I hope...

Known Participant
December 11, 2020

The size of the corrupted files is the same as that of the neighboring files....

Ian Lyons
Community Expert
Community Expert
December 11, 2020

I can't recall when it was added, but you can use the 'Validate DNG Files' (see Library module Library menu) to find any others that may be corrupt. When you find the files you'll likley need to convert the original NEF files to DNG, then subsitute them back into the folder containing the damaged DNGs. Remember, that the new DNGs must have the same file name ans the damaged files. If you copy/paste using OS tools the original metadata and edits stored in catalog can be saved back to the new DNGs. 

Known Participant
December 11, 2020

Thanks for your advice! You are very patient... I am posting from Austria, so please write a less elaborate English....

'Validate DNG Files' - I'm using LR in German....  - "Searching missing photos" is the command that you have meant?  LR says:  "No missing photos - All photos in the catalog are available" -  But 2 images in the folder are missing...

 

Command "Check DNG" => 2 invalid DNG files => "Show in the library"  => 2 files are shown => What to do next?  Delete the photos from LR and new import? If I do this, name and metadata and development are kept and applied again?

Best regards

Robert, Vienna

 

dj_paige
Legend
December 11, 2020

While I cannot speak for Ian Lyons, I think this is what he means

 

  1. Find original RAW
  2. Convert it to DNG again (use the Adobe DNG Converter)
  3. Using your operating system, copy the new DNG to the folder where the corrupted DNG is, overwriting the corrupted DNG

 

At no time should you Import. At no time should you synchronize folders. NO IMPORTING. NO SYNCHRONIZING FOLDERS.

dj_paige
Legend
December 11, 2020

Restore the photos from backups.

Known Participant
December 11, 2020

The images I am referring to are from 2014, 2014 December was the last time these file were touched. I wonder if I can single out specific images out of the Backup. I still have backups created by LR 5.7.  But if I touch them LR 10.1 wants to import this catalogue....

The problem that files are corrupted can happen in any folder... I've got 68.000 images. :-(((

Known Participant
December 11, 2020
 

You suggested in 2017 to import the original a 2nd time.

 

 LR says It might be a duplicate, which is already in the catalog.

 If I

 If I uncheck "no import of possible duplicate", LR asks 2nd import to a different location/ the same location? I do not want to confuse the catalog...

Thanks for your advice