Symptom
You have a MDF objects and you have created an association.
You then made this association required but you have noticed that the error message triggered is not clear do the user and you want to set a user friendly error message.
Error without treatment:
Error with treatment:
Environment
SAP SuccessFactors Employee Central (EC) - All Versions
Reproducing the Issue
- Go to manage data;
- Try to create the object without the mandatory association;
- See the error message appearing;
Resolution
In order to make this error message treatment you only need to execute three steps as explained below:
- Create a message definition with the error message you want to show. This is done under Manage data>MessageDefinition.
- After creating the message you just need to create a rule as the example below for your object. Let's say you want to trigger the message when creating a Department, then the rule must have base object Department:
- After that you need to add this rule in the object as Validate Rule:
After you perform those three configuration steps, you'll have an user friendly error message for missing associations.
Keywords
associations error message business rule , KBA , LOD-SF-EC , Employee Central , How To