Fields appear twice or sometimes even three times in a document
Posted on 2007-10-10
I've just been asked to investigate a very interesting problem. There is this server (Domino 6.5.3 FP1), and there are two databases involved. A document is created in the first one (based on a modified mail template), manually, and then a new document is created in the second database.
Sub Postsave(Source As Notesuidocument)
Dim cdb As notesDatabase
Dim doc As notesDocument
Dim BaseBT As notesDatabase
Dim dp As NotesDocument
Set baseBT=New notesDatabase(getRDVSrv(dp),getRDVDb(dp))
Call doc.ReplaceItemValue("BaseOriginal",cdb.FilePath )
Call doc.ReplaceItemValue("ServerOriginal",cdb.server )
Call doc.ReplaceItemValue ("AuthorOriginal",cdb.parent.userName)
Call doc.ReplaceItemValue ("Consultant",dp.getItemValue("user")(0))
Dim docR As notesDocument
Set docR=baseBT.CreateDocument ()
Call doc.CopyAllItems (docR)
If (source.InPreviewPane) Then Exit Sub
For some very odd reason, most fields appear twic in the second document, sometimes even more. Only Form and DocOrigin appear only once (!) in the document. The field $Revisions contains these dates: 01/10/2007 09:35:15 CET, 01/10/2007 09:35:17 CET, and 01/10/2007 09:35:41 CET.
The only thing that comes to my mind is that 6.5.3 FP1 contains a bug, in CopyAllItems, but there's no record of it anywhere.
Can you help me?? Is this a bug, does someone have an explanation, or how can I prevent it (document locking??)?
Additional info: Domino cluster, the document is created using the Notes client but there are multiple simultaneous web-agents running (2 at the moment).