Error msg question RE: "You are not authorized to replicate or copy data from this database."

We created a button on a notes page to trigger replication. The purpose of creating and using a button to trigger replication is to get the start time and the end time of the replication and write the elapsed times to a log from within the buttons code. Obviously, we are trying to monitor replication times.

Here is some of the code:

s = Now()

Dim ss As New NotesDateTime(s)

Call db.Replicate( servername )

e = Now()

Dim ee As New NotesDateTime(e)

lngTimeDiff = ee.TimeDifference(ss)

d = lngTimeDiff/intMinutes

Call aLog.LogAction("replication started: " + Cstr(s) + " ended: " + Cstr(e) + " elapsed minutes: " + Cstr(d))

Anyways, when the users click the button, the replication fails and the log shows the error message: “You are not authorized to replicate or copy data from this database.”

Oddly enough, the user can trigger a replication from the replication form (right click, replicate selected database) without issue. But not, apparently, from this button.

I found a technote that suggests a solution where one should change the ACL by checking and enabling the “Replicate or Copy Documents” property for the Anonymous entry. Apparently this is an http task issue.

Here’s my question. This is a Notes client app that we are using. Not a web app. We don’t even have an Anonymous entry in the ACL. Should we create an Anonymous entry in the ACL?

Any help will be appreciated.

Subject: error msg question RE: “You are not authorized to replicate or copy data from this database.”

Just some thinking aloud questions.

Is the code in the button or does the button call an agent?

If an agent, does the signer have rights to replicate and to run agents?

What is Users authority for running agents?

Hope these help.

Ian

Subject: RE: error msg question “You are not authorized to replicate or copy data from this database.”

The code is in the button.

Subject: RE: error msg question “You are not authorized to replicate or copy data from this database.”

Then I would look at the users, who click the button, rights to run agents on the server.

Could even be the servers rights to replicate. Do the two servers have a replication schedule? (or are you only ever forcing an ad-hoc manual replication??).

Check access/security setting on both of the server documents.