on 2021 Oct 31 6:27 PM
Hello,
Hope someone can help me as I'm losing my mind trying to solve this. I go through the openSAP course about RAP and I'm stuck at week 2 unit 6.
Basically when I'm launching a preview for my service binding when I click the 'Go' button on the Fiori app screen I get no data in the Fiori app preview for the 'Travel' node no matter what. I open the browser console and I see the following errors (unable to paste screenshots here):
Assertion failed: PropertyType for property of EntityType TravelType not found!
2021-10-31 19:17:24.037399 'HTTP request failed' while processing GET Travel?sap-client=100&$skip=0&$top=20&$orderby=%20desc&$select=TravelId%2cAgencyId%2cAgencyName%2cCustomerId%2cCustomerName%2cBeginDate%2cEndDate%2cBookingFee%2cCurrencyCode%2cTotalPrice%2cDescription%2cTravelStatus%2cTravelUuid&$inlinecount=allpages - {"statusCode":"400","statusText":"Bad Request","headers":{"Content-Type":"application/json","Content-Length":"580","DataServiceVersion":"1.0"},"body":"{\"error\":{\"code\":\"005056A509B11EE1B9A8FEA8DE87F78E\",\"message\":{\"lang\":\"en\",\"value\":\"Property desc not found in type TravelType\"},\"innererror\":{\"transactionid\":\"190D2E2495FD0050E00617E9E2D0195C\",\"timestamp\":\"20211031181723.3380670\",\"Error_Resolution\":{\"SAP_Transaction\":\"For backend administrators: use ADT feed reader \\\"SAP Gateway Error Log\\\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details\",\"SAP_Note\":\"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)\"}}}}"} sap.ui.model.odata.v2.ODataModel
First of all I don't know what is TravelType mentioned in there. Such thing doesn't exist in any element I created starting from the DB table up to Metadata Extensions for CDS Projection views.
I see the data in ADT when I launch the related CDS view, so no issue here, but not in the UI.
What can I do to fix this? I checked all the objects source code, compared to the ones in github and everything's fine
Is there a way to debug this somehow?
How to analyze this in SAP BTP? I only have eclipse ADT and no SAP GUI access as otherwise I'd love to check some Gateway objects, but with ADT I'm walking in the dark having no clue how this whole thing works and where to look for errors.
Any help will be much appreciated. HELP!
andre.fischer I saw you helped someone here regarding an issue with the flight app (https://answers.sap.com/questions/13504730/abap-rap-odata-v4-draft-flight-demo-test.html) - maybe you'll be able to help me as well. Thanks!
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you're reading this, I faced the same issue as you, and it did work after commenting "sort".
But I was curious why a function like sort would cause any issue. So, I re-checked my code (metadata extension) and found that in Sort I was giving Sort Order by TravelID, whereas the element name is TravelId (lowercase d). with this change I was able to fix the issue and the app is now running with sort. I recommend anyone facing the issue recheck the element names with the CDS fields.
Regards,
N'vn
User | Count |
---|---|
53 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.