Skip to Content

Adding element with duplicate id in SAP UI5

Jan 24 at 07:43 AM


avatar image

We recently upgraded our SAP ui5 version from 1.38 to 1.44,In the earlier version.

On Navigating back to previous tab in shell tab,We get the error adding element with duplicate id so and so.

Why are there issues in latest version whie this worked fine previously in the earlier version

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Emanuele Ricci Jan 25 at 09:32 AM

Do you really have duplicated ID? As you know elements should have unique IDs.

Could you double check if you made some changes to your code apart form upgrading the UI5 version?

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Sorry we have upgraded from 1.18 to 1.38. and we have used unique ids across the application.We tried to add createID(id name) at both view and controller but that in turn is throwing an error that Id is destroyed.


Why do you generate ID at runtime? Are you not using XML views?