Domino & Notes error

Document command is not available

What it means

An @Command or UI action was run in a context where that command can't be used, such as when no document is open or selected.

Common causes

  • Running a document command from a view without a selected document
  • A document in read mode when the command needs edit mode
  • Commands that need the UI running in an agent or on the web

Quick fixes

  1. Check the context with @IsDocBeingEdited or @IsNewDoc first
  2. Use @Command([EditDocument]) before commands that need edit mode
  3. Move the action to the right place (form versus view) or hide it when not usable

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.