Symptom
- When trying to perform a Candidate Profile creation or update, the following error is returned: "unhandled property type: Edm.String".
- The error occurs when trying to pass values to picklist fields within background elements.
Environment
SAP SuccessFactors Recruiting Management
Reproducing the Issue
- Try to create a candidate profile via OData API.
- Add picklist values using the syntax "PicklistFieldId": {"id":"1234"} in background elements.
- An error is returned: "unhandled property type: Edm.String".
Cause
Picklist fields (field-name is vfld1 to vfld15) in candidate profile background elements are of String type, hence they require String values.
Resolution
To pass values for picklist fields in background elements, use either the Option ID or the English US label.
Follow the syntax below:
a. Use the Picklist Option ID
"BackgroundElementName" : {
"PicklistFieldId1": "1111",
"PicklistFieldId2": "2222"
}
b. Use the English US label
"BackgroundElementName" : {
"PicklistFieldId1": "label1",
"PicklistFieldId2": "label2"
}
*Make sure to maintain the English US label in Picklist Center.
See Also
- API Reference Guide (OData V2) - Candidate and CandidateBackground_*
- KBA 3291094 - Job Application API Insert/Update Returning the Error "unhandled property type: Edm.String" - Recruiting Management
- KBA 3378667 - How to Update Candidate Background Element using Integration Center / OData API - Recruiting Management
Keywords
RCM, API, Candidate, Background Element, education, outsideWorkExperience, BadRequestException, Error, String, Edm.String, Picklist , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM-CAN , General Candidate Issues (not Offers, not Profiles) , Problem