SAP Knowledge Base Article - Public

2570897 - Error Message When Deleting Custom UI Component

Symptom

You are trying to delete some custom UI component (WCF, QA, TT, TI,...), but you are receiving a erro message saying that this UI component is referenced by another UI component or Stable Anchor

Environment

On all versions of SAP Hybris Cloud for Customer and SAP Business ByDesign

Reproducing the Issue

1. Go to Cloud Application Studio and open your custom solution

2. Right click on the UI component that you want to delete and select Delete

3. Receive one of the following erro messages:

File /YABCDEFG_MAIN/SRC/FOLDER/TICOMPONENTNAME_TI.TI.uicomponent can not be cleanup because it is refered by file /YABCDEFG_MAIN/SRC/STABLE_ ANCHORS/EmbeddingAnchor/acbdefghijkelmnoprstuv.uianchor

or

File /YABCDEFG_MAIN/SRC/QACOMPONENTNAME_QA.QA.uicomponent can not be cleanup because it is refered by file /YABCDEFG_MAIN/SRC/WCVIEWCOMPONENTNAME_WCView.WCVIEW.uiwocview

Cause

There are multiple causes for those error message messages:

Cause 1:

When you create a custom Object-Based navigation or Thing-Based navigation, a sequence of UI component (WCF, WCView, OWL, QA, TT, TI....) are created together with some dependecies and references between those UI components. If you try to delete some UI component that is depended or referenced by another UI component, system will not allow the deletion in order to avoid inconsistency on your UI navigation structure. You need to first remove the dependecies and references manually and then delete the UI component. Normally, the UI component are referenced on the following order:

WCF -> WCVIEW -> OWL -> QC -> QV -> TI -> TT

Cause 2:

You still have a Custom Change Transaction (Created via UI designer) on the UI component that you are trying to delete and all Change Transaction bounded to the current UI component should be removed manually first.

Resolution

For Cause 1:

1. Go to Cloud Application Studio and open your custom solution

2. Open the UI component that refereced the UI component that you want to delete

3. Remove the dependecies with the UI component that you want to delete

Or

If you want to delete all nagivation structure, delete the UI components on the following order:

WCF -> WCVIEW -> OWL -> QC -> QV -> TI -> TT

 

For Cause 2:

1. Go to Cloud Application Studio and open your custom solution

2. Open the UI component that you want to delete on UI Designer

3. Remove All Change Transaction bounded to this UI Component

 

In case, you tried those approaches, but you are still receiving the error messages, open a Incident at SAP Cloud Product Support providing the following details:

- Names and Path of the UI component that you want to delete

- Error message (With screenshot if possible)

- Your explict authorization by written to delete the UI component on our side if needed.

Keywords

UI Component; Delete UI component; can not be cleanup because it is refered by file; Change Transaction; UI Designer; , KBA , AP-RC-UIF-UX , UI Framework User Interface Design , Problem

Product

SAP Business ByDesign all versions ; SAP Cloud for Customer all versions