SAP Knowledge Base Article - Public

3719805 - Validate rule triggers twice consecutively for the Time Recording / Employee Time Sheet Entry object

Symptom

  • A validate rule of the Time Recording / Employee Time Sheet Entry object triggers twice consecutively.
  • custom field validation failed unexpectedly in the validate rule

Environment

  • SAP SuccessFactors Employee Central - Time Sheet 
  • SAP SuccessFactors Time Tracking

Reproducing the Issue

  1. Configure a validate rule for the object Time Recording or Employee Time Sheet Entry to raise error when the custom field is empty.
  2. Save attendance in the time sheet UI with custom field value. 
  3. Observe the business rule triggering twice consecutively.
  4. Note that the first time rule behaves correctly to retrieve the custom field value, but the second trigger identifies custom field as NULL and displays the error message.

Cause

Scheduled break or dynamic break is generated with the attendance and the custom field of break is not filled. 

Resolution

Specify Employee Time Sheet Entry. Employee Time. Time Type or Time Recording. Time Type in the business rule to raise error only for attendance instead of break.

Keywords

business rule, time recording object, triggers twice, error message, custom fields, null values, attendance saving, time sheet, ttr, tms, time type classification, break, validation , KBA , LOD-SF-EC-TMS , Time Sheet , LOD-SF-TTR-TMS , Time Sheet , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors Time Tracking all versions