cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

saurabh__khare38
Participant
2,575

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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (2)

Answers (2)

saurabh__khare38
Participant

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:

  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.

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.

saurabh__khare38
Participant
0 Kudos

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?

saurabh__khare_1-1734690432169.png

saurabh__khare_2-1734690494845.png

saurabh__khare_4-1734690566416.png

Regards,

Saurabh

 

IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Saurabh, it might take a little while for your dev space to update with the latest, but it should happen when the new version is released. Hopefully soon for customers, but thanks for mentioning the workaround. In terms of V4 services displayed, nothing should have changed here with the latest fix - the V4 list of services should be the same. Thanks.
saurabh__khare38
Participant
0 Kudos
Hi Ian. Thanks. With 1.15.7 I did not see the /IWBEP/COMMON (0001) services in the list. They have started appearing 1.16.0 onwards.
IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Saurabh. In 1.16.0 we did fix a bug regarding the list of services available in the catalog. In some cases the full list of services was not being returned. This was fixed in 1.16.0, so no difference between 1.16.0 and 1.16.1 in that regard. However, you are correct in that there is a difference between 1.16.1 and 1.15.7, as the fix only came in after 1.15.7. I hope that helps. Regards, Ian