SAP Knowledge Base Article - Public

3649040 - Custom MDF validation rule not triggered during Workflow approval process

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

  1. Create a validation rule on the custom object "XYZ" to make a specific field mandatory.

  2. Log in to the system as User A.

  3. Navigate to Employee Profile and search for Test User B.

  4. Open the custom MDF portlet associated with the object XYZ.

  5. Select the relevant section and click Edit.

  6. Leave the required field (defined in the validation rule) empty and click Submit.

  7. Observe that the workflow is triggered successfully without enforcing the validation rule.

  8. Proxy as the designated Approver.

  9. Access the approval card and click Approve.

  10. 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: 

  1. Go to Manage Data -> Object Configuration.
  2. Search for the object to assign the rule execution criteria.
  3. In the Rule Execution Criteria field select a desired criterion.
  4. Save Changes.

For more details refer SAP Help guide on Assigning Rule Execution Criteria for an MDF Object

See Also

3231949 - Business rule execution in MDF workflow approvals

Attributes for MDF Object Configuration

Assigning Rule Execution Criteria for an MDF Object

Keywords

Validation rule, MDF object rule, Configure business rule, Workflow Trigger, Rule Execution Criteria, object definition, manage data, rule execution criteria, SuccessFactors
, KBA , LOD-SF-MDF-WFL , Custom Object based Workflows , Problem

Product

SAP SuccessFactors HCM Core 2505