To control when the connector is running is it put in place two scheduled tasks on the server.  

By setting up two task managers on the Sage300 server which stops the service when it shouldn't run and restart when it should run.  This task can run daily and will ensure the connector scheduled sync is not taking place during the day. 

Instructions if needed on how to set up a scheduled task on your server.

Optional - Create a Windows Task Scheduler Task to Automatically Start the StratusVue API.Client.Service Daily

 

  • From Start Menu > Search Programs and Files, enter “Task Scheduler” and select Task Scheduler.
  • From the Action Menu > select [Create Basic Task].
  • Enter a name for the Basic Task, e.g., “StratusVue Connector Service Daily Restart.
  • Enter a more detailed description, if needed.
  • Click [Next].
  • Make sure “Daily” is selected.
  • Click [Next].
  • Set the task to start at 5:50:00 AM (or another time early in the morning). Set minutes before the hour, as the connector will start running at the top of the hour)
  • Click [Next].
  • Make sure “Start a program” is selected.
  • Click [Next].
  • From Start Menu > Search Programs and Files, enter “Notepad” and select Notepad.

a.    Enter “net stop ‘StratusVue.API.Client.Service’” and “net start ‘StratusVue.API.Client.Service’” on two separate lines.

b.    Save the file to the computer with the name “StratusVue Restart” and a “.bat” extension.

c.    Exit Notepad.

  • Switch back to Task Scheduler.  Click on [Browse] and navigate to the batch file you just created. Select [Open].
  • Click [Next].
  • Check the box “Open the Properties dialog for this task when I click Finish.”
  • Click [Finish].
  • On the General tab: 

a.    select “Run whether user is logged on or not”

b.    select “Run with highest privileges”

c.    click on Settings tab

  • On the Settings tab: 

a.    select “Allow task to be run on demand”.

b.    select “Run task as soon as possible after a scheduled start is missed”.

c.    select “If the task fails, restart every minute”.

d.    select “Stop the task if it runs longer than 3 days”.

e.    select “if the running task does not end when requested, force it to stop”.

f.    deselect “If the task is not scheduled to run again, delete it after”.

  • Click [OK].
  • Click on “Task Scheduler Library” in the navigation tree.
  • Select the Task you just created, e.g., “StratusVue Connector Service Daily Restart.”
  • Right mouse click and select “Run.”
  • Click on the History tab for the task and confirm the task executed.
  • Exit the Task Scheduler.