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:

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."}}} - 

Cause

'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.

Resolution

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.

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