2024 Dec 18 8:34 PM - edited 2024 Dec 18 8:40 PM
Hi,
Environment details:
Backend - SAP S4HANA 2022 FPS02
I am encountering a strange issue in SAP Business Application Studio (BAS) while generating a Fiori List Report for a RAP-based OData V4 service. Despite the service being explicitly defined and recognized as OData V4, BAS/Fiori Tools incorrectly treat it as an OData V2 service and generate faulty configurations.
This issue affects all my previously deployed V4 services, which worked successfully earlier. However, when redeploying these services as duplicate apps for testing, BAS incorrectly interprets them as V2 services. As a result, the generated application is broken and fails to function both during preview in BAS and after deployment.
The app fails to load with the following errors:
"[ODataMetadata] initial loading of metadata failed"
"Invalid metadata document."
It is important to note that the same application and service work perfectly fine when previewed locally through Eclipse, which confirms that both the app and the generated OData V4 service, metadata are correct.
Is anyone else facing a similar problem? App generation and deployment has worked absolutely fine in the past with the exact same steps.
Best Regards,
Saurabh
Request clarification before answering.
Thanks, Ian for the quick turn around. That seems to have fixed the problem. I'm able to generate a template-based Fiori app for OData v4 service now.
Just a side-note - For those who had downgraded the Fiori generator as per the suggested temporary workaround using
npm i -g @sap/generator-fiori@1.15.7
would have to install the latest version manually even after restarting the dev space using
npm i -g @sap/generator-fiori
npm package list after restarting the dev space:
user: ########### $ npm -g list
/home/user/.node_modules_global/lib
└── @sap/generator-fiori@1.15.7
After installing the latest Fiori generator:
user: ############ $ npm i -g @sap/generator-fiori
changed 39 packages in 2s
9 packages are looking for funding
run `npm fund` for details
Reshimming asdf nodejs...
user: ############ $ npm -g list
/home/user/.node_modules_global/lib
├── @sap/generator-fiori@1.16.1
In short, restarting the dev space does not auto-update to the latest Fiori generator if you had manually downgraded previously. You would have to upgrade manually.
Having said that, the latest Fiori generator(1.16.1) works fine for OData v4 services. @IanQuigley : Can you please confirm if the presence of /IWBEP/COMMON services is expected in the service selection list?
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.