Vermutlich hast Du von der Funktion UpdateProcessedDocument eine falsche Vorstellung.
You use this method in conjunction with the UnprocessedDocuments property, the UnprocessedFTSearch method, or the UnprocessedSearch method in NotesDatabase. This method is intended for agent scripts that run "If Documents Have Been Created or Modified." In other scripts (agent or otherwise), this method has no effect.