We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Replication via Lotusscript

david8583
david8583 asked
on
Medium Priority
1,040 Views
Last Modified: 2013-12-18
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?
Comment
Watch Question

Sjef BosmanGroupware Consultant
CERTIFIED EXPERT

Commented:
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?

Author

Commented:
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.
Groupware Consultant
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
Also check the agents security rights in Agent Properties.
Because it's working with local database to server it may require elevated admin rights.

Author

Commented:
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.
Sjef BosmanGroupware Consultant
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
Sief,

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

David

Commented:
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
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Sjef BosmanGroupware Consultant
CERTIFIED EXPERT

Commented:
Any reason why you didn't accept the answer in http:#35424815 ?

Commented:
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.
Sjef BosmanGroupware Consultant
CERTIFIED EXPERT

Commented:
See my previous comment.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.