SAP Knowledge Base Article - Public

3002057 - "Unable to insert data due to a server error. Please try again." in 'Add New Hire to Onboarding' page - Onboarding

Symptom

"Unable to insert data due to a server error. Please try again." error is occurred when accessing the 'Add New Hire to Onboarding' page from Admin Center.

When you close the error and try to select for 'Company' field, no value is available in the drop down list.

Environment

SAP SuccessFactors Onboarding

Reproducing the Issue

  1. Go to Admin Center > Add New Hire to Onboarding > Receiving Error "Unable to insert data due to a server error. Please try again."
  2. Check the Console in parallel, following error is found:

Case 1:

The following problem occurred: HTTP request failed400,,{"error" : {"code" : "COE_PROPERTY_NOT_FOUND", "message" : {"lang" : "en-US", "value" : "[COE0021]Invalid property names: FOCompany/externalCode. Please check the property name in Admin Center > OData API Data Dictionary or entity metadata. Ensure there were no data model changes that removed this field, and please execute a refresh metadata to ensure the cache is not corrupted."}}} - 

Case 2: 

{
"error" : {
"code" : "COE_GENERAL_SERVER_FAILURE", "message" : {
"lang" : "en-US", "value" : "[COE0019]Exception caught: com.successfactors.sca.service.exception.ServiceCreateFailedException: can not get personId with the index 0"
}

Cause

Case 1: 'externalCode' property is not available in OData API Data Dictionary for 'FOCompany'.

Check Steps: Admin Center > OData API Data Dictionary > FOCompany > Property Name > search for "externalCode", not available.

We are filtering the Company based on externalCode. 'externalCode' property should be placed under FOCompany.

Case 2:

Orphan data remains.

Resolution

Case 1:

Please make 'externalCode' property configuration enabled for 'FOCompany' and then Company field will start loading.

  1. Go to Admin Center
  2. Configure Object Definitions
  3. Object Definition ; Legal Entity
  4. Fields > externalCode > Click on 'Details'
  5. If you see the 'Visibility' is set as 'Not Visible', change that to 'Editable'.
  6. Save the changes.
  7. Go to OData API Metadata Refresh and Export and Refresh Metadata Cache.
  8. Check again if error is gone and Company field is searchable.

Case 2:

Please follow steps below to remove orphan data.

  1. Open Check Tool and search for "OrphanPersonGOs" in Title
  2. Run the "OrphanPersonGOs" check, it should find the user IDs which are not properly configured and should be causing the error
  3. Use the "Quick Fix" button

See Also

3075524 - OData API error : "ServiceCreateFailedException: can not get personId"

Keywords

Add, New, Hire, Onboarding, FOCompany, Property Name, externalCode, COE_PROPERTY_NOT_FOUND, [COE0021]Invalid property names: FOCompany/externalCode , KBA , LOD-SF-OBX-MAN , Manual Onboarding , Problem

Product

SAP SuccessFactors Onboarding all versions

Attachments

Pasted image.png