Delete replication conflicts

I have a db that had several replication conflicts in it. I have manually deleted all the conflicts. The propertybox of the db shows that it contains 170.000 documents. When I selects all doc’s in the db i see that it contains only 3700. I suggest that all the others (166.300 !!!) is conflict that I do not see??

How can I get rid of all this conflicts?

I’ve tried making an agent running on all doc’s in the db, but it does not help. See code under.

Sub Initialize

Dim session As New NotesSession

Dim db As NotesDatabase

Dim view As NotesView

Dim doc As NotesDocument

Dim entry As NotesViewEntry

Set db = session.CurrentDatabase

Dim Vec As notesViewEntryCollection 



j=1

Set view = db.GetView( "$All" )

Set vec = view.AllEntries

Set entry = vec.GetNthEntry( j )

Set doc = entry.Document



While Not (doc Is Nothing)

	If entry.isconflict = True Then

		Call doc.remove(True)

	End If

	

	j=j+1

	Set entry = vec.GetNthEntry( j )

	If entry Is Nothing Then

		Exit Sub

	End If

	Set doc = entry.Document 

Wend

End Sub

Subject: delete replication conflicts

Are you sure that you have access to all documents? It would be strange if you have THAT many replication conflict documents. Your script seems nice, at a short overview. Are you sure there are no reader fields etc, which controls that you don’t see all documents?

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net

Subject: RE: delete replication conflicts

There is one reader-field, but I am a member of a grup that always is member of that field…

Subject: RE: delete replication conflicts

Create a view then, with this view selection formula:

SELECT !@IsAvailable($Conflict)

Check how many documents you now get.

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net

Subject: RE: delete replication conflicts

I’ve done that and I still don’t see more documents…

Subject: delete replication conflicts

Did you know you could use scanEZ to solve conflict documents?