HCL
Skip to main content  
 
   


SPRTechnote


Calling LotusScript CreateReplica method results in crash if source database is a replica stub

Technote Number: 1215602


Problem:
This issue was reported to Quality Engineering in SPR# JBIE6FLTVN and was fixed
in Notes/Domino releases 6.5.6 and 7.0.2. There is no workaround currently
available for previous releases.

Excerpt from the Lotus Noes and Lotus Domino Releases 6.5.6 and 7.0.2 MR fix
list (available at http://www.ibm.com/developerworks/lotus):

LotusScript
SPR# JBIE6FLTVN - Instead of displaying an error that the action was not
allowed, CreateReplica was crashing. Now it will return the proper error.

Refer to the Upgrade Central site for details on upgrading Notes/Domino.

For replica stub databases which are not in a state that allows replication,
the LotusScript CreateReplica method will now return the same error message
that the Notes client user interface returns:

"Replication of this database is not permitted"

For LotusScript error handing, the associated error number for the above error
is 5636.

TO REPRODUCE

1. Create a replica stub, as follows:

a) Select the Domino Directory on a server.
b) From the File menu, choose Replication --> New Replica.
c) Deselect "Create Immediately." In earlier releases, select "Next scheduled
replication."

2. Create an agent designed to run on no documents, with the following code:

Dim db as new NotesDatabase("", "<filename of replica>")
Call db.CreateReplica("", "crashissue.nsf")

3. Run the agent.

Supporting Information
This crash issue does not occur with all replica stub databases which the
CreateReplica method is applied to. At this time the specifics of replica stub
database needed to recreate the issue are unknown.
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact