You are receiving an error when you try to delete an UI Component file from your solution.
File /YABC_XX/SRC/.../XYZ.uicomponent can not be cleanup because it is referred by file /YABC_XX/SRC/STABLE_ANCHORS/.../PQR.uianchor (YABC stands for the PDI Solution ID, XYZ Stands for the UI Component Name, PQR stands for the Stable Anchor ID)
- SAP Cloud for Customer
- SAP Business ByDesign
- SAP Cloud Applications Studio
Reproducing the Issue
- Login to SDK
- Open the solution
- Right click on the UI Component file that you want to delete
- Select Delete option
- Error pop ups: File /YABC_XX/SRC/.../XYZ.uicomponent can not be cleanup because it is referred by file /YABC_XX/SRC/STABLE_ANCHORS/.../PQR.uianchor
The issue is caused due to the stable anchors which you have created using the UI Designer.
Stable Anchors are not supposed to be create for certain UI Components as QA, for example. If created then solution will give such inconsistencies.
The stable anchor reference should be deleted from the backend as you would be able to see this reference in the UI designer. Please kindly report an incident for deleting stable anchor.
See also 2182459 - Error When Deleting an UI Component of a Solution from SDK (Internal Use Only)
Delete UI Component Stable Anchor , KBA , AP-RC-BDS-UI , ByDesign Studio UI Generation , How To