Link to home
Start Free TrialLog in
Avatar of david8583
david8583

asked on

Replication via Lotusscript

I'm attempting to replicate from a local to a server database programmatically.  It does work but the process throws an error, "Notes Error:  You are not authorized to replicate or copy data from this database" message.  The ACLs seem to be setup correctly, allowing necessary access.  I know that the error is being thrown at the line "call db.replicate(targetsvr)".

Why would it work and yet throw this error message?
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

So in the ACL, the option "Replicate or copy documents" is enabled for this person? How is the code activated, is it an agent? Or a view action?
Avatar of david8583
david8583

ASKER

Yes, the ACL is set correctly.  The code is behind a button on the form.  The user population currently is running Notes client 6.5.1.  I developed this database in 8.5.1 and am not experiencing this behavior.
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also check the agents security rights in Agent Properties.
Because it's working with local database to server it may require elevated admin rights.
I'll see if I can summarize a response to comments above.

I've tested this in 8.5.1.  Seems to work without complaint.  
The Replicate method goes back to Notes 4.6.
Not using an agent, LS code sits in a button on the form and runs with the security of the user.
Yes, I am attempting to enable the end user to replicate data from a local to the server.  The replication process does actually work successfully, however, it throws this error for some reason.  So the error message is more annoyance than game stopper.
If it's only annoying, add two lines around the call:

On Error Resume Next
Call db.Rep...
On Error Goto 0

The last one to reset the default error handling stuff.
Sief,

I'll give that a try and let you know.  Thanks.

David
Could it be that replication is disabled for at the client in their location document?
You can enable it without setting a replication schedule.
M_K_A
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Any reason why you didn't accept the answer in http:#35424815 ?
Has this been tested using designer version below 8.5 before assuming it is a bug.

Install another version such as R7 and save the code with no other changes then test if it works.

Also have you checked the workstation ECL as the replication option could be seen as a restricted action. Therefore the signer of the action may need elevated ECL rights.

Also again to see if 6.5 8.5 issue install a client using 8.5 client and do not use your ID. That way your not litsed in the ECL.
See my previous comment.