Skip to content

Scheduling#

Scheduling recalculates workbooks at the times you decide, so that your documents are ready when you open them in the morning and so that publications, subscriptions and alerts “after the recalculation” go out with fresh data.

Before you start#

  • You need Workbook administration to schedule the recalculation of a workbook and to see the Scheduling page. You also have to be able to open the workbook.
  • Recalculation groups and scheduled procedures are created by someone with System administration.

What a scheduled recalculation recalculates#

A scheduled recalculation calculates again the documents of the workbook that keep data: those that have “Keep data” checked in their properties (cubes, listings, charts and maps with a cube). Their data is stored and, when the document is opened, it is served at once without going back to the database.

  • Documents that do not keep data are not recalculated: nothing of their calculation would remain. If no document of the workbook keeps data, the recalculation finishes successfully and says so.
  • The recalculation does not open, lock or save the workbook: you can keep working with it at the same time.
  • Documents are calculated without asking whether they are heavy.

On whose behalf#

A scheduled task runs on behalf of whoever last saved it, with the privileges and universes that person has at the time it runs. Whoever changes it becomes its owner.

This has a practical consequence: the data a recalculation leaves is used when opening the document by those who have exactly the same privileges as the owner of the task. Everyone else recalculates the document when opening it, as always, with their own universes.

Important

If the owner of the task is removed or disabled, the task fails with a message that says so. For it to work again, another person with the necessary privileges has to open it and click Save: it will then run on their behalf.

What follows a recalculation#

When a scheduled recalculation finishes successfully:

  • if the workbook is published “after each scheduled recalculation”, a new version is published in the portal (see Publish a workbook);
  • the subscriptions “After each recalculation of the workbook” are sent (see Subscribe to a document);
  • the data alerts “After each recalculation” are evaluated (see Create a data alert).
What a recalculation sets off A schedule or Run now launches the workbook recalculation; if it ends well it leaves the kept data and at once sets off the portal publication, the subscriptions and the data alerts; if it fails, it sets off nothing and stays in the history as Error. yes no Schedule daily, weekly, monthly… Run now Workbook recalculation the documents that keep data, on behalf of the owner Does it end well? Kept data the documents open at once Portal publication if the workbook is published after each recalculation Subscriptions “After each workbook recalculation” Data alerts “After each recalculation” Nothing else stays in the history as Error
What a recalculation sets off A schedule or Run now launches the workbook recalculation; if it ends well it leaves the kept data and at once sets off the portal publication, the subscriptions and the data alerts; if it fails, it sets off nothing and stays in the history as Error. yes no Schedule daily, weekly, monthly… Run now Workbook recalculation the documents that keep data, on behalf of the owner Does it end well? Kept data the documents open at once Portal publication if the workbook is published after each recalculation Subscriptions “After each workbook recalculation” Data alerts “After each recalculation” Nothing else stays in the history as Error
What a recalculation sets off View full size View full size

If the recalculation fails, none of that is published or sent.

If the workbook exports its cubes and listings to files, they are written within the run itself, in a step after recalculating its documents (see File export). If a file fails, the run is marked as failed, but the workbook has been recalculated: it is published and its subscriptions and alerts are sent all the same.

Kinds of task#

Task What it does Who creates it
Workbook recalculation Recalculates the documents of a workbook that keep data. A workbook has at most one. Workbook administration, from the workbook.
Recalculation group Recalculates several workbooks at once, with retries, and can call a database procedure before and another after. System administration, from Scheduling.
Scheduled procedure Calls a stored procedure of the customer database. System administration, from Scheduling.

Groups and procedures are explained in the administration manual.

When nothing runs#

  • If the server license is not valid, no task is launched. Overdue ones run only once when it is valid again.
  • If the server was stopped at the time of a task, it runs only once when it is back, not once for each missed time.
  • If a task is still running when its turn comes again, that time is skipped and appears in the history as Not done.

Email notices#

The administrator can configure the server to send an email with the outcome of each run, or only of those that fail, to a list of addresses. Ask them if you want to receive them.

In this section#

See also#