After agent run the "status" view should be empty but there are documents which agent didn't process.
Were I made a mistake?
There is a Lotussript code:
Set doc = view.Getfirstdocument()
While Not ( doc Is Nothing)
Set docNext = view.Getnextdocument(doc)
Call doc.Replaceitemvalue("documentStatus", 1)
Call doc.Save(True, True)
Set doc = docNext
Wend
Start your code with a line
view.AutoUpdate = false
This prevents your view being refreshed during agent run.