Have you ever wondered why the replication and save conflicts get converted to duplicates? Or why one of the duplicates has child(response) documents and the other duplicates do not?
Well, if there are any replication and save conflicts in your database and you have run either @Command([ToolsRefreshAllDocs]) or @Command([ToolsRefreshSelectedDocs]) then all of the replication and save conflicts will get converted into a duplicates and only one of the duplicate records will have the response docs.
So always make sure that you have removed all of replication and save conflicts before you run any refresh agent/code.
I was actually searching all sorts of things to find out the problem of duplicate documents, which was hard to detect. This tip has helped to find the reason and solution for the problem and saved lot of time. Thanks to the tip contibutor and SearchDomino.com.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip exchange by member Anuj Puri. Please let others know how useful it is via the rating scale at the end of the tip. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.