SAP Knowledge Base Article - Public

2942697 - Unable to insert data due to a server error. Please try again. - Onboarding

Symptom

  • Error in Add New Hire to Onboarding page
  • Error Message: "Unable to insert data due to a server error."

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP SuccessFactors Onboarding

Reproducing the Issue

  1. Go to Admin center.
  2. Search Add new hire to Onboarding.
  3. Input all the required candidate details.
  4. Click on 'Initiate Onboarding'.
  5. The error appears.



Cause

There are several possible cause for this error and below are some of them:

  1. Hide Username in the UI is enabled in Provisioning.
  2. Email Type "P" is currently not configured in ecEmailType in Picklist Center.
    • Error found in the backend logs: Email type P is not in picklist ecEmailType.
  3.  No Permissions for 'Employee Central Foundation API' access permission for FOEventReason.
  4. The field 'email-type' has an incorrect picklist name in Manage Business Configuration.
    • Replicate the issue and check the browser's dev tool (Fn+F12)
    • Error found in console:
      [COE0019]Save EC data failed. The error message is: Business key - email-type - has invalid value: Pfor entity emailInfo for userSysId:XXBusiness key - email-type - has invalid value: Pfor entity emailInfo for userSysId:XX with the index 0"

Resolution

1. Hide Username in the UI  enabled in Provisioning

  • In Provisioning check whether Platform Feature settings -> Hide Username in the UI is enabled
  • If so, please uncheck it and save the changes.
  • Post making the changes re-test it.

2. Check in Picklist Center> ecEmailType if Email type P has correct value for Non-unique External Code  field. It should be "P". In case you have "1", then change it to "P", save the changes and re-test

  • For Product Support: search in the backend logs and look for similar error to confirm: Email type P is not in picklist ecEmailType.

3. Grant permission for 'Employee Central Foundation API' access permission for FOEventReason.

4. Change the picklist type used for the field 'email-type' in Manage Business Configuration UI.

Keywords

Unable to insert data due to a server error, Onboarding 2.0 , ONB 2.0 , OBX, add new hire to onboarding , KBA , LOD-SF-OBX , Onboarding 2.0 , Problem

Product

SAP SuccessFactors Onboarding 2105

Attachments

Pasted image.png