What it means
The code used a dynamic array that was declared but never given a size with ReDim.
Common causes
- Calling
UBound or LBound on an array that has never been sized
- Assigning an unsized dynamic array to a Variant
- A loop that only calls
ReDim when data is found, then uses the array anyway
Quick fixes
- Call
ReDim on the array before using it, even with a single element
- Keep a counter of how many elements you added and check it before using the array
- Trap error 200 with
On Error 200 GoTo where an empty array is a normal case
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.