on 2021 Mar 18 7:48 AM
Hello,
I'm trying to create an xsodata service on Hana calculation view.
But I'm getting error below error:
{ "error": { "code": "", "message": { "lang": "en-US", "value": "Resource not found for the segment 'Results' at position 37."}}}
Below is my service code:
service
{
"test::CV_PH_ODATA_SERVICE" as "PhOdataservice"
keys generate local "ID"
parameters via entity "PhOdata_InputParams" results property "Execute";
}
And below is the url I'm using :
https://myhost:port//ALERTS/RRA_CAMPAIGN_MGR/ph_service.xsodata/PhOdata_InputParams(IP_STORE='2000')/Results?$format=json
Can any one help me with the same.
florian.pfeffer
TIA.
Request clarification before answering.
You got the message
{ "error": { "code": "", "message": { "lang": "en-US", "value": "Resource not found for the segment 'Results' at position 37."}}}
but have defined that the navigation property for the results is called "Execute" (and not Results like you used in the URL above).
So your URL should be
https://myhost:port//ALERTS/RRA_CAMPAIGN_MGR/ph_service.xsodata/PhOdata_InputParams(IP_STORE='2000')/Execute?$format=json
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thankyou for your reponse florian.pfeffer 🙂
As suggested I've changed the url.
But still getting an html issue.
Is this because my Calculation View and xsodata service don't reside at the same path?
Or am i missing on any files ?
PFA the attached screenshot.
TIA. capture1.png
As I said alreay above, check your HANA logs to find out the reason for the internal server error. Without knowing the details of your calc. view implementation nothing more can be said.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.