Domino & Notes error

File truncated - file may have been damaged

Often seen in log.nsf with a prefix, e.g. "Unable to replicate [database]: File truncated - file may have been damaged"

What it means

The NSF file on disk is shorter than Domino expects, so part of the database is missing or unreadable.

Common causes

  • A crash, power loss or full disk while the database was being written
  • A backup, anti-virus or copy tool touching the file while it was open
  • An incomplete copy or restore of the NSF
  • Storage or file system faults

Quick fixes

  1. Take a backup of the damaged file, then run load fixup [database]
  2. If Fixup can't repair it, restore from backup or make a new replica from a healthy server
  3. Exclude the Domino data directory from live anti-virus and file-level backup scanning
  4. Check free space and the disk's health

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

Disclaimer

The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.

This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.