Association #TO_COMPOSITION_ROOT in CDS view &1 defined multiple times
Message type: E = Error
Message class: SADL_GW_DT_CDS - Messages CDS Checks
Message number: 025
Message text: Association #TO_COMPOSITION_ROOT in CDS view &1 defined multiple times
What causes this issue?
The association that is annotated with @ObjectModel.association.type:
#TO_COMPOSITION_ROOT is defined multiple times, either in the local CDS
view or through an inheritance from an underlying CDS view.
System Response
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
How to fix this error?
To check the active annotations in the CDS view in Eclipse, right-click
Open With -> Active Annotations.
Define the association annotated with @ObjectModel.association.type:
#TO_COMPOSITION_ROOT only once.
Procedure for System Administrators
Contact the corresponding developer of the CDS view to correct the
error.
Error message extract from SAP system. Copyright SAP SE.
Related Error Messages
SADL_GW_DT_CDS024 Association #TO_COMPOSITION_PARENT in CDS view &1 defined multiple times
SADL_GW_DT_CDS023 Composition of CDS view &1 contains duplicate views.
SADL_GW_DT_CDS027 CDS view &1 is not a consumption view.
SADL_GW_DT_CDS028 Annotation 'ObjectModel.writeDraftPersistence' is missing in CDS view &1.