Sage 100: Run a Visual Integrator Job in a Cycle
Want a Sage 100 Visual Integrator job to run in a cycle on its own? Build the batch file from Sage KB 19387, then let Windows Task Scheduler run it on your schedule.
You have a Visual Integrator import or export job that somebody has to launch by hand, over and over. You want it on a cycle — running itself every night, every hour, every few minutes. Visual Integrator has no built-in scheduler, so the cycle is assembled from two documented pieces: a batch file that runs the VI job from outside Sage 100 (Sage KB 19387), and Windows Task Scheduler to fire that batch file on your recurrence. Task Scheduler is already on the machine; this route is free.
The fix
Part 1 — Make the job runnable from a batch file (Sage 100 Advanced / Premium)
- Collect the job's two names. Open Import Job Maintenance or Export Job Maintenance, note the Job Name, then open the job and note the Compiled File Name in the upper-right corner — the VI program name, in the form VIW### (the KB's example import is VIWI00).
- Register the job with the Application Server. On the Sage 100 server, open Application Server Configuration (Start → Sage → Sage 100 → Application Server Configuration), go to the Apps tab, and click New.
- Fill in the app entry. App Name: the Job Name, exactly — the batch file calls the job by this name and a mismatch fails silently. Server INI:
..\Launcher\Sota.ini. Lead Program:StartUp.M4P. ProvideX EXE: leave the default. Extra CMD Options and Arguments: leave blank. Start-In Directory: the..\MAS90\Homepath as the server sees it. Init Window: Hidden. In the Options section, check only "Allow Client Arguments." - Save and restart. Click OK, then Apply. Every user must exit Sage 100 and the Application Server (or its service) must be restarted before the new app entry works — applying the settings disconnects all sessions, so do this step in a quiet moment. The Application Server detour is not optional on Advanced/Premium: running VI jobs externally through it keeps the workstation's ODBC path to the server intact, which running them directly does not.
-
Write the batch file — three lines:
C: CD "C:\Sage\Sage 100 Workstation\MAS90\Home\" "C:\Sage\Sage 100 Workstation\MAS90\Home\pvxwin32.exe" -hd ../launcher/sota.ini *Client -ARG "SERVER1" "10000" "SOINVOICEIMP" -ARG=DIRECT UION admin password ABC VIWI00 AUTOReading the third line: your server name and port, then the App Name from step 3; then the job-run block — no space after
-ARG=— DIRECT UION, a Sage 100 user logon that has rights to the job, its password, the company code, the compiled VI program name from step 1, and AUTO to run silently (use DISPLAY instead while you are testing, so you can watch the job window). Save the file with a .bat extension. - Test it. Double-click the batch file. The job should run start to finish with nobody interactively logged into Sage 100.
Part 2 — Put the batch file on the cycle
- Open Windows Task Scheduler and create a task: the action runs your .bat file; the trigger is your cycle — daily at a set time, or repeating every hour / every few minutes for near-continuous imports. Run it under an account that can reach the Sage 100 server share, and decide deliberately whether it should run when nobody is logged on (for unattended cycles, it must).
- The batch file contains a Sage 100 password in plain text. Store it where only administrators can read it, and use a dedicated Sage user for scheduled jobs so its activity is recognisable in the logs.
Sage 100 Standard
KB 19387 carries a separate section for Sage 100 Standard (and older MAS versions), which has no Application Server — its route starts from the job existing as a task (in Import Job Maintenance, the Menu button adds the job so it can be launched as one). The cycle half is identical: Task Scheduler fires the launcher on your trigger. Follow the KB's Standard section for the exact command line for your version rather than borrowing the Advanced/Premium line above — the editions' launch mechanics genuinely differ.
Options and approaches
- Free and built-in (above): KB 19387 batch file + Task Scheduler. Full control, no licence cost, and the method Sage documents.
- Jeff-Net Report Runner ($199, per the original discussion): a third-party scheduler front-end that can run VI jobs (not only Crystal Reports) with parameters and more control than a raw batch file — worth it when you have many jobs and want managed logging.
- Sage Alerts: sold through your Sage partner in several editions; the automation route if you also want event-driven triggers and notifications around the imports, rather than a pure clock cycle.
What doesn't work
- Guessing the App Name. The name in Application Server Configuration and the name in the batch file must match exactly; "close enough" produces a job that simply never starts.
- Skipping the Application Server restart. The new app entry does not exist for the runtime until the service restarts with all users out — and applying it disconnects everyone, so it cannot be slipped in mid-day unnoticed.
- A space after
-ARG=. The KB calls this out explicitly; the argument block is-ARG=DIRECT UION …as one token. - Scheduling before testing. If the double-click test does not run the job clean, Task Scheduler will faithfully repeat the failure on schedule.
Affected versions
The Application Server route is documented for Sage 100 Advanced and Premium, and for legacy MAS 200 version 4.40.0.4 and higher. Sage 100 Standard follows the KB's separate section (above). Task Scheduler recurrence is a Windows feature and does not vary by Sage version.
Prevention / best practice
- Give every scheduled job its own batch file and its own App Name, so one job's change never breaks another's cycle.
- After each run, have the task's history (Task Scheduler keeps it) checked as part of your morning routine for the first week — a silent import that stops importing is worse than a loud one.
- Re-test the batch file after every Sage 100 upgrade or server move: the server name, port, paths and compiled job name are all baked into it.
Related help
- Visual Integrator Import Issue
- VI Import into AP Manual Check Entry — Suppress Nonexistent Invoices
- Include a Carriage Return in a Visual Integrator Job
- Visual Integrator Sales Order Import
- Run Task Scheduler While Not Logged In
- Build Search Index and Task Scheduler Hanging Session
Still stuck? Send us a screenshot of the error, we will diagnose it for free.
Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.