Attempt a Lock Operation on a DB that doesn't support Locking

When executing the following:

Sub Click(Source As Button)

Dim workspace As New NotesUIworkspace

Dim uidoc As notesuidocument

Set uidoc = workspace.currentdocument

Call workspace.editdocument (True)

I get the following message

Attempt a Lock Operation on a DB that doesn’t support Locking

We just upgraded to Lotus V 6.0.4. This code worked fine before hand but now we get this message. When we select OK, the process continues as it should.

NOTE: We save a document. Then we have the option of hitting another button, which when selected runs this line of code. If I exit, then come back in a hit the same button - no error message.

I’d like to learn what may be causing the message and what options I have to get rid of it. Any assistance will be greatly appreciated.

Thanks!

Subject: Attempt a Lock Operation on a DB that doesn’t support Locking

The SPR#: is DCOE6D8T2H and the APAR#: is LO08640

This may be reated to your issue.

Also try a search in the fixlist db on EDIT_NO_SOFT_LOCKS=1

Subject: RE: Attempt a Lock Operation on a DB that doesn’t support Locking

Paul, Yes, this is related to my issue. Thanks for pointing it out. The SPR referred to the same issue when going into edit mode using the formula language. In my case I’m in Lotus Script, so the solution was to only apply the editdocument if the UI isn’t already in edit mode. I did that as follows:

If uidoc.EditMode <>True Then Call workspace.editdocument (True)

Thank you Paul!