Symptom
When configuring an onInit or onSave rule to create a Matrix Position row, the rule is triggered correctly when a Position is created; however, an error occurs when attempting to save the new Position:
"Related Position is a required field/association in Object Matrix Position for Position."
This error is repeated for every Matrix Relationship row created through the onInit/onSave rule. For example, if the rule generates two Matrix Relationship rows, the "Related Position" is added to both, but the same error appears when saving.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
- SAP SuccessFactors Employee Central
- SAP SuccessFactors HCM Suite
Reproducing the Issue
If an onInit/onSave rule or a rule that copies fields to Position is configured to add Matrix Relationship rows to a new Position upon creation—using either of the methods below—the following error message will occur:
"Related Position is a required field/association in Object Matrix Position for Position."
Scenario 1
Matrix Relationship "Type" rows are defaulted when creating a new Position.
-
The "Set" condition is used in the THEN part of the rule to add a Matrix Relationship row to the Position.
-
This action only adds the row; the "Related Position" must still be specified before saving, as this field cannot be null.
Example:
Example:
Rule Result:
Scenario 2
Matrix Relationship "Type" rows are defaulted when creating a new Position, and one of the rows includes a predefined Position.
-
The "Create" condition is used to set the Related Position for a specific Type.
NOTE: Do not set "Related Position" to be equal to NULL when using "Create" as this value cannot be set to Null
Example:
Rule Result:
Cause
The error message is triggered when attempting to save a new Position when using onInit/onSave rules as they are not supported.
The related enhancement request is tracked under ticket MDF-13952, which is not planned or fixed for now.
Resolution
The only available solution is to assign the rule to a required field as onChange. Ideally, the rule should be linked to a field that is consistently updated when creating or modifying a Position.
For additional guidance, see Knowledge Base Article 2416892 - How to default Matrix Relationship Type when creating a new Position
The related enhancement request is tracked under ticket MDF-13952, which is not planned or fixed.
Keywords
onInit rule, onSave rule, Matrix Position, Matrix Relationship, Position object, error message, Related Position, required field, association, save Position, create Position, Set condition, Create condition, default Matrix Relationship Type, null value, rule configuration, MDF-13452, configuration issue, MDF-13952, enhancement request, workaround, onChange rule, required field assignment, Knowledge Base Article 2416892, new Position, modify Position, rule trigger, system behavior, steps to reproduce, Related Position is a required field/association in Object Matrix Position For Position, employee central, successfactors, MDF-13952 , KBA , LOD-SF-EC-POS , Position Management , Problem
SAP Knowledge Base Article - Public