2283678 - Application error while saving data in MDF Portlet

SAP Knowledge Base Article - Public

2283678 - Application error while saving data in MDF Portlet

Symptom

  • Application error occurred while trying to save data for MDF Portlet
  • Users are unable to save data for the custom MDF Portlet

Environment

  • SuccessFactors Cloud HCM: MDF
  • SuccessFactors Cloud HCM: Manage Configuration UI
  • SuccessFactors Cloud HCM: Configure Object Defintions

Reproducing the Issue

  1. Go to Employee Profile and access the MDF Portlet
  2. Click on Edit to add data for the object and click Save

        2283678_3.PNG

       3. Application error message appears as shown below

        2283678_2.PNG

Cause

externalCode field for an MDF Object acts as a primary key value in maintaining data for the object. The externalCode field is used to create unique data for the MDF object based on the value entered in this field. In a user based MDF Object, a user is a unique value for the data being created for the object. Setting this field as Not Visible or Read Only will disallow to create data because the system cannot verify if the externalCode field has unique value or not and thereby resulting in the Application Error message on the screen.

Resolution

Checking the Object Definition to verify if the Visibility of the externalCode field:

  1. Navigate to Admin Center --> Configure Object Definitions 
  2. Select Object Definition --> Choose the required object from the dropdown
  3. Click on Details option for externalCode field of the selected object's definition
  4. Check the Visibility. If it has been set as Not Visible, set it as Editable

         2283678_1.PNG

 

        5. If the field has been set as Read Only, users will be able to add data on the portlet. However, if any admin user tries to create new data via the Manage Data page or tries to perform import, this field will not be accessible and data for any user cannot be created. Therefore, it is recommended to set the externalCode field as Editable on the object definition.

Keywords

  • MDF: Metadata Framework
  • Configure Object Definition
  • Manage Configuration UI
, KBA , LOD-SF-MDF-UI , UI Config, Rules, Custom MDF Portlets on V12 & PP3 , Problem

Product

SAP SuccessFactors HCM Core 1511