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
- Go to Admin Center > Add New Hire to Onboarding > Receiving Error "Unable to insert data due to a server error. Please try again."
- 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.
- Go to Admin Center
- Configure Object Definitions
- Object Definition ; Legal Entity
- Fields > externalCode > Click on 'Details'
- If you see the 'Visibility' is set as 'Not Visible', change that to 'Editable'.
- Save the changes.
- Go to OData API Metadata Refresh and Export and Refresh Metadata Cache.
- Check again if error is gone and Company field is searchable.
Case 2:
Please follow steps below to remove orphan data.
- Open Check Tool and search for "OrphanPersonGOs" in Title
- Run the "OrphanPersonGOs" check, it should find the user IDs which are not properly configured and should be causing the error
- 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
Attachments
Pasted image.png |