What it means
A Declare statement points to an external library (DLL) that couldn't be found or loaded.
Common causes
- The DLL isn't installed or isn't on the system path
- A 32-bit DLL called from 64-bit Notes or Domino, or the reverse
- Windows API declarations used on a non-Windows server
Quick fixes
- Check the DLL exists on the machine running the code
- Check the DLL matches the bitness of the Notes client or Domino server
- Guard platform-specific code, for example by checking the platform with
session.Platform
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.