SAP Knowledge Base Article - Public

3147239 - Error while Activating Extension Scenario in Cloud Application Studio

Symptom

You may receive an error while activating an extension scenario in the extension business object.

Error - Element 'XXXXXXX' referenced by node 'Root' of business object extension 'ZZZZZ'; Deletion not possible’.

Environment

 SAP Cloud Application Studio

Reproducing the Issue

  • Go to Cloud Application Studio
  • Open Solution - YXXXXXXXX
  • Open the affected extension BO
  • Right click activate
  • Error appears.

Screen shot of error message.png

Cause

This error is being caused because of the usage of both the [Relation] as well as the [Reference] attributes in common. If in a scenario,  where the field is also being referred by another extension business object (XBO), the deletion of the field fails leading to this error message.

Resolution

The change of a Relation's target attribute is an incompatible change. If the Relation attribute is only being added in current version then the field is deleted and regenerated.

The two annotations will work separately, but the usage of both the [Relation] and the [Reference] attributes in tandem is not supported.

 

See Also

SAP Cloud Application help documentation sectionRelation (Business Object Extension)

Keywords

 Deletion not possible;Reference by node;extension activation error; , KBA , AP-RC-BDS-BO , ByDesign Studio BO definition/generation , Problem

Product

SAP Cloud for Customer core applications 2111