It’s amazing how many times I run across a situation where the Main Sync (and/or Secondary Sync Servers) are running under the (Windows)Task Scheduler. At first, this does not seem to be an issue. However, on closer examination there’s a high degree of probability the (WTS) job is not passing in the “correct” sequence of “switches” (options).
The way this usually rears its ugly head is:
A – the job runs too long and another one tries to start up
B – the job fails to start for some unknown reason
C – the job “hangs” for some unknown reason(s)
The Saleslogix team solved this problem a LONG time ago with the introduction of “Sync As A Service”. Basically it is all “built-in” and the admin interface is thru the (WG)Admin application (click on “System” in the NavBar and then on the Sync Automation Services tab) and all you need to know to get started is in the HELP file (under Synchronization -> Running Synchronization from a Service).
All this is fine for the MAIN DB.. BUT what about the Remote Office you ask.. Well, as of the (current) latest release (7.5.4.xxxx) there is no automation for Sync on the RO…. BUT you can “fake it” via Windows Task Scheduler. Here’s info on how to do this from my KB – NOTE – DISCLAIMER – The following procedure may not be fit for any useful purpose – use at YOUR OWN RISK! It is an EXAMPLE of one I use at customer sites:
Using the Windows Scheduler you can schedule a Remote Office (or even a Remote User) to have synchronization run automatically.
Here is how:
"C:\Program Files\SalesLogix\SyncClient.exe" /B "SLXRemote" /E /Q /L /G /Y /R /C /A /S /TD /TU
"C:\Documents and Settings\All Users\Start Menu\Programs\SalesLogix"
domain\administrator (NOTE: This is how I do it.. you may want to use another user)
start time: 05:15
Repeat Task every 15 minutes
Until 24 hours
Schedule Task Daily Every 1 days
Stop task if it runs for 2 hours 0 minutes
Don't start task if the computer is running on batteries
Stop the task if battery mode begins.
Administrators Full control
NOTE: Running Synch as a Service using the OOTB (Out Of The Box) approach also has additional benefits:
A – You can use the Synch Monitor Tool to see what it is doing. If it is NOT on your (LAN connected) PC than simply copy it (SLXMonitorConsole.exe w/the help file SLXMonitor.chm) to your system – to the SalesLogix App Directory, make a desktop shortcut and then configure (see Help FIle).
B – When it runs as a service it will insert a record in the SYNCJOBHISTORY table.
There is a LOT more to say about synch.. but let us leave it for another day – Happy Synching!