cancel
Showing results for 
Search instead for 
Did you mean: 

Business Application Studio-Fiori Tools - Fiori app generation broken for RAP-based OData V4 service

saurabh__khare
Participant
1,024

Hi,

Environment details:

Backend - SAP S4HANA 2022 FPS02

SAP Business Application Studio Version: 1.93.1
UI5 Version 1.108.30

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.

saurabh__khare_0-1734553953225.pngsaurabh__khare_1-1734553987670.pngsaurabh__khare_2-1734553997802.pngsaurabh__khare_3-1734554005378.pngsaurabh__khare_4-1734554012259.pngsaurabh__khare_5-1734554020567.png

Best Regards,

Saurabh

View Entire Topic
cesar_gr
Participant
0 Kudos


We compare the last code that we generate and see the difference that you said

cesar_gr_0-1734573193371.png
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! 

 



IanQuigley
Product and Topic Expert
Product and Topic Expert

Hi @cesar_gr, are you able to use the workaround that was documented above? i.e.:

 

  1. In SAP Business Application Studio, select `Terminal -> New Terminal` from the menu options.
  2. In the new terminal, type `npm i -g @SAP/generator-fiori@1.15.7`.  This will install the previous version of the SAP Fiori generator without this bug.
  3. Then please refresh your browser.

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

cesar_gr
Participant
0 Kudos
Thanks @saurabh_khare for share the solution on previous comments. This workaround works for me up to sap fix this issue. Best Regards!
IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hello community
IanQuigley
Product and Topic Expert
Product and Topic Expert
Hello community, we released a new version of the SAP Fiori generator last night with a fix for this issue. Please restart your dev space to ensure the latest version is installed. Best regards, Ian