Troubleshooting automated mode and scheduled tasks issues

Should your scheduled imports or reports suddenly fail to start, please check the following conditions:

A. The scheduled task starts:

If the task actually starts, it will launch Promodag Reports that will generate a new trace file in the application \Logs folder for that batch session. The path to the \Logs folder is displayed in the General tab of Tools > Options and it is %PUBLIC%\Documents\Promodag\Reports\10\Logs by default.
If no new trace file can be found in the \Logs folder, open Task Scheduler and verify that:
  • The password of the user account set to start the task is correct. Has it been recently reset?
  • The following parameters are selected in the General tab:
    • 'Run whether user is logged on or not',
    • 'Run with highest privileges',
    • 'Configure for Windows Vista, Windows Server 2008'.
  • The application started by the scheduled task is the version of Promodag Reports you use. For example, if you use version 10 and you see that the application started by Task Scheduler is Repex.exe in \Reports9, it means that it is an old v.9 scheduled task and that it does not start because you uninstalled that older version.
  • The command line parameter is /BatchFile=<batch file name>.prb.
Test the scheduled task by manually starting it (right-click, Run).

B. The batch file starts:

If the task actually started, but the batch file does not run, verify that:
  1. The user account set to run the scheduled task is the same as the one used to run Promodag Reports in interactive mode. For example, if you normally import message tracking files when logged as DOMAIN\Admin1, do not set your scheduled task to run as DOMAIN\Admin2 (see Known issues below). This is the number one source for automation-related incidents.
  2. The batch file (*.prb) that fails to run is located in the \Batches folder. The path to this folder is displayed in the General tab of Tools > Options. and it is %PUBLIC%\Documents\Promodag\Reports\10\Batches by default.
  3. The batch file that fails to run can be started in command line mode. For the correct syntax, see the embedded help file and search for 'command line'. 

Known issues:

If you are using an Access database and that it is located on a network resource, use a UNC path rather than a mapped path.
For example, if you should connect to a database called PROMODAG.mdb, open it, using the File > Open Database option, as \\SERVER\Share\PROMODAG.mdb rather that D:\Share\PROMODAG.mdb.
A mapped path may not be accessible when the batch job starts (because you are using a different account for which it may stand for another network resource...) while the UNC path always will.

See also:
Five Q & A about automating Promodag Reports
How to confirm that scheduled operations completed successfully
How to receive an email notification of warnings and errors when automating Promodag Reports

Add Feedback