What it means
Code tried to delete the back-end document that is currently open in the user interface.
Common causes
- Calling
Remove on uidoc.Document from form or action code
- Deleting the current document from within its own events
Quick fixes
- Close the UI document first, then delete the back-end document by its UNID
- Use a soft delete (set a status field) instead of removing it
- Use
@Command([EditClear]) or a view action to delete from the UI
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.