SAP Knowledge Base Article - Public

3617331 - Candidate and CandidateBackground API Insert/Update Returning the Error "unhandled property type: Edm.String" - Recruiting Management

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

  1. Try to create a candidate profile via OData API.
  2. Add picklist values using the syntax "PicklistFieldId": {"id":"1234"} in background elements.
  3. 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

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

Product

SAP SuccessFactors Recruiting all versions