SAP Knowledge Base Article - Public

3230032 - Invalid Foreign Key error during Save and Activate of BC Set


You are enhancing an SAP Business Configuration Object (BCO) with Business Configuration Set (BC Set) entries for your Localization Solution and you see the below error:

"Invalid Foreign Key: <value>/<attribute>"


  • SAP Business ByDesign
  • SAP Cloud Applications Studio

Reproducing the Issue

You have modified the value of the Description attribute of an entry in the parent BC Set. When activating the Solution or BC Set with a reference to the original parent entry, the error is thrown.


The Description attribute is used as a foreign key and so the change is incompatible with the system.


  1. If the entry in the parent and child BC Sets have been created in the same Solution Patch version, you can delete the entry in the child and then the parent and re-create both entries with the new description.
  1. If the entry was created in a previous Solution Patch version, the deletion of delivered BC Set entries is restricted. The only way to rename the descriptions, is to delete and re-create the BC Set objects (.bcc filetype):
    1. Delete the relevant / inconsistent BC Sets.
    2. Activate, Deploy Business Configuration, Test and Assemble the Solution.
    3. Deploy this Patch version to Test Tenant.
    4. Create new Patch in Development Tenant.
    5. Re-create relevant BC Sets with correct descriptions.
    6. Activate, Deploy Business Configuration, Test and Assemble the Solution.
    7. Deploy this Patch version to Test Tenant.

Note: If you revert back to the previous descriptions, the issue will persist and so you will still need to follow either of the above approaches.


PDI, SDK, toolkit, country, BCC, TAXTYPE, tax type, withholding, , KBA , AP-RC-BDS-BC , ByDesign Studio Business Configuration , SRD-FIN-GLO , Financials Globalization , Problem


SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions