Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 046
Message text: 'filteringFacet' and 'filteringAttribute' are mutually exclusive (&1)
The element is annotated as @EnterpriseSearch.filteringAttribute and as
@EnterpriseSearch.filteringFacet. These annotations are mutually
exclusive, and combined usage does not make sense.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Remove one of the annotations: For highly selective elements (like IDs),
facets do not make any sense - highly selective elements ought to be
treated as filtering attribute. Medium selective elements tend to act as
facets.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_ES046
- 'filteringFacet' and 'filteringAttribute' are mutually exclusive (&1) ?The SAP error message ESH_ENG_CDSVAL_ES046 indicates a conflict between the
filteringFacet
andfilteringAttribute
parameters in a query. This error typically arises in the context of SAP's Enterprise Search or SAP HANA when using Core Data Services (CDS) views, particularly when trying to filter search results.Cause:
The error occurs because both
filteringFacet
andfilteringAttribute
are being used simultaneously in a way that is not allowed. In the context of SAP's search framework, these two parameters are mutually exclusive, meaning you cannot use them together in the same query.
When both are specified in a query, the system cannot determine which filtering method to apply, leading to this error.
To resolve this error, you need to modify your query to use either filteringFacet
or filteringAttribute
, but not both. Here are the steps you can take:
Review Your Query: Check the query parameters you are using. Identify where both filteringFacet
and filteringAttribute
are being set.
Choose One Filtering Method: Decide whether you want to filter by facet or by attribute based on your requirements. Remove the one that is not needed.
Test the Query: After making the changes, test the query again to ensure that it executes without errors.
By following these steps, you should be able to resolve the ESH_ENG_CDSVAL_ES046 error and successfully execute your query.
Get instant SAP help. Sign up for our Free Essentials Plan.
ESH_ENG_CDSVAL_ES045
'filteringAttribute': Empty object does not make sense (&1)
What causes this issue? Annotation object @EnterpriseSearch.filteringAttribute is defined without any further specification. This does not make sense...
ESH_ENG_CDSVAL_ES044
'filteringAttribute.displayPosition': Duplicate value &2 (&1)
What causes this issue? Value &V1& is defined several times for @EnterpriseSearch.filteringAttribute.displayPosition; or, the same value is u...
ESH_ENG_CDSVAL_ES047
'defaultValueSuggestElement': invalid data type (&1)
What causes this issue? The annotation @EnterpriseSearch.defaultValueSuggestElement must not be applied on elements of the ABAP-data types STRING, SS...
ESH_ENG_CDSVAL_ES048
'snippets' requires fulltext index (&1)
What causes this issue? The annotation @EnterpriseSearch.snippets can work at runtime only if the data base column has afulltext index defined.Syste...
Click on this link to search all SAP messages.