SAP Knowledge Base Article - Public

3779309 - ExternalCode not auto-generating while using UPSERT functionality for the API entity: JobProfileLocalizedData

Symptom

POST query for JobProfileLocalizedData (SHORTDESCRIPTION or LONGDESCRIPTION) OData API does not run successfully unless "ExternalCode" is added in the payload - but this field is not marked "required" on the ODATA API Dictionary.

Environment

SAP SuccessFactors Talent Intelligence Hub and Job Profiles

Reproducing the Issue

  • Log in to the SuccessFactors environment and prepare a Job Profile record with a valid JobProfile_externalCode.
  • Verify the OData metadata for the entity SFOData.JobProfileLocalizedData.
  • Confirm that the externalCode field is not marked as required and is expected to be system-generated.
  • Create an UPSERT request to the OData API endpoint: POST https://api68sales.successfactors.com/odata/v2/upsert
  • Use a payload for either the SHORTDESCRIPTION or LONGDESCRIPTION section without providing the externalCode field. Example:
    JSON1{2  "__metadata": {3    "type": "SFOData.JobProfileLocalizedData",4    "uri": "JobProfileLocalizedData"5  },6  "JobProfile_externalCode": "XXXX",7  "sectionId": "XXXXX",8  "sectionType": "SHORTDESCRIPTION",9  "desc_en_US": "test short desc",10  "desc_defaultValue": "test short desc",11  "status": "A"12}Show more lines
  • Submit the UPSERT request.
  • Observe that the request fails instead of automatically generating the externalCode.
  • Review the API response and note the error:
    [COE0018] Field [GUID] should be numeric

Resolution

Product Engineering is investigating a solution.

Click on star to bookmark this article to receive updates about this issue. For more information about updates from subscribed KBAs, you can refer to the KB Article 2171560 - How to be notified of new or updated SAP Notes or KBAs.

See Also

Keywords

KI1H2026, WSM-35020, JobProfile_externalCode, SFOData.JobProfileLocalizedData, SHORTDESCRIPTION, LONGDESCRIPTION, update, post, query, upsert, endpoint, API, create, COE0018, dictionary, required field.  , KBA , LOD-SF-TIH-JPB , Job Profile Builder , Known Error

Product

SAP SuccessFactors HCM Suite 2605