Symptom
When you use OData API to upsert MDF foundation objects (like FOCostCenter), you wish to update name/description fields such as "name_defaultValue" and "name_localized".
You put these 2 fields in the payload and then upsert failed with below error:
- Localized value has different source type. Use one of the following: xx_<locale>, xx_localized, xx_translationTextNav. with the index 0
Environment
SAP SuccessFactors HXM Suite
- OData API
Cause
These are mutually exclusive properties: xx_<locale>, xx_localized, xx_translationTextNav
You cannot upsert localized property "name_localized" and country code property "name_<locale>" at the same time.
Resolution
As the error message mentions, every time please upsert just one of these properties: xx_<locale>, xx_localized, xx_translationTextNav.
Use multiple requests if you need to upsert more than one of them.
See Also
2857750 - [1911] OData API edit behavior for MDF foundation objects - SuccessFactors HCM Suite
Keywords
SF, SuccessFactors, Success Factors, name, desription, MDF FO, localized, defaultValue, translationTextNav, language , KBA , LOD-SF-INT-MDF , Metadata Framework API (MDF) , LOD-SF-INT-ODATA , OData API Framework , Problem