Opening document or composing memo based on stationery results in error:
'The document is already locked..'
Problem
In mail files which multiple users have access to, the following error message occurs when a user attempts to
edit a draft memo, or create a memo using Personal Stationery:
"The document is already locked by <username>"
For example, User A creates a memo based on a particular Stationery document. When User B attempts to
create a memo based on the same stationery the error occurs, indicating that User A has the document locked.
The error can also occur in databases which are not based on a mail template. The issue occurs whether or not
the Database Property, "Allow Document Locking" is enabled.
At times the issue will not occur if the first user closes the database or logs out of Notes (either by selecting
the F5 key or by a ID lockout set up in the User Preferences).
Note: This same error will occur when creating new documents with an Action or Agent that uses
LotusScript to create the document. For more information on this issue see the following document:
Solution
This issue is relative to the use of Soft Locking. Soft Locking goes into effect when a document is opened in
Edit mode. In cases where a document is closed while still in Edit mode the document is not unlocked.
An additional scenario also exists. The second scenario is related to the fact that new documents created in the
back-end (including User Interface triggered LotusScript code) are assigned a NoteID of 0. When two or
more users create such documents, each document they create has a NoteID of 0. The soft locking feature
locks documents based on the NoteID; so, even though there are two (or more) different documents, the soft
locking feature recognizes only that NoteID 0 is already locked.
The issue relative to soft locking and new back-end documents was reported to Quality Engineering as SPR#
KHAN5U4NVZ and was fixed in Domino 6.0.4/6.5.2 and 7.0. The fix resolves a number of scenarios where
soft locking errors were encountered, including the one involving the use of Stationery in a mail file. Refer to
the following document for scenarios involving LotusScript:
In cases where the above fix does not resolve the issue then soft locking can be disabled using a Notes.ini
parameter introduced in Notes Domino 6.5.1, 6.0.4 and 7.0.