SAP Knowledge Base Article - Public

3450669 - Position API Upsert Error Save batch MDF object failed! 0:FieldA is a required field/association in Object Position. with the index 0

Symptom

  • When trying to upsert the position via Odata API, the customer is getting the following error: Save batch MDF object failed! 0:FTE is a required field/association in Object Position. with the index 0, while they do not have the issue/error via import.
  • When trying to create MDF object via API, getting error like: Save batch MDF object failed! 0:FieldA is a required field/association in Object [Object Name]. with the index 0.

Environment

  • SAP SuccessFactors Employee Central
  • SAP SuccessFactors HXM Suite - OData API

Cause

Scenario/Pre-requisite:

  1. Odata API upsert call.
  2. FieldA is configured as mandatory on the position object.
  3. A business rule is supposed to set the FieldA following a calculation where one of the variable for the calculation is provided by querying a lookup object. 

Resolution

  • The business rule setting the FieldA (or FTE field) is trying to set it as 'null'. This is because the rule is not able to fetch any value from the lookup object and this is causing the calculation to end up null.
  • The reason why the the business rule might not retrieve a value from the lookup during Odata API call is:
    • The lookup is based on multiple variables. One of them being the value of field custom field.
    • During import the custom field is provided in the import file.
    • During API call no value for custom field is provided and no rule is generating this value. Therefore, one variable is missing and value cannot be retrieved from the lookup for FieldA and the calculation is ending in null.

  • Solution: Make sure the business rule calculating the FieldA's value is able to fetch all the parameter values without the use of lookup table in case the object like Position is created mostly via API.

Keywords

error, Position creation, create object, API, MDF, Save batch MDF object failed, is a required field/association in Object, with the index 0 , OData API, INC6132944 , KBA , LOD-SF-EC-POS , Position Management , Problem

Product

SAP SuccessFactors Employee Central all versions