Review scheduled task results
Review the results of scheduled tasks to make sure they ran at their times, and to find which step failed and when. You use four screens: the Current Tasks list, the Execution Log report, the Task Details report and the Scheduled Tasks Errors report.
Before you begin
- Open the company file. The program shows the tasks of the open file only.
- You need the permission Schedule to open the window, Scheduled tasks - Preview execution log for the Execution Log button, and Scheduled tasks - Preview task details for the Task Details item (Current Tasks).
- The screens show what SQL Server Agent keeps on the server about each run. They do not show the text of the error that appeared in a failed step.
Steps
- Click File, then Tools, then Schedule.
- Click Refresh to read the list again. The list does not update itself.
- Look at the Last Run Status column for each task. Succeeded with a date and time means the last step of the last run ended well. It can show Succeeded although an earlier step failed, if that step did not have Stop the process when it fails; check the Execution Log. Failed means it failed. In process means the task is running now. Unknown alone means it has never run. The meaning of each status is in Current Tasks.
- Select the task you want to check and click Execution Log. The Execution Log report opens.
- Find the row of the date you care about. The Status column shows the result of the run. Expand the row to see its steps: the step whose status is Failed is the one that made the run fail.
- Look in the grid for the rows Modify, Disable, Enable and Suspend. The user name is in brackets in the Name column. One of these rows may explain why the result of the task changed.
- To check what the task does, close the report. Right-click the task in the list and choose Task Details. Task Details shows the steps and their options.
- To review all the tasks that need attention at once, open the notification of the group Scheduled Tasks Errors and click View, or add the tile Job Scheduling Errors Tile to the desktop. Scheduled Tasks Errors lists the tasks that are disabled, failed, canceled or not executed. Right-click and choose Current Tasks to return to the list.
- After you fix the cause, choose Run from the task menu to test it, then Refresh until you see Succeeded.
Result
You know for each task whether it ran, when the last run was, which step failed, and who modified or disabled it. These screens change nothing in the tasks.
If something goes wrong
| Situation | Why it appears | What to do |
|---|---|---|
| A task shows Unknown after its time | The first time has not come yet, or SQL Server Agent is stopped, or the server was off. | Check the note at the top of the window and ask for the service to be started. The program does not make up for a time that was missed. |
| No row in Execution Log for the night you expect | The task is disabled (Permanently Disabled), or Suspend skipped it, or To Date passed, or the server was off then. | Look at the change rows in the log and at the end date in the schedule. |
| The Name cell is empty on a step row | The step type is Reprice Manufacturing Operations Invoices, Regenerate Manufacturing Operations Invoices, Empty the tables that contain temporary results or Regenerate Cost Entries, or the step is repeated. | Rely on Status, Time and the order of the steps. |
| A task shows in Scheduled Tasks Errors as Not executed although it runs | The task was modified and has not run yet, or a step failed and the task went on. | Run the task once or wait for its next run, and check Stop the process when it fails. |
| You want the text of the error | The program does not show the error text of a step. | Ask the SQL Server administrator to read the task history on the server. |
| Earlier tasks are missing from the list | The list shows the tasks of the current file, by its database name. | Open the file the tasks were created in. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.