Lotusscript:Change location doc to replicate

We are doing an upgrade from R5 - R6.5. Users have the client and also their mail file is on the new R6.5 server. Now we want them to replicate their mail locally. I sent the users some lotusscript to create a new local replica and then the script looks for a specific location document and modifies the mail and replication tabs in the location documents. The settings are identical to what I have which I set manually. My replication works fine but users who are pushing the button do not seem to be replicating on the defined time frame I have set in the lotusscript (every 15 minutes). When I check their location document, everything looks great but it still does not replicate every 15 minutes (yes I have the 15 as a number).

Any thoughts why this would happen. Here is some code I use after I have grabbed the location document:

ReplicateNewDatabase db, LocalMailPath, newserver

Call workspace.AddDatabase( “” , LocalMailPath)

If OfficeLocationFound=1 Then

OfficeDoc.MailType= “1” ’ change to local

OfficeDoc.MailAddressing=“2” ’ Change addressing to Local and Server

OfficeDoc.MailThreshold=“1” ’ Transfer mail if you have more than one pending for sending

OfficeDoc.WebRetriever=“2” ’ force users to use IE for internet

OfficeDoc.Interval=15

OfficeDoc.ReplicationEnabled= “1” ’ Enable Replication

OfficeDoc.ReplicateAtStart= “1” 'Replicate when notes starts is on

OfficeDoc.PromptAtStart= “0” ’ Prompt user before replication starts

OfficeDoc.Enabled=“1” 'Define replication interval. Leave default to replicate every hour

OfficeDoc.ReplicateAtEnd=“1” ’ Prompt to replicate when notes shuts down

OfficeDoc.ReplicateOutboxAtEnd=“1” 'based on the above, only repliate if something is in the outbox

OfficeDoc.ReplicateToBeSentAtEnd=“1” 'based on the above, only repliate if something is in the Sent folder

success = OfficeDoc.ComputeWithForm( False, False )

Call OfficeDoc.save (True,True)

Sub ReplicateNewDatabase(db As notesdatabase, dbname As String, newserver As String)

Dim replicaDatabase As notesdatabase

Print “Verifying replica of " & Cstr(dbname) & " Please wait …”

Set replicaDatabase=New notesdatabase(“”,Cstr(dbname))

Call replicaDatabase.replicate(newserver)

End Sub

Subject: SOLUTION : Lotusscript:Change location doc to replicate

Finally, it’s OK for me .

i change replication settings in the Location document. see the code below !!


Const ReplicationEnabled$=“1”

Const ReplicateAtStart$=“1”

Const Enabled$ = “1”

Const Interval%=60

Const Enabled_HI$ = “1”

Const Interval_HI%=15

Dim TheWeekDays ( 0 To 6 ) As String

TheWeekDays( 0 ) = “1”

TheWeekDays( 1 ) = “2”

TheWeekDays( 2 ) = “3”

TheWeekDays( 3 ) = “4”

TheWeekDays( 4 ) = “5”

TheWeekDays( 5 ) = “6”

TheWeekDays( 6 ) = “7”

Dim dateRange, dateRange_Hi As NotesDateRange

Dim sessiondate As New NotesSession

Dim dateTime1 As New NotesDateTime(“07:00:00”)

Dim dateTime2 As New NotesDateTime(“06:59:00”)

Dim sched1, sched2 As NotesItem

Dim TheDay, TheDay_Hi As NotesItem

Dim Success as Variant

currentDoc.ReplicationEnabled=ReplicationEnabled$

currentDoc.ReplicateAtStart=ReplicateAtStart$

currentDoc.Enabled=Enabled$

Set dateRange = sessiondate.CreateDateRange()

Set dateRange_Hi = sessiondate.CreateDateRange()

Set dateRange.StartDateTime = dateTime1

Set dateRange.EndDateTime = dateTime2

Set dateRange_Hi.StartDateTime = dateTime1

Set dateRange_Hi.EndDateTime = dateTime2

Set sched1 = currentDoc.ReplaceItemValue( “Schedule”, dateRange )

currentDoc.Interval=Interval%

Set TheDay = currentDoc.ReplaceItemValue( “WeekDays”, TheWeekDays )

currentDoc.HiPriorityReplication=HiPriorityReplication$

currentDoc.Enabled_HI=Enabled_HI$

Set sched2 = currentDoc.ReplaceItemValue( “Schedule_HI”, dateRange_Hi )

currentDoc.Interval_HI=Interval_HI%

Set TheDay_Hi = currentDoc.ReplaceItemValue( “WeekDays_HI”, TheWeekDays_HI)

success = currentDoc.ComputeWithForm( False, False )

currentDoc.save True,True

Subject: Lotusscript:Change location doc to replicate : no solution ?

Hello,

I have exactly the same problem , every replication parameters in the Location document are OK (i made change with a button too), but no replication occurs, even after restart the Notes Client (6.5.2).

I can see :

If i open the replicator page and choose “Set Replication Schedule…” and then only click “OK” (without any change), i see the scheduled replication occurs…

very strange !!

anybody have a solution ??