Symptom
When the offboardee tries to submit the Custom Offboarding task, the following error occurs:
Error: There was an application error - ???COMMON_Ok???
Environment
SAP SuccessFactors Onboarding
Reproducing the Issue
- Log in to the instance
- Proxy as the offboardee
- Perform and submit the custom Offboarding task
- Error: There was an application error - ???COMMON_Ok???
Cause
- An entry/record already exists for the offboardee in Manage Data.
- The offboardee does not have "View & Edit" permissions for the ONB2CustomTask.
- Internal target population missing
Resolution
Solution 1:
- Reproduce the issue
- Network logs:
{
"error": {
"code": "BadRequest",
"message": "Operation failed because of errors.",
"details": [
{
"code": "comdfRecordExistError",
"message": "Record ‘(externalCode=XXXXXXXXXXXXXXXXXXX)’ of type ‘cust_XXXXXXX’ already exists."
}
]
}
} - Go to Manage Data
- Search: [Custom Task] [Offboardee Name]
- If an entry/record already exists, delete the entry by clicking on Take Action > Delete
Solution 2:
- Reproduce the issue
- Network logs:
{
"error": {
"code": "Unauthorized",
"message": "You don’t have the EDIT permission for ONB2CustomTask."
}
} - Grant "View and Edit" permissions for the Custom Task/ONB2CustomTask
- Go to Manage Data > [Custom Task] [Offboardee Name]
- Delete the existing entry/record
- Run the MDF Object Definition To DB SYNC job in Provisioning > Manage Scheduled Jobs
- Update the process flows for Onboarding and Offboarding via Update Process Flows for Onboarding and Offboarding
- Refresh Metadata > Cache via OData API Metadata Refresh And Export
- Proxy back as the Offboardee
- Perform and submit the custom Offboarding task
Note: Ensure that the custom object has the API Visibility configured as "Editable". - Creating Generic Object Definitions to Support Generic Object Fields for Custom Tasks | SAP Help Portal
Solution 3:
Make sure target population is internal user as an offboardee is internal user.
See Also
Keywords
Onboarding, Onboarding 2.0, Offboarding, Custom Task, Error: There was an application error - ???COMMON_Ok???, There was an application error, Manage Data, Existing, Application Error, Error, OFB, OBX, ???COMMON_Ok??? , KBA , LOD-SF-OBX-OFT , OFB Tasks , Problem