SAP Knowledge Base Article - Public

3140031 - Error [C0E0018] : The cancellation request for new hire xxx has failed - Onboarding

Symptom

  • Cancel Onboardee record from the Onboarding Dashboard
  • Receive error "[COE0018]The cancellation request for new hire xxx has failed. Please contact your administrator"

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.  From the Onboarding Dashboard, under All Tasks tab, select the candidate whose Onboarding process you want to delete.
  2.  From the candidate details page, click **More on the top-right corner of the page and select Action.
  3.  Select Cancel Onboarding from the Actions menu. The Cancel Onboarding for dialog box opens.
  4.  Select the All Onboarding tasks created will be canceled from the system checkbox to acknowledge the result of cancelling the Onboarding process.
  5.  Select the event reason for No-Show from the Select cancellation reason dropdown menu.
  6.  Select Confirm.  
  7.  Dialog box appears with  "[COE0018]The cancellation request for new hire xxx has failed. Please contact your administrator"

Cause

  • Event NO_SHOW is not configured properly.
  • Mandatory keys are not filled in
  • Event Reason NO_SHOW_EVENT_REPORT is an invalid external code for Country/Region.
  • Hired Date on the activity different to initial start date.
  • End date has been updated
  • Visibility of okToRehire field is set to View.
  • Process Trigger associated with process is no longer available.

Resolution

CPS Team: Please check internal logs for searches to isolate the cause.

Scenario 1: Event NO_SHOW is not configured properly

See also Triggering No-Show for a New Hire - SAP Help Portal

  1. Go to Admin Center>Picklist Center, and search for event picklist.
  2. Select the event picklist from the search result.
  3. 3. Select the Active version of the event
    4. Event No Show should be available in the list of PickList values.

For guidance on how to add Event No-Show, please see Adding a No-Show Picklist Value - SAP Help Portal

  1. Go to Admin Center  Picklist Center, and search for employee-status picklist.
  2. Select the employee-status picklist from the search result.
  3. Select the Active version of the employee-status 
  4. Status Reported No Show should be available in the list of PickList values.

    For guidance on how to add Status Reported No Show, please see Adding a Report No-Show Picklist to the Employee-status - SAP Help Portal

Ensure that <EmpEmploymentTermination> and <okToRehire> are available in the OData API Data Dictionary. 

If not, perform the following

  1. Manage Business Configuration >Employment Info.
  2. Enable EmpEmploymentTermination and okToRehire
  3.  Refresh OData API


Scenario 2: Mandatory Fields not filled in,

For CPS Team: To confirm this issue, please check back-end logs as detailed in Internal memo

The reason this is happening is because a required field has no data which causes the system to throw an error.

  1. Manage Business Configuration >Employment Info.
  2. Note mandatory fields.
  3. Check Onboardee has provided data for all mandatory fields.

If issue is caused by mandatory fields, please find these two possible solutions:

  1. Mark the field as non-mandatory, if possible.
  2. In certain cases customer requires to have the field as mandatory like PayrollEndDate or LastWorkingDay. In such scenario we can configure a onSave rule on Employment Info. However, it restricts cancellation to be performed only after completion of New hire data review.

Please see KBA on how to set up this onSave rule. 2922290 - Error while Cancelling Onboarding Process - Onboarding - SAP ONE Support Launchpad

Scenario 3: Event Reason NO_SHOW_EVENT_REPORT is an invalid external code for Country/Region 

  1. Manage Data
  2. Country/Region
  3. Select the relevant country
  4. Check that  Event Reason "Cancel Onboarding (NO_SHOW_EVENT_REPORT) is availble
  5. If not available for the this country, Add Event Reason  "Cancel Onboarding (NO_SHOW_EVENT_REPORT)"

 

Scenario 4:  Hired date on the Dashboard activity is not the same as the initial start date 

For CPS Team: To confirm this issue, please check back-end logs as detailed in Internal memo

Needs research Knowledge - COE0018 The cancellation request for new recruit [User ID] has failed. Please contact your administrator - Onboarding | HCSM (services.sap)

 

Scenario 5: End date has been updated

For CPS Team: To confirm this issue, please check back-end logs as detailed in Internal memo

Please create a SAP Ticket to fix this issue.

CPS:

  1. Please reach out to our Operation team to execute the script and to update the enddate as Null.
  2. Also please refer internal info for more information

 

Update Internal Memo as per KBA  Knowledge - [ONB] Unable to cancel Onboarding [COE0018]The cancellation request for new hire *** has failed. Please contact your administrator. | HCSM (services.sap)

 

Scenario 6: Visibility of okToRehire field is set to View.

For CPS Team: To confirm that this is the issue, please check back-end logs as detailed in Internal memo

The visibility of the okToRehire field must be set to Edit

  1. Admin Center >Manage Business Configuration
  2. Navigate to Entity employmentInfo.
  3. Select HRIS field okToRehire.
  4. Click the Details button.
  5. If Visibility of key is "View", Change Visibility to "Edit". (Change visibility to "Edit" in employmentInfo_onboardee data model as well, if applicable.)
  6. Perform OData API Metadata Refresh 

Scenario 7: Process trigger for this process has been deleted.

For CPS Team: To confirm that this is the issue, please check back-end logs as detailed in Internal memo

   1, Check backend logs

  1. Find below error :

"[COE0018]while trying to invoke the method com.successfactors.onboarding2.bean.process.ONB2ProcessTrigger.getTriggerType() of a null object loaded from local variable 'trigger'

 

2,  It will not be possible to cancel the process. If you wish to remove the process please purge the process.

 

See Also

Check 2

Check the Splunk logs with User ID in error. Issue is caused by Mandatory field and check for the field causing the issue

Canceling an Onboarding Process - SAP Help Portal

Scenario 6: CPS -

   1, Check backend logs

  1. Find below error :

Failed to upsert data for entity :EmpEmploymentTerminationresult : Property okToRehire is not upsertable. Please check the property setting in Admin Center > OData API Data Dictionary or the entity metadata. for Key EmpEmploymentTermination

 

Keywords

Cancel Onboarding, COE0018, [COE0018]The cancellation request for new hire *** has failed. Please contact your administrator, termination date, termination, Cancel Onboarding , Cancel Onboarding, [COE0018] okToRehire, Onboarding, Onboarding 2.0, ONB 2.0, OBX, [COE0018]while trying to invoke the method com.successfactors.onboarding2.bean.process.ONB2ProcessTrigger.getTriggerType() of a null object loaded from local variable 'trigger, Onboarding cannot be Canceled,  Error Cancelling Onboarding, NO Show, Failed to upsert data for entity :EmpEmploymentTerminationresult : Property okToRehire is not upsertable, Cancel Onboarding, The cancellation request for new recruit , KBA , LOD-SF-OBX-BPE , BPE Process Flow , Problem

Product

SAP SuccessFactors HXM Core 2111

Attachments

Pasted image.png
Pasted image.png
Pasted image.png