SAP Knowledge Base Article - Public

2540144 - Duplicate Leaves Posted

Symptom

Duplicate leaves are posted for employees.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP Successfactors Employe Central - Time Off

Reproducing the Issue

  •  Navigate to Admininster Time of the employee. There are duplicate leaves posted.

Administer Time.jpg

  • This can be also seen in the employee's Time off page

8.jpg

Cause

 The can be caused due to the following reasons:

  • The Pending Data is set to 'Yes' in the object definition 'Employee Time'.
  • Raise Error message rules are assigned to the object definition of 'Employee Time'.
  • Setting standard employee time fields via Employee Time Save rule or Take Rule (Absence Validation).
  • Complex Workflow onsave rule on Employee Time Object checking job info fields for users. This adds to the system processing time of the rule and may affect the duplication validation process.
  • The leave is applied simultaneously from 2 different browser/tabs (This should no longer occur for leaves after improvements in the dupliciation validations with b2005).
  • This has also happend during some releases where system allowed user to click submit button multiple times which is already fixed(1811-Mob , 1902 Desk)
  • In the new Time Off Fiori ESS UI, this issue occurred if the New Absence Submit button is clicked multiple times in a short period. The issue was fixed in two parts in 1905 and 1908 releases. After 1908 release the issue should occur at all in the new Time Off ESS UI.

Resolution

The Pending Data is set to 'Yes' in the object definition 'Employee Time'

  • Navigate to Admin Center -> Configure Object Definition -> Employee time.
  • Take Action -> Make Correction -> Set 'Pending Data' to 'No'.

Raise Error message rules are assigned to the object definition of 'Employee Time'

  • Navigate to Admin Center -> Configure Object Definition -> Employee time.
  • Remove the rules that are used to raise an error message.
  • Assign these rules to the relevant Time Type.
  • In order to remove the duplication, please navigate to the Time Account and manually/via import cancel/delete the duplicate Employee Time.

Setting Standard Employee Time Fields via Employee Time Save rule or Take Rule 

  • Navigate to the affected Time Type via Manage Data
  • View Takes Rules
  • Remove any rules which use Set statements for standard fields such as deduction quanity and number of days.

As stated in the guide:

"We don't recommend modifying or setting quantity related fields, such as Deduction Quantity, Quantity in Hours, and Quantity in Days. These fields are calculated by the system and their calculation is based on the time type configuration."

Complex Workflow onsave rule

  • Navigate to Configure Object Definition > Employee Time > Save Rule
  • Notice there are conditions which are checking several job information fields
  • This issue with processing time of save rules affecting duplication validation will be corrected with the b2105 release. Until then if you experience the issue please cancel / delete the duplicate leaves
  • We have a check tool check called "There are no active employee time records that are duplicated" with ID "EmployeeTimeDuplicateRecords" which can be run regularly to ensure any issues are corrected.

NOTE: We have made some significant improvements in the duplication validations with b2005 in relation to the mentioned causes.

If you experience any issue with duplicate leaves on same date please contact support and include the following information:

  • Support access & company ID affected.
  • Where was the leave submitted from? (Example: Time Off UI / API / Import/ Mobile)
  • Is Flexible Requesting enabled? (If so only validation is that leaves do not go over 24 hours in one day)
  • User example where duplicate leaves exist

Support: See internal memo

See Also

2507209 - Imported Employee Times are Showing the Same Leaves Multiple Times on the Workbench / MTO Page

Time Off Guide, Section Employee Time Restrictions

Keywords

Time off,Duplicate Employee Time, Leave Request,Raise Error Message,TIM-11816,TIM-10166,TIM-8415,TIM-9230,TIM-18464 , KBA , LOD-SF-EC-TIM-ABS , Absence error's - Calculations, Deductions, TT&ET , LOD-SF-EC-TIM-TA , Time Accounts (TAT, TA, TAD) , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HXM Core all versions