Symptom
When trying to delete country object you get the error "Country BRA has references in the Employee Central object LegalEntity, hence it cannot be deleted"
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 HXM Suite
- SAp SuccessFactors Employee Central
Reproducing the Issue
- Access Manage Data under Admin Center
- Select country BRA
- Try to permanently delete the record
- Get the error"Country XXX has references in the Employee Central object LegalEntity, hence it cannot be deleted"
Cause
The country BRA is referenced in the object LegalEntity.
Resolution
- Access Manage Data under Admin Center
- Select the object Legal Entity and the affected legal entity (in this case BestRun Brazil)
- Take Action/Make correction and delete the association with the country BRA (since country is a required field you can add another country here just during this process)
- Save
- Go to country BRA and delete the desired record
- Save
- Now you can return to the affected legal entity and add the country BRA again
Keywords
Country has references in the Employee Central object , hence it cannot be deleted, country record cannot be deleted, mdf object cannot be deleted, not able to delete country, not able to delete object, association not possible to delete record , KBA , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , LOD-SF-EC-BCI , Manage Business Configuration (BCUI) & Data Models (XML) , Problem