SAP Knowledge Base Article - Public

3350304 - Child MDF object is not accessible using OData API

Symptom

You have created two custom MDF objects - cust_ParentObject and cust_ChildObject.

Object cust_ParentObject has one to many associations with object cust_ChildObject.

When you try to access the association between these objects using below OData API query, the association (there is no link for child object) does not appear in the OData API response.

https://apisalesdemo2.successfactors.eu/odata/v2/cust_ParentObject?$format=json

If you access the child object directly, then API response contains a NotFoundException 

https://apisalesdemo2.successfactors.eu/odata/v2/cust_ChildObject?$format=json

API Response

 {"error" : {

"code" : "NotFoundException", "message" : {

"lang" : "en-US", "value" : "Entity cust_ChildObject is not found. Please check the entity in Admin Center > OData API Data Dictionary or contact your system administrator."

}}}

Environment

SAP SuccessFactors HXM Suite

* MDF OData API

Cause

The possible cause is that externalCode of child object cust_ChildObject is of type Generic Object (GO) and its Valid Values Source is another child object.

Resolution

System does not support exposing a child object with externalCode has Data Type Generic Object (GO), and points to another child object in OData. 

Keywords

child object, parent object, MDF object, externalCode, Generic Object, GO, Valid Values Source, NotFoundException, association, relationship , KBA , LOD-SF-INT-MDF , Metadata Framework API (MDF) , Problem

Product

SAP SuccessFactors HXM Core 2305