What it means
Code tried to use a value as the wrong data type, for example text where a number or date was expected.
Common causes
- Item values are arrays: using
doc.Field instead of doc.Field(0)
- Empty fields, or text that can't convert to a number or date
- Passing the wrong type to a function or class
Quick fixes
- Use
(0) to read the first value of an item
- Check before converting:
IsNumeric, IsDate, then CDbl, CDat or CStr
- Declare variables with proper types under
Option Declare
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.