Domino & Notes error

Operation is disallowed in this session

What it means

The code tried to do something not allowed in the context it is running in, usually a restricted operation or a UI action in a background agent.

Common causes

  • A restricted operation (file I/O, Shell, network, environment) in an agent whose signer can't run restricted agents
  • The agent's runtime security level set to not allow restricted operations
  • Using front-end or UI calls in a server or web agent

Quick fixes

  1. Check the signer is allowed in the Programmability Restrictions section of the Server document
  2. Set the agent's runtime security level to allow restricted operations
  3. Re-sign the agent with an ID that has the right rights
  4. Remove UI calls from code that runs on the server

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.