Save Conflict With Memo Create

Hi

We have a mail in database in which users send in “system supports” that we can help with. We have a button that sends a reply with the original request as the body of the memo. In R5 this worked perfectly. Now that we’ve upgrade to R6 when we go run this action, it either 1) Gives us a save conflict error, or 2) an Invalid Universal ID error.

Set uidoc = uiws.CurrentDocument

Set doc = uidoc.Document

Set dbMail = New NotesDatabase(“”, “”)

Call dbMail.OpenMail

Set docMemo = New NotesDocument(dbMail)

docMemo.Form = “Memo”

'//Add stuff to the memo

Call docMemo.Save(True, False)

Set uidocMemo = uiws.EditDocument(True, docMemo, False, , False, True)

Call docMemo.Remove(True)

The last three lines, I believe in where the problem lies. Anybody have any ideas? All users are on R6 as well as the server.

Thanks

-Matt

Subject: Save Conflict With Memo Create

I’ve figured it out…

Because Notes 6 now does soft deletions, docMemo.Remove(True) only does a soft deletion, therefore, not actually removing the document, but just putting it in the trash bin.

To fix this I did a docMemo.RemovePermanently(True) which does a hard delete of the document. You know how long that took me to find…too long.