SAP Knowledge Base Article - Public

2515900 - No Permission Error when creating data for custom MDF object

Symptom

  • No Permission error when saving data via MDF portlet.
  • No Permission error when creating data via Manage data.
  • Can I set the externalCode to Not visible or ReadOnly for an MDF object?
  • When editing a MDF portlet in the employee profile it returns the following error: 'No data available or you do not have the necessary permission.'

Environment

  • SAP SuccessFactors HXM Suite
  • Metadata Framework (MDF)

Reproducing the Issue

This issue can occur on two places, Manage Data and on MDF portlet in People Profile Page.

  1. Go to employee profile
  2. In the portlet click on Edit
  3. Change the data
  4. Click in save, the error appears:'No data available or you do not have the necessary permission.'

Cause

There can be different reasons why an user can receive the No Permission error on the MDF object

  • externalCode has been set as "Read Only" or "Not Visible" on the Configure Object Definition
  • The editable option for externalCode on the configured UI in Manage Configuration UI page has been disabled or the field has been made invisible (check for both the parent/associated object)
  • Deleting the externalCode field while configuring the UI for the object (this can be for the parent/associated object)
  • If the object is RBP secured, then the create/insert/correct permission has been disabled for the object. (Actual Permission Issue)
  • One target population grant the permission to:exclude Granted User from having the permission access to him/herself, and another: 
    everyone in self. These two target populations that grant the user permission to create and insert in this MDF are contradictory causing an inconsistency. 

Resolution

To investigate the No Permission error when creating/saving MDF data check for the following permissions on your object definition:

  1. Check for the permission on the externalCode of the object (either parent or the child) has been set as Read Only or Not Visible. 
  2. Verify the UI configured for the MDF object has the externalCode field available and editable (for both the parent and the child object)
  3. Check for RBP permission on the object for the affected user.
  4. Check the target population for the MDF object

Exception: ExternalCode field can be hidden for child object when it has Data type = AutoNumber

Keywords

MDF, Metadata Framework, permission, mdf data, no permission error, custom MDF , KBA , LOD-SF-MDF-RBP , RBP Permissions on Objects , LOD-SF-MDF-UI , UI Config, Layout & Rules , How To

Product

SAP SuccessFactors HXM Suite all versions