I am the developer of an application with soft deletions activated. In the trash I regulary find documents that appear to be deleted by me. But I haven’t touched them, not even been close to a computer at certain deletion times. The deletions are always made during office hours, which leads me to believe that there is some human action behind.
The obvious answer would be that someone is triggering a deletion agent signed by me, but there is no such agent. To be sure I have searched the design for the following keywords:
(NotesDocument).Remove
(NotesUIDocument).DeleteDocument
@DeleteDocument
@Command([EditClear])
I have looked in the server logs for any agent action but found nothing. The database resides on two clustered servers.
Someone suggested that some user had a local replica with a deletion agent that was protected from refresh. So we changed the replica ID. It didn’t help. We have also deleted and recreated one of the replicas.
I cannot remove my own deletion rights in the ACL, since there IS an agent that makes deletions, but this is a scheduled procedure that removes documents permanently and at 04:30 in the morning.
I have considered the Querydocumentdelete event in the database script, but I assume that it will not help if there is actually an agent running.
I have also considered the known method to remove the users’ deletion rights and instead letting them flag the documents for deletion and thus hide them from the regular views. But that won’t help either if there is an agent in action.
In the Designer Help there is an entry “Unexpected deletions occur in a replica”. It recommends the replication settings that prevent sending/receiving deletions, but that doesn’t sound as a good idea in a server cluster. The setting “Remove document not modified in the last days” is not activated. Neither is there a replication formula.
Now I’m running out of ideas how to solve this very annoying mystery. Is it someone out there who could shed some light over this before I loose my wits? I would be eternally grateful!