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
- From the Onboarding Dashboard, under All Tasks tab, select the candidate whose Onboarding process you want to delete.
- From the candidate details page, click **More on the top-right corner of the page and select Action.
- Select Cancel Onboarding from the Actions menu. The Cancel Onboarding for dialog box opens.
- Select the All Onboarding tasks created will be canceled from the system checkbox to acknowledge the result of cancelling the Onboarding process.
- Select the event reason for No-Show from the Select cancellation reason dropdown menu.
- Select Confirm.
- 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
- Go to Admin Center>Picklist Center, and search for event picklist.
- Select the event picklist from the search result.
- 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
- Go to Admin Center Picklist Center, and search for employee-status picklist.
- Select the employee-status picklist from the search result.
- Select the Active version of the employee-status
- 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
- Manage Business Configuration >Employment Info.
- Enable EmpEmploymentTermination and okToRehire
- 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.
- Manage Business Configuration >Employment Info.
- Note mandatory fields.
- Check Onboardee has provided data for all mandatory fields.
If issue is caused by mandatory fields, please find these two possible solutions:
- Mark the field as non-mandatory, if possible.
- 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 for Me
Scenario 3: Event Reason NO_SHOW_EVENT_REPORT is an invalid external code for Country/Region
- Manage Data
- Country/Region
- Select the relevant country
- Check that Event Reason "Cancel Onboarding (NO_SHOW_EVENT_REPORT) is availble
- 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
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:
- Please reach out to our Operation team to execute the script and to update the enddate as Null.
- 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
- Admin Center >Manage Business Configuration
- Navigate to Entity employmentInfo.
- Select HRIS field okToRehire.
- Click the Details button.
- If Visibility of key is "View", Change Visibility to "Edit". (Change visibility to "Edit" in employmentInfo_onboardee data model as well, if applicable.)
- 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
- 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
- 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
Attachments
Pasted image.png |
Pasted image.png |
Pasted image.png |