SAP Knowledge Base Article - Public

2374352 - Time Off: Employee receives a system error when requesting leave

Symptom

Employee receives a "System error" when applying for leave.

Environment

Employee Central, Time Off

Reproducing the Issue

  • Employee navigates to their Time Off Page
  • Enter leave details > press Submit > and a System Error appears:

leave error.png

Checks:

  • Their Time Account is open
  • They have the necessary balance on the account

Cause

Data Issue

There are Time Account "Postings" with the Accrual Period ID filled out, which were not created by an Accrual Calendar job, and are not of Posting Type "Recalculation" or "Accrual".
Period ID is only allowed for those posting types, and should only be present because they were created by an Accrual Calendar.

If you check the user's Time Account in this case via Manage Data / Manage Time Off Structures, you will see they are using Ad Hoc Entitlement postings. Select Details beside the posting, and you will see there is a value maintained for the Period ID field. If you do not see the Period ID field, you will need to enable the field as view only -:

  1. Navigate to Admin Center > Configure Object Definitions
  2. Search for the "Time Account Detail" object
  3. Take Action > Make Correction > click "Details" for the field "accrualPeriodId"
  4. Set the "Visibility" to "View Only"
  5. Click Done. Click Save

From b1611 onwards, if you try to do this manually via Manage Data > Time Account > select a Posting that is not of posting type Recalculation or Accrual, and fill in the Period ID and save, a validation error will appear:

Period ID.png

 

This message indicates that there is a data issue. There are a couple of potential scenario's that could have lead to this -:

Scenario 1) One of the Postings has a Period ID when it should not - likey created when the Posting was manually created via UI or Import where the Period ID field was "Editable" at that point in time

  • EXAMPLE: Someone created a Manual Adjustment, or other Posting Type, and they manually filled in the Period ID. This was possible in previous versions, and could even have happend during implementation.
  • SOLUTION: Remove the "Period ID" from all Time Account Details records that are not of type "ACCRUAL" or "RECALCULATION"

OR

Scenario 2) You have a duplicate accrual somewhere. Potentially caused by a user deleting Postings manually from the Time Account

  • EXAMPLE: The accrual for an employee happed as expected, and then later on an Accrual Calendar was run to Recalculate the Accruals. After which an admin deleted one of the Accrual or Reclaulcation Postings.
  • SOLUTION:  Delete the Accrual & recalculations for that particular period, and then run the Accrual Calendar Job again for that period (without Recalculation enabled) which will post back the deleted accruals

Recommendation:

Only set the "accrualPeriodId" field on the Time Account Detail object configuration to "Editable" if you are perform corrections mentioned above. Otherwise this field should be kept "Not Visible" or "View Only". You can follow the same steps mentioned above to change the Visibility of this field.

 

Resolution

Export all Time Accounts with "Include Dependencies" and "and open the csv file named Time Account - Time Account Detail.
For any postings where the Period ID is filled out and posting type is not of Accrual or Recalculation, remove / clear the value and re import.

If the Period ID column is not showing in the export file, then go to Configure Object Definition > ObjectTime Account Detail.
Select the Accrual Period ID (accrualPeriodId), set it to visible ,and export the Time Accounts again.

Note: Entitlement and Ad Hoc Entitlement should only be used for those Time Accounts, who use the corresponding process

Keywords

System Error Leave Ad hoc entitlement Time Off Period ID , KBA , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors Employee Central all versions