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:
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.
Environment
SAP SuccessFactors Employee Central (EC) - All Versions
Reproducing the Issue
- Configure a business rule as the example provided in the symptom;
- Add the rule as onSave in the Work Permit Info portlet;
- Go to on employee and add a document type which should trigger the error message;
- Now add a new document type, this time one that should not trigger the error message;
- 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-PER-WRK , Work Permit - Config, Rules, RBP, UI , LOD-SF-EC-PER-PRS , Personal Info - Config, Rules, RBP, UI , Product Enhancement