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.
We compare the last code that we generate and see the difference that you said
maybe @Andre_Fischer can help us?
We are weeks away from going live and we are not being able to modify our apps since this update over wizard
Regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @cesar_gr, are you able to use the workaround that was documented above? i.e.:
This should unblock you. Please know that we are hoping to provide a hotfix update for this issue as soon as we can.
Regards,
Ian
SAP has confirmed that it is a bug introduced with Fiori generator 1.16.0 and they are in the process of releasing a hotfix soon. A possible workaround is to downgrade the Fiori tools version in BAS till the hotfix rolls out.
Hello customer,
I'm sorry that you are having this issue, and I can confirm that we can recreate the issue internally, so it is unfortunately a regression bug that was introduced in 1.16.0 of the Fiori generator.
We are in the process of fixing this, and hope to have a hot-fix released in the coming days. In the meantime, you could work around this by doing the following:
Once you refresh your browser, the older version of the Fiori generator should be available and you can create your application successfully. Please note that you may have to re-install the older version again if your dev space starts and stops.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.7would have to install the latest version manually even after restarting the dev space using
npm i -g @sap/generator-fiorinpm package list after restarting the dev space:
user: ########### $ npm -g list
/home/user/.node_modules_global/lib
└── @sap/generator-fiori@1.15.7After 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.1In 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 |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 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.