Symptom
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>"
Environment
- 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.
Cause
The Description attribute is used as a foreign key and so the change is incompatible with the system.
Resolution
- 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.
- 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):
- Delete the relevant / inconsistent BC Sets.
- Activate, Deploy Business Configuration, Test and Assemble the Solution.
- Deploy this Patch version to Test Tenant.
- Create new Patch in Development Tenant.
- Re-create relevant BC Sets with correct descriptions.
- Activate, Deploy Business Configuration, Test and Assemble the Solution.
- 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.
Keywords
PDI, SDK, toolkit, country, BCC, TAXTYPE, tax type, withholding, , KBA , AP-RC-BDS-BC , ByDesign Studio Business Configuration , SRD-FIN-GLO , Financials Globalization , Problem