Symptom
The Error "The request URI contains an invalid key predicate" is Raised by an OData Request in SAP S/4HANA Cloud
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Perform an OData call using an S/4HANA Cloud OData Service e.g. a GET call
- The Error "The request URI contains an invalid key predicate" is Raised
Cause
Keys are missing in the URI
Resolution
- Send a $metadata request to the given service.
- Search for the <Key>...</Key> tag under the given EntityType (<EntityType Name="<name>">
- The entries between the Key tags are the key properties and those all have to be defined in a GET Entity request.
See Also
Keywords
SAP S/4HANA Cloud, S4_PC, S4_1C, X4BC, S4HC, S/4HC, The request URI contains an invalid key predicate, URI, Key, $metadata , KBA , OPU-GW-COR , Framework , Problem
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions