Configuring Generate Accrual Balances batch

As an Administrator, you can schedule the Generate Accrual Balances batch to generate Accrual Balance records for reporting.

Note

Before configuring the Generate Accrual Balances batch, Sage People recommends you review all the Absence Accrual Rules in your org, and set the value of Accrual Record Years to 0 for any rules where you do not need accrual balances. For more information see Configuring the number of accrual balance years.

  1. In Salesforce Classic Experience, go to Setup > App Setup > Installed Packages.

    OR

    In Salesforce Lightning Experience, go to Setup > Platform Tools > AppsPackaging > Installed Packages.

  2. Select Configure next to the Time package.

    Sage People displays the Time Configure page:

    Screenshot: The Time Configure page with the Generate Accrual Balances section

  3. Go to the Generate Accrual Balances section, and for Batch Size enter the number of Team Members to process in a single transaction. The recommended batch size is 1.

    A larger number of Team Members in a single transaction can give a small increase in processing speed but also carries a higher risk of breaching Salesforce Governor Limits, causing the job to fail. The maximum number of Team Members per batch is 100. Job execution is also affected by the complexity of the Accrual Rule—complex rules with many options result in slower execution.

  4. Select:

    • The Scheduled Time picklist and choose the time when you want the batch to start. Then select Save.
    • The Run Now button to start the batch immediately.

    When the batch completes, you receive an email to indicate its success or any errors encountered. If there are errors, the batch generates accrual balances for all Team Members with valid data. The completion email indicates the Salesforce unique ID of each Team Member with an error and for each Team Member listed:

    • The Salesforce unique ID of the Absence Accrual Rule associated with the error.
    • The error type.
    • The error message.

    If the batch job cannot retrieve Absence Accrual Rules from the Employment Record, the error details indicate this.

    When the batch is running, you can check the progress on the Apex Jobs page: Setup > Platform Tools > Environments > Jobs > Apex Jobs.

    The batch name is Persistence_Service.