Symptom
After deleting the job ABC the following error message occurs:
Deletion of the job ABC not allowed; used in org unit XYZ from dd.mm.yyyy to dd.mm.yyyy (ABC represents the job ID, XYZ represents the organizational unit and dd.mm.yyyy represents the time frame).
Environment
SAP Hybris Cloud for Customer
Reproducing the Issue
- Go to the Administrator work center.
- Choose the General Settings view.
- Click the Job Definition hyperlink found under the Company section.
- Show All and click the Go button.
- Select the job ABC (ABC represents the ID of the job).
- Click the Delete button.
- When deleting the job ABC the following error message occurs: Deletion of job ABC not allowed; used in org unit XYZ from dd.mm.yyyy to dd.mm.yyyy.(XYZ represents the organizational unit and dd.mm.yyyy represents the time frame).
Cause
The error message occurs, because the job ABC is already assigned to one or more employee(s).
Even if the employees are not having the Job ABC, it is not possible to delete it as it has the reference in the system.
Resolution
This is the expected system behavior.
You can delete the job ABC, if you set the Expiration Date of it on or after the date employee changes to another job.
To maintain the Expiration Date you can use the following steps:
- Go to the Administrator work center.
- Choose the General Settings view.
- Click the Job Definition hyperlink found under the Company section.
- Show All and click the Go button.
- Select the job ABC.
- Click the Edit button.
- Maintain the respective date in the Expiration Date field.
- Save your changes.
The error message doesn’t occur when deleting the job.
Keywords
KBA , LOD-LE-OM-OM , Org. Management , Problem