Symptom
-
Custom validation rules defined on a specific object are not consistently triggered during certain workflow approval processes.
-
In some workflow approval steps, records that should fail validation are successfully submitted or approved without any validation errors.
-
The issue is intermittent and observed only during specific approval stages or user roles.
-
There is no error message or indication that the validation rule has been bypassed.
Environment
- SAP SuccessFactors HCM Suite
- Metadata Framework
Reproducing the Issue
-
Create a validation rule on the custom object "XYZ" to make a specific field mandatory.
-
Log in to the system as User A.
-
Navigate to Employee Profile and search for Test User B.
-
Open the custom MDF portlet associated with the object XYZ.
-
Select the relevant section and click Edit.
-
Leave the required field (defined in the validation rule) empty and click Submit.
-
Observe that the workflow is triggered successfully without enforcing the validation rule.
-
Proxy as the designated Approver.
-
Access the approval card and click Approve.
-
Observe that the approval is completed without any validation error message, despite the validation rule condition not being satisfied.
Cause
- After the workflow is triggered, the system performs a check to determine if a record already exists for the specified effective date. If a record is found for that date, the system bypasses the validation rule as per the current design.
- This is expected system behavior and occurs only when a record already exists for the given effective date.
Resolution
To execute the rules every time, please change the 'Rule Execution Criteria'
Please follow steps to assign the rule execution criteria:
- Go to Manage Data -> Object Configuration.
- Search for the object to assign the rule execution criteria.
- In the Rule Execution Criteria field select a desired criterion.
- Save Changes.
For more details refer SAP Help guide on Assigning Rule Execution Criteria for an MDF Object
See Also
Keywords
SAP Knowledge Base Article - Public