Skip to content
+1-888-319-3663

EONE BLOG

Tech Tuesday: How to Restart the SmartConnect Scheduling Service Using a Batch File


Have you ever wanted to restart your SmartConnect scheduling service without having to manually go into services and restarting it? This week’s article will show you how to create scheduled task that runs a batch file to restart the SmartConnect scheduling service.

On the machine where the SmartConnect schedule service is running, create a folder on the machine in the root of the c:\ drive and name it “batch”. Download the restart.txt file and copy it into this folder. Rename the file from restart.txt to restart.bat, the folder structure should look like this when you are done.

Create a scheduled task by opening the Windows Task Scheduler in Administrative tools and clicking on create task.

 

Give the task a name, I called mine “restart scheduler”. Tell it to run under an administrative user, and use the same user you have configured on the actual SmartConnect scheduling service. Make sure you select the options to “Run whether user is logged on or not”, and “Run with highest privileges”. Your General window should look like this when you are done.

Next go to the Triggers tab and click on New. Pick a time to restart it, I picked 8:00 am, but you can pick any time when maps are not likely to be running. So for instance, if your scheduled maps are running from 8:00 am to 5:00 pm, you might want to restart it at say 7:00 am before the maps start running for the day, or 6:00 pm after the maps are done for the day. Make sure the task is enabled in this screen.

 

Next go to the Actions tab, and click on New. Make sure the Action is set to “Start a program” and you have the full path to the batch file. You also need to have the path filled in on the “Start in” field

 

Next go to the Conditions tab and make the window look like this:

Next go to the Settings tab and make the settings window look like this:

 

After creating the task, you will want to test it to make sure it will run. In the tasks window, right click on it and pick “Run” and the task will run immediately. After it runs, you should get a message that says “The operation completed successfully. (0x0)” as shown here.

 

Now your SmartConnect scheduling service will restart on a schedule without manual intervention.

Leave a Comment





RECENT POSTS


Happy Thanksgiving from eOne! - US Office Closed November 25 & 26
Popdock: What is your Locale?
Q4 2021 Partner All Hands Call - Recording Now Available
An Announcement regarding SmartList Builder and SmartView from eOne Solutions
Join us for the Q4 2021 Partner All Hands Call!

POPULAR POSTS


2016 SmartConnect Integration Bootcamps
Tech Tues: Automatically refreshing Pivot Tables in Excel Refreshable Reports
Happy Thanksgiving from the eOne team!
2017 SmartConnect Integration Bootcamps
New Releases of Extender and SmartList Builder

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.