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 the below error messages:

  • File /YABCDEFG_MAIN/SRC/FOLDER/TICOMPONENTNAME_TI.TI.uicomponent can not be cleanup because it is referred by file /YABCDEFG_MAIN/SRC/STABLE_ ANCHORS/EmbeddingAnchor/acbdefghijkelmnoprstuv.uianchor
  • File /YABCDEFG_MAIN/SRC/QACOMPONENTNAME_QA.QA.uicomponent can not be cleanup because it is referred by file /YABCDEFG_MAIN/SRC/WCVIEWCOMPONENTNAME_WCView.WCVIEW.uiwocview

Environment

  • SAP Cloud for Customer
  • SAP Business ByDesign
  • SAP Cloud Applications Studio

Reproducing the Issue

  1. Go to SAP Cloud Applications Studio and open your custom solution.
  2. Right click on the UI component that you want to delete and select Delete.
  3. Errors come up

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 dependencies and references between those UI components. If you try to delete some UI component that is depended or referenced by another UI component, the system will not allow the deletion in order to avoid inconsistency on your UI navigation structure.

You need to first remove the dependencies 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 Applications Studio and open your custom solution.
  2. Open the UI component that referenced the UI component that you want to delete.
  3. Remove the dependencies with the UI component that you want to delete

Or

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

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

 

For Cause 2:

  1. Go to Cloud Applications Studio and open your custom solution.
  2. Open the UI component that you want to delete on UI Designer.
  3. Remove All Change Transactions bound to this UI Component.

In case, you tried those approaches, but you are still receiving the error messages, open a incident for 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 explicit written authorization to delete the UI component on our side if needed.

Keywords

PDI, SDK, CT, UI, Component, Delete, UI, component, can, not, be, cleanup, because, it, is, refered, by, file, Change, Transaction, UI Designer , KBA , AP-RC-UIF-DT , UI Framework Designtime , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions