Bug in private views in LN client release 8.5.2.M2

Hi,We have this LN client

Release 8.5.2 M2

Revision 20100331.1812-M2 (Build V852_M2_03302010)

Standard Configuration

and during this code which is called from private view(action button)


Set rtitem = docB.GetFirstItem( “Body” )

Call rtitem.AppendText( “Please check these documents->” )

Call rtitem.AddNewLine( 1 )

Set doc = collection.GetFirstDocument()

While Not ( doc Is Nothing )

Call rtitem.AppendDocLink( doc, db.Title ) ‘*******Error on this line

Call rtitem.AddTab( 1 )

Call rtitem.AppendText( doc.Subject( 0 ) )

Call rtitem.AddNewLine( 1 )

Set doc = collection.GetNextDocument(doc)

Wend


we have this error:

"Notes error: Invalid or nonexistent document()

But this error appears only in case server replica is used, on local replica it is OK.

The same code is also called from shared view without problems.

In case user is using 8.5.1 or earlier version of LN client everything is OK. (tested on 8.5.1, 8.5.0 and 7.0)

Please does anybody have any idea what can cause this problem? Any solution how to avoid this error?

Thank you for your effort.

Subject: Possible workaround

Did try to create this private view on server instead of in Desktop?

Subject: View was recreated

Hi,

yes it was recreated(replaced design) on local and also on server. But strange is that happens only with that version and only with the private views - it is not working also in other private view from which is called this function and it is not working by 3users.

Any other idea? Can this be a bug in 8.5.2?

Thanks.

Subject: I think it is a access control issue

Hello,Sorry for responding so late.

I think it is a security issue, try to set your server agent to run on behalf of the owner of the private view.

Make sure the view resides on the server.

Subject: Trigerred by user

Hi,

thank for idea, but

this code is triggered by the user himself - it is used to copy data to personal database. So i think this is not that case - and it is working for shared views.

Subject: Have you tried agent under Notes 8.0?

We have a similar situation. A private view with an action button attempts to insert a document link into a rich text field, and fails on “Notes error: Document has been deleted ()” when run on a Notes 8.5.1 client. However, when the same code is run on a Notes 8.0.2 client it works without any errors, and inserts the link into the field. Here is the code:

Set Link = New NotesRichTextItem(doc1, “docLink” )

Call Link.AppendDocLink (doc,“link to the document”)

The agent fails on the second statement. “doc” and “doc1” are both populated, and there is a default view in the database.

Given it works under 8.0.2 but not 8.5.1 I’m thinking it’s a Notes bug.