Do you have any question about this error?
Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 038
Message text: 'order.by' and 'order.byReference' are mutually exclusive (&1)
The element is annotated by @EnterpriseSearch.filteringFacet.order.by
and by @EnterpriseSearch.filteringFacet.order.byReference at the same
time. These annotations are mutually exclusive.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Decide for one or the other annotation.
@EnterpriseSearch.filteringFacet.order.by is the easier formulation and
should provide for almost all scenarios.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_ES038
- 'order.by' and 'order.byReference' are mutually exclusive (&1) ?The SAP error message ESH_ENG_CDSVAL_ES038 indicates that there is a conflict in the use of the
order.by
andorder.byReference
parameters in a CDS (Core Data Services) view or query. This error typically arises when both parameters are specified in a way that is not allowed, as they are mutually exclusive.Cause:
order.by
and order.byReference
at the same time. These two parameters are designed to control the ordering of the results returned by the query, but they cannot be used together because they serve similar purposes in different contexts.order.by
is used to specify the ordering of the results based on specific fields, while order.byReference
is used to order results based on a reference field.To resolve this error, you need to ensure that only one of the two parameters is used in your query. Here are the steps to fix the issue:
Review the Query: Check the query or CDS view definition where the error is occurring. Look for the usage of order.by
and order.byReference
.
Choose One Parameter:
order.by
and remove any reference to order.byReference
.order.byReference
and remove any reference to order.by
.Test the Query: After making the necessary changes, execute the query again to ensure that the error is resolved.
By following these steps, you should be able to resolve the ESH_ENG_CDSVAL_ES038 error and successfully execute your query.
Get instant SAP help. Start your 7-day free trial now.
ESH_ENG_CDSVAL_ES037
'@UI' must be annotated (at header and elements)
What causes this issue? The presentation of search results on a generic search UI relies on the annotations of domain @UI. Therefore, these annotatio...
ESH_ENG_CDSVAL_ES036
'&1' is currently not considered in ABAP
What causes this issue? Annotation &V1& is not considered in ABAP.System Response The annotation is checked and validated to prevent syntact...
ESH_ENG_CDSVAL_ES039
Annotation &1 is obsolete
What causes this issue? Annotation &V1& is obsolete. There is no annotation to be used instead.System Response The annotation has never been...
ESH_ENG_CDSVAL_ES040
'fieldGroupForSearchQuery.elements': 1-element-group does not make sense
What causes this issue? The group defined by @EnterpriseSaerch.fieldGroupForSearchQuery contains a single element only. This is no group in the stric...
Click on this link to search all SAP messages.