SAP Knowledge Base Article - Public

2701624 - How to identify the mandatory fields when upserting a record via ODATA API

Symptom

When trying to upsert a record for ODATA API, you received the following error message as an example:

ERROR firstName is a required field and cannot be blank., nationality is a required field and cannot be blank., gender is a required field and cannot be blank.

Failed record info: PerPersonal/personIdExternal=XXXX

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SuccessFactors BizX

Resolution

Identifying all the required fields for an ODATA API entity can be found in the required column section of  ODATA API data dictionary.

For example, in the given error it was indicated that firstName,nationality and gender are all required field. To check this via ODATA API data dictionary:

1. Go to Admin center

2. ODATA API Data Dictionary

odata_api_data_dictionary.png

You can crossed check the required fields via Manage Business Config for entity in used for this example under Personal Information under the Mandatory section.

bcui.png

See Also

 2819154 - What is Odata API Data Dictionary? 

Keywords

ODATA API Data Dictionary , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP Jam Collaboration 1805