Hello, getting Resource not found for segment ''. when we run sap/opu/odata/SAP/SRA004_SRV/Travels('2000000155').
For some reason, this GET_ENTITY call works fine in Fiori itself, but when testing the call from gateway client or browser we get that error or sometimes Resource not found for segment 'Travel'.
Tried clearing cache and loading metadata, but that didn't help.
sap/opu/odata/SAP/SRA004_SRV/Travels comes back 200, so it can see the resource.
This also happens in our Z extension of the project, and for any new GET_ENTITY we make in that project.
Any ideas?
Request clarification before answering.
Dave,
In method GET_ENTITY if it does not find any relevant data, how are populating the return structure? I guess you have to send the key atleast back.
What I mean is
When you call sap/opu/odata/SAP/SRA004_SRV/Travels('2000000155')
If the key 2000000155 has valid values to be returned, then you will get the data.
But if you call
sap/opu/odata/SAP/SRA004_SRV/Travels('12345678')
You would get 'Resource not found for segment 'Travel'.
Regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.