After upgrading mail application from 8.5.1 to 8.5.2 (german language pack) i get the following error from amgr:
AMgr: Agent (‘Aufgaben aktualisieren|Update Tasks’ in ‘mail\admin.nsf’) error message: When running on a server, you must have UNRESTRICTED access in order to set environment variables or get system variables
The agent signer is member of a group and the group is listed in the server config doc / security… The same error occurs if the agent signer is explicit listed in the server config doc :-\
Here’s a fix that doesn’t involve lowering the security of the agent:
If you load up Designer and go to the Common script library, you’ll see this at the bottom of NOTEUserIsCreator:
If Not(session.IsOnServer) Then
If Not(session.Getenvironmentstring(“CSNoNameComparePrevOwner”, True) = “1”) Then
If NOTEUserIsCreator = False And note.HasItem(“Chair”) Then
Dim calprof As NotesDocument
Set calprof = session.Currentdatabase.Getprofiledocument(“calendarprofile”)
If calprof.Hasitem(“$PrevBusyName”) Then
Dim OwnerNotesName As New NotesName(strMailOwner)
Dim chairNotesName As New NotesName(note.getitemvalue("Chair")(0))
If Not(Isnull(Arraygetindex(calprof.getitemvalue("$PrevBusyName"),chairNotesName.Canonical))) Then
NOTEUserIsCreator = True
End If
End If
End If
End if
End If
Either add the lines marked in green, or remove the whole block, since it didn’t exist in 8.5.1 and I can’t find any reference to “CSNoNameComparePrevOwner” anywhere else. The call to Getenvironmentstring is the one that is causing the agent manager to throw the error. You don’t really want to call that from a user agent running on a server, since it’ll try and read a variable from the server’s notes.ini, and that’s probably not what was intended here.