Hi all,
I am trying to create a replica of the Personal Address Book onto a server.
Error : 5646
I am struggling to troubleshoot this error message. Any ideas?
Option Public
Option Declare
'Declarations*
'STATUS LNPUBLIC ReplicateWithServer(char far *PortName,char far *ServerName,WORD Options,WORD NumFiles,const char far *FileList,REPLSERVSTATS far *retStats);
%REM
#define REPL_OPTION_RCV_NOTES 0x00000001 /* Receive notes from server (pull) */
#define REPL_OPTION_SEND_NOTES 0x00000002 /* Send notes to server (push) */
#define REPL_OPTION_ALL_DBS 0x00000004 /* Replicate all database files */
#define REPL_OPTION_CLOSE_SESS 0x00000040 /* Close sessions when done */
#define REPL_OPTION_ALL_NTFS 0x00000400 /* Replicate NTFs as well */
#define REPL_OPTION_PRI_LOW 0x00000000 /* Low, Medium, & High priority databases*/
#define REPL_OPTION_PRI_MED 0x00004000 /* Medium & High priority databases only*/
#define REPL_OPTION_PRI_HI 0x00008000 /* High priority databases only*/
%END REM
'LotusScript code**
Public Const REPL_OPTION_RCV_NOTES& = &H00000001
Public Const REPL_OPTION_SEND_NOTES& = &H00000002
Type REPLSERVSTATS
Pull As Variant
Push As Variant
StubsInitialized As Long
TotalUnreadExchanges As Long
NumberErrors As Long
LastError As Integer
End Type
Type pREPLSERVSTATS
Pull As REPLSERVSTATS
Push As REPLSERVSTATS
End Type
Declare Function W32_ReplicateWithServer Lib “nnotes.dll” Alias “ReplicateWithServer” _
(Byval PortName As Lmbcs String, _
Byval ServerName As Lmbcs String, _
Byval Options As Integer, _
Byval NumFiles As Integer, _
Byval FileList As String,_
retStats As pREPLSERVSTATS) As Integer
Dim Result As Long
Dim PortName As String
Dim ServerName As String
Dim Options As Integer
Dim NumFiles As Integer
Dim FileList As String
Dim retStats As Long
Dim repStats As pREPLSERVSTATS
Sub Initialize
PortName = "TCPIP"
ServerName = "CN=popper/OU=servers/OU=london/O=glen"
Options = 2
'REPL_OPTION_RCV_NOTES Or REPL_OPTION_SEND_NOTES
FileList = "bbnabs\pthomas\names.nsf"
result = W32_ReplicateWithServer( PortName,ServerName, Options,1,FileList, repStats)
If (result <> False) Then
Msgbox "Error: " & result
End If
End Sub
Help !!
Paul