Problem with deletion Stub

Hello…

I have a document which has been deleted and I can see it in deletion stub.

But when my code tries to get handle of the document using UNID, the notesdocument object is set. (the check If Not mainDoc Is Nothing Then gets through)

I believe the notesdoc object is being set as it is taking from deletion stub, but it ideally shouldn’t be this way as the doc has been deleted.

Kindly suggest me any ways to get around this and also let me know the issue lurking here…

Thanks in advance!!

Subject: Problem with deletion Stub…

Check IsValid and IsDeleted properties of NotesDocument

Subject: Problem with deletion Stub…

Hi, Is it possible for you to use the mainDoc.IsDeleted on the document, and see that it is deleted?

Best regards,

Jesper

Subject: RE: Problem with deletion Stub…

Yep… I got it working now… (used isValid) but why is the doc object set using a deletion stub… its quite weird…!