Hello,
I have scheduled an agent to run on a server. It runs on a set of documents. The problem is, when it comes across a document that is locked by some user, it stops.
Can anyone please provide a solution to this problem.
Thanks in advance.
Regards,
Adi
Subject: Agent stops running because the document is locked
Is it stopping/erroring when you try to do something to the locked document, ie save it, or is it just erroring as soon as you try to use it in any way?
Subject: RE: Agent stops running because the document is locked
Hello David,
I try to modify a few items/fields in the document and then save it.
Regards,
Adi
Subject: RE: Agent stops running because the document is locked
Ok, if that is happening to you, then the simplest thing to do would be to check to see if the document is locked before you try to edit it.
Have a look at the “LockHolders” property of NotesDocument in the Designer Help. That should allow you to write a function to return whether the document is locked or not, allowing you to skip or edit the document