Symptom
You are receiving the below error message when trying to delete some custom UI components (WCF, QA, TT, TI,...):
- 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
Environment
- SAP Cloud for Customer
- SAP Business ByDesign
- SAP Cloud Applications Studio
Reproducing the Issue
- Go to SAP Cloud Applications Studio and open your custom solution.
- Right click on the UI component (screen) that you want to delete and select Delete.
- 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 components (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.
For example: OWL will have a reference in WCVIEW which in turn will be referred by Work Center (WCF).
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/QA -> QV/QT -> TI/OIF -> TT/PTP
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:
- Go to SAP Cloud Applications Studio and open your custom solution.
- Open the UI component that referenced the UI component that you want to delete.
- 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/QA -> QV/QT -> TI/OIF -> TT/PTP
For Cause 2:
- Go to SAP Cloud Applications Studio and open your custom solution.
- Open the UI component that you want to delete on UI Designer.
- 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 case for SAP Technical 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.
See Also
For SAP Technical Support:
- 2182459 - Error When Deleting an UI Component of a Solution from SDK
Keywords
PDI, SDK, CT, UI, Component, Delete, UI, component, can, not, be, cleanup, because, it, is, referred, by, file, Change, Transaction, UI Designer , KBA , AP-RC-UIF-DT , UI Framework Designtime , How To