Symptom
A Workflow Rule was created to clear out a field in, for example, Opportunities. However, after the rule is executed, it is expected that the standard error message "Cannot save, as field 'ABC' is specified as mandatory by the administrator" would be display immediately, but it is not.
(ABC represents the name of the standard or custom field used by the Workflow Rule).
Environment
SAP Cloud for Customer
Reproducing the Issue
This scenario can be faced to any Business Object. In this example, Opportunities:
- Go to Sales > Opportunities.
- Open the desired one.
- Perform the necessary change(s) to trigger the rule.
- See the field will be cleared out.
- Error message "Cannot save, as field 'ABC' is specified as mandatory by the administrator" is not displayed.
Cause
The error message "Cannot save, as field 'ABC' is specified as mandatory by the administrator" will not appear immediately after the rule is executed because the Workflow Rule logic operates independently and skip this validation.
However, the error will be shown as soon as the edit mode is entered and attempted to save the Opportunity - even if no changes were made. Similarly, any action that causes the Opportunity to enter edit mode will trigger the error.
Resolution
This is the expected system behavior.
A comparable situation occurs when Opportunities are created via an external system and sent to C4C. Even if there are mandatory fields configured in C4C, the external system can still send Opportunities without populating those fields. No error will occur during the creation, but the missing mandatory fields will be validated the moment a user attempts to edit the Opportunity within C4C. Therefore, the adaptation mode logic for mandatory fields, doesn't apply for such scenarios.
If the feature/functionality is needed as a matter of urgency, please refer to KBA: 3475641 - Functionality Currently not Available (C4C)
Keywords
Vanishes, vanish, vanished, empty, blank, blanked, clears out, remove, delete, removed, deleted, removes, deletes, changed, modified, take out, take off, take away, get rid of, extract, undo, WKF , KBA , LOD-CRM-WKF , Workflow , Problem