Lotuscript Replicate is not Sending Documents

We have a button with Lotusscript that routes a form for approval and sends an email with a link back to the original document. However, when a local user creates a document, then submits it for approval, it saves the document locally but sends the email immediately. This results in an error when the recipient clicks on that link. To work around this, we wanted to force the replication of the database from the local workstation to the server, but when it replicates, the progress bar displays, but no documents are sent. Then, when we manually replicate the documents are still not sent. We then must clear the history before a manual replication will work.

We are saving the document in the button on the save and then calling the db.Replicate(servername). How can we get the database to replicate these new documents?

Subject: Lotuscript Replicate is not Sending Documents

I found a tech note on this. Here is a portion of it:

The Replicate method is a back-end method that works differently than the User Interface replication functionality. The Replicate method requires the server to have the appropriate access via the ACL to replicate any changes to the client database.

Additional Considerations with the Replicate Method:

The server name must be specified in full canonical format for the method to work correctly. For example:

Flag=db.replicate(“CN=ServerZ/O=Lotus”)

For additional information on this requirement,refer to the document “No Replication Occurs via the LotusScript Replicate Method; Server Name Must Be in Canonical Format” (#155542 ).

The server must have at least Editor access rights in the ACL. (This access can be set via Default access, explicit entry, or by group.)

In Notes R5 there is an issue which prevents the Replicate method from working correctly unless the server has an explicit entry in the ACL. This has been reported to Lotus Quality Engineering in Software Problem Report (SPR) # LABN4R3QXM.

NOTE: In order to replicate updates to design notes, the server must have at least Designer access. Also, if there are ACL changes to be replicated, the server must have Manager access.

If the documents to be replicated and or updated contain a Reader and or Author Names field there is the additional requirement: The server must be specified in the Reader or Author Names field accordingly. This step can be performed in a number of ways:

  1. The server name can be explicitly added to the field in abbreviated hierarchical format or full canonical format.

  2. The server can be added via a role or group.

*Note: If the server is added via a group, the user’s local Name and Address book must contain that group.

This particular issue (that the server needs to have appropriate access rights in the ACL) has been reported to Lotus Quality Engineering.

(I made this change in our test environment and it cleared up the problem)

Subject: Lotuscript Replicate is not Sending Documents

We have a database doing the exact same thing. Last year the replication worked fine, now we are making enhancements and the replication is working exactly as described above. The only difference I know of versus last year is the test server is now at 6.5. Anyone have any ideas? Thanks…