$ConflictAction causes Replication Conflict

A few days ago I wrote a topic here saying that a paste agent caused a replication conflict. I was mostly wrong, but partly right. It’s not just a paste agent causing the problem but any agent. Therefore I would like to repeat how these replication conflicts occur:

The database is very simple. It consists of only one form with only one text field. The conflict behaviour is set to “Create Conflicts” which is the default. There is also an agent modifiying this field (something like FIELD name := @Uppercase(name)). Moreover there is a local replica of the database.

The following steps cause the replication conflict. What is quite interesting is that data modifications are made only in one database and not in the replica:

  1. Create document

  2. Replicate

  3. Modify document

  4. Replicate

  5. Change Conflict Behaviour of the form in Designer to “Merge/No Conflict”

  6. Open and save document (with or without modifications)

  7. Replicate => Replica contains a conflict document

There are no replica conflicts when step 4 is skipped or when the agent adds a field “$ConflictAction” to “3”

Any ideas or comments? Does this sound like “works as designed”?

Ruedi