What it means
The code read a list element using a tag (key) that has not been added to the list.
Common causes
- Reading
myList(key) before that key was ever assigned
- A difference in case or spacing between the key used to store and the key used to read
- Keys built from field values that are empty or unexpected
Quick fixes
- Test with
IsElement(myList(key)) before reading the element
- Normalise keys, for example with
LCase and Trim, when storing and reading
- Use
ForAll with ListTag when you need to walk the whole list
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.