SAP Knowledge Base Article - Public

2541150 - Business Rules: Application Error when trying to expand Context > Current User

Symptom

When you try to open the Context > Current User in the Configure Business Rules UI, you encounter an application error and then the plus sign to drop in the "Current User" related objects is not available (is "Loading").

KB1.jpg

KB2.jpg

Environment

SAP SuccessFactors Employee Central (EC) - All Versions

Reproducing the Issue

WHEN UPDATING AN EXISTING RULE:

  1. Go to configure business rules;
  2. Select the rule you want to update;
  3. Click on take action make correction or insert a new record;
  4. When performing the change you want, get the application error the first time and then see that you cannot drill down into the rule sections anymore;

WHEN CREATING A NEW RULE FROM SCRATCH:

  1. Go to Configure Business Rules;
  2. Click on create new and select the base object you want;
  3. When setting up the rule see that under context you get the application error the first time and then see that you cannot drill down into the rule sections anymore;

Cause

  1. There might be other several causes for this issue but one reason we found out is that there is a corruption in the configuration of some of the MDF objects that are returned into the Context section (which throws the application error). For example, if you check the screenshot provided in the symptom section you see that there are several objects like: ANI Flexible working, ANI remote working, and so on. If one of those objects is corrupted, this will cause application error in the Business Rule.
  2. This type of error might be related to environment issues like synchronization of missing config from one instance to another using the Instance Synchronization tool
  3. This can also be caused by the deletion of the MDF Picklist after the objects is already configured.

Resolution

For any field which is defined as "Generic Object", "Foundation Object" or "Picklist", you must define a Valid Values Source. In not doing so, the configuration is then invalid and unsupported. You must maintain the source.

To resolve this issue you must apply some troubleshooting steps as explained bellow.

Via UI:

  1. Take note of the Objects: this is the very first step and you'll need to take note of all those objects because you'll need to check the Generic Object Configuration for them in order to check for errors;
  2. After taking note you need to check for discrepancies on the Object Definition. You do this via Admin Center > Configure Object Definition> select "Object Definition" > search for the objects you took note;

KB3.jpg

 

  1. Which discrepancies are you looking for?

Check if the field is a Generic Object type or Picklist type: If it is, then you must ensure that there is a Valid Values Source defined;

KB4.jpg

KB5.jpg

 

  1. In this case here when the field cust_grevieancesTest is a picklist type field but when checkin the field configuration, there is no Valid Values Source:

KB6.jpg

 

 

Via Export:

1. Navigate to Admin Center > Import and Export Data > select "Export" and then select the Generic Object "Object Definition" and then click "Export"

export.jpg

 

2. Navigate to Admin Center > "Monitor Job" and download the export file

export2.jpg

 

3. Open the ZIP file and then open the "Object Definition.csv" file

ZIP.jpg

 

4. Then filter on the header or field label row (row 1 or 2) and then find the column for "Data Type" and there add filters for "FO", "GO" and "PICK_LIST"

check_field_type.jpg

 

5. Then finally use the filter menu on the column "Valid Values Source" - untick "Select All" and then scroll to the bottom of the list and select "Blanks".

ValidValues.jpg

 

6. You can then identify which Object and Field you need to fix by using the columns "Code" (for the Object Code) and the "Database Field Name" column (for the fields name).

7. Then you can fix the configuration issue via Admin Center > Configure Object Definitions

 

*FOR SAP STAFF ONLY: Please refer to Internal Memo*

Keywords

XAF-18849, ff6d1e6ca65fdbf37c2698a9ab822d395dc89062, Business Rules, Manage Business Rules, employee central, context, current user , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , Problem

Product

SAP SuccessFactors HCM Core 1708