Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 005
Message text: 'key' must be annotated at an element
@EnterpriseSearch.key can be annotated at a view element only.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Remove the annotation wherever it does not relate to a view element.
This annotation is obsolete; it has been replaced by
@ObjectModel.semanticKey!
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_ES005
- 'key' must be annotated at an element ?The SAP error message ESH_ENG_CDSVAL_ES005 indicates that a key must be annotated at an element in a Core Data Services (CDS) view. This error typically arises when you are defining a CDS view and you have not properly specified the key fields that uniquely identify records in the view.
Cause: Missing Key Annotation: The error occurs when one or more fields that should be designated as keys in the CDS view are not annotated with the @Key annotation. Incorrect Field Definition: The fields that are intended to serve as keys may not be correctly defined or may be missing altogether. CDS View Structure: The structure of the CDS view may not align with the requirements for key fields, especially if the view is intended to be used in scenarios that require unique identification of records.
Solution: To resolve this error, you need to ensure that the appropriate fields in your CDS view are annotated as keys.
Get instant SAP help. Sign up for our Free Essentials Plan.
ESH_ENG_CDSVAL_ES004
'expand' must be annotated at an association
What causes this issue? @EnterpriseSearch.expand can be annotated at an association only.System Response The system issues an error message and will...
ESH_ENG_CDSVAL_ES003
Annotation &1 is obsolete; use &2
What causes this issue? Meanwhile, the semantics formerly expressed by annotation &V1& of domain @EnterpriseSearch is available in a general,...
ESH_ENG_CDSVAL_ES006
'@ObjectModel.semanticKey' must be annotated at view
What causes this issue? The usually highly denormalized search-views need a key definition that reduces the cartesian product defined by the view as ...
ESH_ENG_CDSVAL_ES007
'usageMode' must be annotated at an element
What causes this issue? @EnterpriseSearch.usageMode can be annotated at a view element only.System Response The system issues an error message and w...
Click on this link to search all SAP messages.