SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.97k stars 1.24k forks source link

Issue with sap.ui.core.Component.create and sap.ui.fl.flexState #4146

Closed Aftab571 closed 1 month ago

Aftab571 commented 1 month ago

Hello everyone,

After updating SAP UI5 to version 1.120.21 ( error also occurs on version 1.120.0 & 1.120.18 ) on our S/4HANA 2023 on-premise system (SAP_BASIS 758, SAP_UI 758), I’ve encountered a random error while resolving the promise of sap.ui.core.Component.create.

altafmohammedaftab_0-1728608352397

Upon deeper investigation, the error seems to originate from sap/ui/fl/apply/_internal/flexState/FlexState.js, specifically in the executeFunction of DataSelector. It appears that one of my components is occasionally missing the runtimePersistence object, which results in the error. This issue occurs inconsistently across multiple components.

altafmohammedaftab_2-1728608971746

https://github.com/SAP/openui5/blame/ed0fe6fb5a803490c5181e72ed1b4b134a7a54db/src/sap.ui.fl/src/sap/ui/fl/apply/_internal/flexState/FlexState.js#L203

altafmohammedaftab_1-1728608686874

I’ve reviewed the version change logs but couldn’t find anything that addresses this specific issue. One of the closest note I could find was : https://me.sap.com/notes/3506053/E (I suspected it was an ui5 version issue and updated my version to 1.120.21 but the error still occurs ).

Any guidance or suggestions would be highly appreciated.

Thank you!

PetyaMarkovaBogdanova commented 1 month ago

Hi @Aftab571 , thank you for sharing your finding! Can I, please, ask you for some simple example on how to reproduce the error, so we can shorten my colleagues` time for coming out with a solution? Best regards, Petya Markova. (UI5 Dispatcher)

Aftab571 commented 1 month ago

Hi Petya, Unfortunately, it's not easy to create a simple example of the error as it involves a nested component. But I can arrange a call and then explain the error to you or open an SAP Ticket and try to give access to the remote system.

Thanks & Regards, Mohammed Aftab.

PetyaMarkovaBogdanova commented 1 month ago

Hi @Aftab571 , ti would be nice if you open a SAP ticket, to test on your system. Thank you! Best regards, Petya Markova. (UI5 Dispatcher)