SAP Knowledge Base Article - Public

2420087 - ERROR: "Related Position is a required field/association in Object Matrix Position For Position" using onInit rules to create Matrix Position row

Symptom

When trying to configure an onInit rule to create Matrix Position row, the rule is create and assigned as onInit to the Position object. The rule triggers fine when the Position is created but when you try to save the new Position you get an error messages:
"Related Position is a required field/association in Object Matrix Position For Position."
The error will repeat for every Matrix Relationship row you create using the onInit rule. For example, you use a rule to create 2 Matrix Relationship rows. You add the "Related Position" to both and try to save and you get the error.

"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
  • Position Management

Reproducing the Issue

If you have created an onInit rule or a rule to copy foeld to position that adds Matrix Relationship rows to a new Position when it is created, using either of the following methods, you will encounter the error message:


Error.png

Scenario 1)

  1. Default the Matrix Relationship "Type" rows when creating a new Position
  2. You need to use the "Set" condition in the THEN part of the rule to add the Matrix Relationship row to the new Position. Note that this will only add the row. The "Related Position" will still need to be specified before saving the Position (as Related Position cannot be NULL).

Example:

DefaultMatrixPositionRow.jpg

 

Rule Result:

Matrix_Result_1.jpg

 

Scenario 2)

  1. Default the Matrix Relationship "Type" rows when creating a new Position, but in one of the rows, specify a particular position
  2. If you wanted to default the Related Position for a particular Type, you could also use "Create" condition to do so.  NOTE: Do not set "Related Position" to be equal to NULL when using "Create" as this value cannot be set to Null

Example:

DefaultMatrixPosition_2.jpg

 

Rule Result:

Matrix_Result_2.jpg

Cause

  • The error message to trigger when trying to save the new Position if either of the mentioned onInit rule configurations are attempted. MDF-13452 is closed as configuration issue. 
  • Enhancement request ticket refrence to follow is MDF-13952 which is not planned/fixed.

Resolution

  1. For now the only solution is to assign the rule to a Required field as "onChange". It would be best to assign the rule to a field which would always be updated when updating or changing a Position.
  2. Please refer to artcile 2416892- How to default Matrix Relationship Type when creating a new Position
  • Enhancement request ticket refrence to follow is MDF-13952 which is not planned/fixed.

Keywords

Related Position is a required field/association in Object Matrix Position For Position, onInit, Employee Central, MDF-13952, MDF-13452, EC , KBA , LOD-SF-EC-POS , Position Management , Problem

Product

SAP SuccessFactors Employee Central all versions