What it means
LotusScript tried to use an object that was never set. Usually it's Nothing because a lookup didn't find anything.
Common causes
GetView, GetDocumentByKey or GetFirstDocument returned Nothing
- A misspelt view name or database path
- Running in a context where an object doesn't exist, for example
CurrentDocument in a scheduled agent
Quick fixes
- Check objects before use:
If Not doc Is Nothing Then
- Use the LotusScript debugger, or add error handling that logs the line number (
Erl)
- Add
Option Declare to catch misspelt variable names
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.