Skip to Content
0
Jul 28, 2023 at 03:14 PM

Fragment Duplicate ID during Cross App Navigation

199 Views Last edit Aug 10, 2023 at 08:52 AM 3 rev

Hello Experts,

We have two Apps (SAPUI5 freestyle). When we navigate to App 2 from App 1 sometimes, we have a duplicate ID error on a fragment called directly inside the XML View on App 2 (the fragment is not called in the controller with Fragment.load). The error never happens at the first time of navigation but sometimes, after two, three or four attempts.

We tried to put an ID on the fragment and to destroy the fragment in the event onExit, but it didn’t solve the issue.

These apps are on a Fiori Launchpad Site (cloud) and the error doesn’t happen in localhost.

Error in console : adding element with duplicate id 'application-MyApp-display-component---createView--frag1--CEHeaderTitle-navActionsToolbar' -

UI5 version: 1.108

Thanks for your help.