Symptom
- Field is not populated in MDF object based on business rule via Import
- Does Import Data trigger the business rules configured on MDF object?
- How to get business rules triggered when data is imported via SFTP in custom MDF objects?
- How to populate a field value based on data imported in an MDF object?
- UI rules not triggered in MDF Import Data
Environment
- SAP SuccessFactors HCM Suite
- Metadata Framework (MDF)
Reproducing the Issue
- Configure a business rule and set it on the object level.
OR
Configure a UI rule and set it on the custom UI. - Import the data for this object.
- The rule does not reach the expected result. Field is not populated as per rule written.
NOTE: It is always better and recommeneded to check the rule’s operation by putting Rule trace. See the KBA 2257064 to learn how to do that.
Cause
There are few limitations when it comes to the operation of business rules via MDF Import.
Resolution
Import Data does not trigger an onChange business rule (rule configured on the field level).
Import Data does not trigger UI Rules.
However, the Save, Initialize and Validate rules should be triggered and executed when the data is Imported.
Post b2005 release: Validate rules are executed during both validate and import operations. Validate operation now triggers the validate rules associated with the MDF objects and returns errors found in the data.
NOTE: Raise message function even if configured using the Save rule is not supported with Import Data.
Keywords
MDF, Metadata Framework, Custom MDF object, Import, Business rule, onSave, onChange, MDF-32144, b2005, rule behavior on import, validate, raise message, UI rule , KBA , LOD-SF-MDF-RUL , Custom Oject based Business Rules , LOD-SF-MDF-IMP , Import and Export Issues , How To