I designed a Notes database in which I have a "Preferences" document for saving various user parameters e.g. a serial number which is incremented every time a document of a specific form is created. The Prefernces document is created and maintained internally using LotusScript. I am using the following replication formula for my database in order to protect the Prefernces document from being overwritten by the Preferences document of a replica:
SELECT Form != "Preferences"
The problem is that the Preferences document does get overwritten from time to time without being able to find out why my replication formula doesn't work.