SAP Knowledge Base Article - Public

2818051 - Error "Country has references in the Employee Central object , hence it cannot be deleted" when deleting a record of country object

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

  1.  Access Manage Data under Admin Center
  2.  Select country BRA
  3. Try to permanently delete the record 
  4. Get the error"Country XXX has references in the Employee Central object LegalEntity, hence it cannot be deleted" 

error.png

Cause

The country BRA is referenced in the object LegalEntity.

reference.png

Resolution

  1. Access Manage Data under Admin Center
  2. Select the object Legal Entity and the affected legal entity (in this case BestRun Brazil)
  3. 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)
  4. Save
  5. Go to country BRA and delete the desired record
  6. Save
  7. 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

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions