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. "Unable to insert data due to a server error."

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:

  • Hide Username in the UI is enabled.

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

  •  No Permissions for 'Employee Central Foundation API' access permission for FOEventReason.

  • 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

  •  Hide Username in the UI  enabled.
    In the instance -> 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.

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

  • Grant permission for 'Employee Central Foundation API' access permission for FOEventReason.
  • 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, OBX, add new hire to onboarding , KBA , LOD-SF-OBX-MAN , Manual Onboarding , Problem

Product

SAP SuccessFactors Onboarding all versions

Attachments

Pasted image.png