SAP Knowledge Base Article - Public

3406250 - Offboarding Custom Task Error - Onboarding

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

  1. Log in to the instance
  2. Proxy as the offboardee
  3. Perform and submit the custom Offboarding task
  4. Error: There was an application error - ???COMMON_Ok???

Cause

  1. An entry/record already exists for the offboardee in Manage Data.
  2. The offboardee does not have "View & Edit" permissions for the ONB2CustomTask.
  3. Internal target population missing

Resolution

Solution 1:

  1. Reproduce the issue
  2. Network logs:
    {
        "error": {
            "code": "BadRequest",
            "message": "Operation failed because of errors.",
            "details": [
                {
                    "code": "comdfRecordExistError",
                    "message": "Record ‘(externalCode=XXXXXXXXXXXXXXXXXXX)’ of type ‘cust_XXXXXXX’ already exists."
                }
            ]
        }
    }
  3. Go to Manage Data
  4. Search: [Custom Task] [Offboardee Name]
  5. If an entry/record already exists, delete the entry by clicking on Take Action > Delete

Solution 2:

  1. Reproduce the issue
  2. Network logs:
    {
        "error": {
            "code": "Unauthorized",
            "message": "You don’t have the EDIT permission for ONB2CustomTask."
        }
    }
  3. Grant "View and Edit" permissions for the Custom Task/ONB2CustomTask
  4. Go to Manage Data > [Custom Task] [Offboardee Name]
  5. Delete the existing entry/record
  6. Run the MDF Object Definition To DB SYNC job in Provisioning > Manage Scheduled Jobs
  7. Update the process flows for Onboarding and Offboarding via Update Process Flows for Onboarding and Offboarding
  8. Refresh Metadata > Cache via OData API Metadata Refresh And Export
  9. Proxy back as the Offboardee
  10. 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

Creating Generic Object Definitions to Support Generic Object Fields for Custom Tasks | SAP Help Portal

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

Product

SAP SuccessFactors Onboarding all versions