Skip to main content

Messages Maintenance

The Messages Maintenance window is a tool that rebuilds the scheduled jobs that send the messages. Use it after you restore a backup. The scheduled jobs live in SQL Server Agent on the server, not in the company file, so they do not come back with the backup. The steps are in Reschedule messages.

Opening the window​

  • From the ribbon: Systems > Messages > Tools > Reschedule. Open the menu of the Tools button in the Messages group and click the command.
  • The command appears when your licence includes the messaging system.
  • You need the permission Reschedule on the Operations page of Users Management. It is one check box.

The window title is "Messages Maintenance", and the header at the top is "Rebuild the Schedule". The close button in the title bar is disabled. You leave with Cancel.

Items in the window​

ItemWhat it does
The explanation"The purpose of this maintenance is rescheduling messages sending process after retrieving the backup".
The instruction"Press " start " to begin rescheduling process.".
StartRebuilds the scheduled jobs as described in What the maintenance does. The window stays open when it ends, so you can press it again.
CancelAsks: "Are you sure you want to exit maintenance process?". Yes closes the window and No keeps you in it.

What the maintenance does​

Start runs a procedure in the database. It works on the scheduled jobs that the program made for the messages of this file. Their names start with "[Ameen NS SJ]" and they belong to the current database. It does not touch other jobs.

  1. It deletes all of these jobs: the daily job that Create made in Messages Settings, the job of each Accounts Balances message, and the jobs of the special occasions of the type Scheduled Info.
  2. It creates again a job for each saved accounts balances message, with its saved schedule type, day and time, and the same name.
  3. It creates the daily job named "Date Notification" if Status in Messages Settings is Running, at the saved hour and minute. This job checks birthdays, material expiry, invoice maturity dates, commercial paper maturity dates and the due payment date in orders. It does not include the check of Congratulation dates that the Create button adds.

Each job it creates runs between the first date and the last date of the current period of the file.

This procedure does not recreate the jobs of the special occasions of the type Scheduled Info, and it does not add the congratulation check. To bring them back, press Create in Messages Settings for the daily job with all its checks. Then open each Scheduled Info message in Special Occasions and press OK.

The procedure does not read the messages themselves, and it does not change their definitions.

Messages​

MessageWhy it appearsWhat to do
Are you sure you want to exit maintenance process?You pressed Cancel.Yes to leave, No to stay.
The operation is completed successfully.The procedure ended after Start.Close the message, then see Reschedule messages.
An error has occurred while rebuilding the scheduleThe server refused to run the procedure, for example when the SQL Server account that the program uses has no permission to manage scheduled jobs.Ask the server administrator for the permission, then press Start again.

This page applies to alameen ERP 10, version 10.1.79.764.