SAP Knowledge Base Article - Public

3065992 - OData API - Picklist Option ID not accepted after new release (b2105)

Symptom

You are receiving similar error message while upserting Picklist values via Odata API v2

  • "The given value XXXXXX for option XXX is invalid.".

  

The given value is an active option ID as per checking in Picklist Center

 

Environment

  • SAP SuccessFactors HXM Suite
  • Odata API

Reproducing the Issue

  1. Perform an upsert call on Picklist values
      
  2. Send a valid Option Id for the Picklist
      
  3. Receive similar error like in description

Cause

If no fileLocale parameter passed, the user's login locale is used. if the login locale has no label configured, the error will show up.

Resolution

Please add "fileLocale=en_US" to the upsert url

https://apisalesdemo2.successfactors.eu/odata/v2/upsert?$format=json&purgeType=full&fileLocale=xx

There was a bug fix in 2105. Originally, the locale used to get picklist data and consume picklist data are different, Engineering team fixed by unifying them.

See Also

SAP SuccessFactors Employee Central OData API: Reference Guide

  • 1.13.6 fileLocale  [page 52]

Keywords

fileLocate, Picklist, The given value, "The given value XXXX for option XXXX is invalid", invalid option id, upsert, The given value for option is invalid. , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-MDF , Metadata Framework API (MDF) , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HXM Suite 2105