Domino & Notes error

Error creating product object

LotusScript run-time error, often logged by scheduled or server agents.

What it means

LotusScript could not create one of the Notes objects your code asked for, usually because it is not available where the code is running.

Common causes

  • UI classes such as NotesUIWorkspace or NotesUIDocument used in a scheduled, server or web agent
  • A script library loaded with Use that creates a UI object in its declarations
  • Code called through RunOnServer or a web agent that assumes a Notes client

Quick fixes

  1. Search the agent and every library it uses for New NotesUIWorkspace and other UI classes
  2. Move UI code into client-only code and keep back-end classes in server code
  3. Add error handling that logs Erl and Error$ to find the failing line

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

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.