Replication conflict on names.nsf

I update the person document with new values from an Oracle database on a scheduled Daily basis. The names.nsf(Primary) database is replicated. I have attached the script below as I do not understand why I continually get loads of replication conflict entries (it’s not on every person document though - however the script does run on every document!). Is this due to this peice of code:

notesdoc.Save True, True

SHOULD IT BE?

notesdoc.Save True, False

i.e force the save, but do not create a response document

Script below, THANKYOU.:

======

While Not (notesdoc Is Nothing)

		count = count + 1

		

		notesdoc.ComputeWithForm False, False

		

				Call notesdoc.ReplaceItemValue("OfficeStreetaddress",  IFSdoc.Work_Address)

		Call notesdoc.ReplaceItemValue("OfficeCity",  "" )

		Call notesdoc.ReplaceItemValue("OfficeZip",  IFSdoc.Work_PostCode)

		Call notesdoc.ReplaceItemValue("OfficeCountry",  "")

		

				notesdoc.Save True, True	

'notesdoc.Save True, False	



Set notesdoc = notescollect.getnextdocument(notesdoc) 

		

	Wend 

	

	Set IFSdoc = IFSview.getnextdocument(IFSdoc) 

Wend

Subject: replication conflict on names.nsf

First try:If the first parameter of save is true, this means that you will save the document even if a user/another process is editing it.

If it is functionnaly accepted to wait for the next process to update the document, perhaps you can try with notesdoc.Save False, True

Second try:

Is you agent run on the two servers ? In this context, you could update the same document on the two servers and so have replication conflicts during the next replication

Hope this will help

Subject: RE: replication conflict on names.nsf

As it’s a replicated names.nsf, I can see both agents on the databases, but I thought the primary would take precedence?

Thanks

Ross