SAP Knowledge Base Article - Public

2705305 - Error message is being raised in work permit even when the date is correct

Symptom

**All the images from this document are from our internal systems, any resemblance with real environment are mere coincidence**

You have created an onSave business rule which should triggered an error message if the user does not add one or more specific documents in the work permit info portlet.

Rule example:

KBA1.jpg

You have noticed that if you add only one document per time and save, the rule works as expected, but adding more than one document, the business rule triggers the error message even if one of the document types used is the one required.

When you checked the rule trace you could see that the business rule was triggered for both documents and that although the error message should be triggered for one, the second document added does not satisfies the error message if clause so you expect the message to not be triggered.

KBA2.jpg

Environment

 SAP SuccessFactors Employee Central (EC) - All Versions

Reproducing the Issue

  1. Configure a business rule as the example provided in the symptom;
  2. Add the rule as onSave in the Work Permit Info portlet;
  3. Go to on employee and add a document type which should trigger the error message;
  4. Now add a new document type, this time one that should not trigger the error message;
  5. Try to save is and see that even if the required document exists, the error message will be triggered;

Cause

Expected Behavior. The work permit info portlet will trigger the rule for all the records added individually, which means that if any of the documents added matched the condition to raise the error message, then it will be raised in the UI for the user.

Resolution

Currently there is no other way you can achieve this need with this portlet so if you require this, you may want to create an enhancement request.

For that, please refer to the KBA 2090228 - How to submit enhancement requests for SAP SuccessFactors products

See Also

2090228 - How to submit enhancement requests for SAP SuccessFactors products

Keywords

work permit business rules onSave error message , KBA , LOD-SF-EC-RUL , Business Rules & Event Derivation , Product Enhancement

Product

SAP SuccessFactors HCM Core 1808