SAP Knowledge Base Article - Public

3387293 - SFAPI: User Property Gender Returns INVALID_FIELD_VALUE Field Error

Symptom

When the client passes any fields of the extended gender values to the SFAPI user object the below error appears.  

  • <message>INVALID_FIELD_VALUE Field name: gender Field value: O.</message>
  • <message>INVALID_FIELD_VALUE Field name: gender Field value: U.</message>
  • <message>INVALID_FIELD_VALUE Field name: gender Field value: D.</message>

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

Environment

  • SAP SuccessFactors HXM Suite

    • SFAPI

Reproducing the Issue

1. User runs an upsert against the SFAPI USER object with one of the enhanced gender fields:

2. Error is returned by SFAPI:

Cause

1. The SFAPI User object does not support the extended genders

2. The SFAPI User object  is depricated and is no longer enhanced, maintained or supported

Resolution

The OData API must be used in such use cases.

1. Run the upsert against the OData API:

2. Successful Upsert:

Keywords

SFAPI, User, gender values, enhanced, OData , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM suite all versions

Attachments

Pasted image.png