SAP Knowledge Base Article - Public

3288650 - OwnerId field is showing 'null' value for attachment entity when added in Custom MDF

Symptom

When querying Attachment entity, the ownerId field is empty for attachments from custom MDF objects. This doesn't occur in attachments from standard objects, like National ID or Payment Information.

When looking at the API logs, you can see that the empty ownerId returns as following:
"ownerId": "noOwner"

The expectation would be the way the ownerId returns for standard objects as below:
"ownerId": "xxxxxx"

Environment

  • SuccessFactors OData API
  • SuccessFactors Employee Central HCM suite

Reproducing the Issue

  1. In employee's profile go to Health and Safety portlet and then select edit
  2. Fill the required details for custom fields and upload the attachment in attachment field and save.
  3. Query the Attachment record through OData API and ownerId is "noOwner"

When same steps are done to standard portlets, issue doesn't occur.

Resolution

This is the expected behavior.

In case of custom MDF objects owner ID field is populated for an attachment only when there is a GDPR/LSPD config created for the object. In case if there exists one, Data subject field (user data type) is treated as the ownerId else "noOwner" is populated as the value.
For reconfirmation from the logs you can see that owner has value as "noOwner" which is considered as not null.


Keywords

noOwner, Successfactors, Attachment Entity, Odata API, SFSF, MSF, Custom MDF Object, Employee Central Data Subject Field , KBA , LOD-SF-INT-MDF , Metadata Framework API (MDF) , Problem

Product

SAP SuccessFactors HXM Suite 2211