SAP Knowledge Base Article - Public

2564438 - How to raise an error message if the association of one object is null?


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:



SAP SuccessFactors Employee Central (EC) - All Versions

Reproducing the Issue

  1. Go to manage data;
  2. Try to create the object without the mandatory association;
  3. See the error message appearing;


In order to make this error message treatment you only need to execute three steps as explained below:

  1. Create a message definition with the error message you want to show. This is done under Manage data>MessageDefinition.


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


  1. 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.


associations error message business rule , KBA , LOD-SF-EC , Employee Central , How To


SAP SuccessFactors Employee Central all versions