Symptom
Odata Query in ‘SurveyResponseCollection’ entity set returns all available records instead of an empty response if the filter applied on 'BusinessTransactionDocumentUUID' does not match any available entry.
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to the Administrator work center
- Go to the OData Service Explorer work center view
- Select c4codataapi
- Click Test
- It opens OData Console
- Search for SurveyResponseCollection in the Entity Sets
- Select Test
- Method = GET and put a search link in the Method (e.g. https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/SurveyResponseCollection?$format=json&$inlinecount=allpages&$select=BusinessTransactionDocumentUUID&$filter=BusinessTransactionDocumentUUID eq 'YYYYYY') *YYYYYY is an UUID that is not maintained in the system
- Click Execute
- Check Response in JSON
Result: All queries are returned
Expected Result: No queries returned.
Cause
This is the current standard behaviour of the OData service for ‘SurveyResponseCollection’ entity set. The additional filters are designed specifically for BusinessTransactionDocumentUUID. This behavior has been developed by design for the SurveyResponseCollection.
Resolution
If the feature/functionality is required urgently, please refer to KBA 3475641 - Functionality Currently not Available.
An alternative option may be to check the corresponding SAP Customer Influence Site to submit an idea:
See Also
KBA 3475641 - Functionality Currently not Available (C4C)
Keywords
odata, SurveyResponseCollection, BusinessTransactionDocumentUUID, filter, no match, returns, all records, empty result, c4codataapi , KBA , LOD-LE-SUR-EXE , Survey execution = runtime , Problem
SAP Knowledge Base Article - Public