Symptom
You have observed that Take Rules are triggering while cancelling a leave request.
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 Employee Central
- SAP SuccessFactors HXM Suite
Reproducing the Issue
1. Navigate to 'Time off' Page of an employee
2. Click on Cancel request
3. The Take Rule (i.e Raise Error Message) assigned to the Time Type is triggered.
Cause
This is expected behavior. Take rules are also triggered when you cancel a leave.
Resolution
You can add an additional condition in the rule, such as “IF Employee Time.Approval Status IS NOT EQUAL TO Cancelled” to avoid this type of behavior.
Keywords
Not able to cancel Leave request, Take Rule, Leave Request, Leave, Time off, Cancel Request, Error while cancelling leave , KBA , LOD-SF-EC-TIM-RUL , TAT Rules, Validation & Take rules , LOD-SF-EC , Employee Central , LOD-SF-EC-TIM , Time Off , How To