The below error is returned when we try to query a non-picklist field "region_of_birth" via Compound Employee API.
You would notice that it is not a picklist but a field of datatype "string".
You can confirm that from the SFAPI Data Dictionary under the entity - CompoundEmployee API (screenshot below):
Also from the data model:
Below screenshot is from the UI:
This is a hard-coded field and is internally handled as a picklist based field until b1511 release.
Starting from b1602 release, the handling of this field would differ ie, it would not be treated like a picklist field and free-text can be entered in
The field "region_of_birth".
No manual changes are needed after the upgrade.
The issue would be resolved once the same query is executed after the b1602 upgrade.
KBA - 2166531 - Compound Employee API Call Fails with an Error: "Please make sure that the external code for picklist "xxxxxxx" with option ID "xxx" is valid"
KBA , LOD-SF-INT , Integrations , LOD-SF-INT-API , API & Adhoc API Framework , Problem