Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 8 Forum

Notes/Domino 8 Forum

"Cannot remove NotesDocument when instantiated by NotesUIDocument"

In other words, it doesn't want to delete a document in the back end when you obtained the NotesDocument handle from the front end -- a document you have open. Since you say you eliminated all the UI stuff from your code, I assume it's that you're running on a NotesDocument from the UnprocessedDocuments collection, but it's the document you have open. So if you get this error, it would seem that you should trap it and try deleting the document a different way, via NotesUIWorkspace.CurrentDocument.DeleteDocument. Or, if it needs to be a hard delete, respond to the error by closing the document (uidoc.close), and then delete the NotesDocument from memory (Delete statement), re-get the document from the back end using the noteID which you have previously stored, and then delete it.

If I've understood the problem correctly and this approach works for you, please reply, because in that case I'd like to technote it. Thanks.

Feedback response number AGUD7NR4Q2 created by Andre Guirard on 01/28/2009

Trouble with Removeall Method in LS... (Lee A. Whitney 16.Jan.09)
. . The error text is more useful than ... (Andre Guirard 17.Jan.09)
. . . . Agreed... (Lee A. Whitney 17.Jan.09)
. . . . . . "Cannot remove NotesDocument when i... (Andre Guirard 28.Jan.09)
. . . . . . . . Latest... (Lee A. Whitney 1.Feb.09)
. . . . . . . . . . wondering whether it might have som... (Andre Guirard 9.Feb.09)
. . . . . . . . . . . . Preview pane (Lee A. Whitney 14.Feb.09)


Search this forum

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite