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

SAPUI5 Error: adding element with duplicate id

Former Member
39,326

Hello Experts,

I've got a problem and I'm scathing my head for a while. I have two views in an SAPUI5 simple template app I created. Simple with nothing but couple of buttons on them and I'm navigating from View1 to View2 just fine using routing and I'm testing in run as FLP Sandbox. While going back to View1 using routing navigation I get an error "Error: adding element with duplicate id" for some control "application-Test-url-component---List". Just to make it clear I do put in the destroy method in the component.js like it is mentioned here https://archive.sap.com/discussions/thread/3730983

and I do tried destroying view onExit.

Any help would be appreciated.

View Entire Topic
Former Member
0 Likes

@Sebastian Kielhorn - I agree I do not want to and if you see I have it commented it out. It is there just beacuse I tried it and it is still not working. Desperation makes you do crazy things :). Any suggestions?

former_member221786
Active Participant
0 Likes

Ok sounds good so far 🙂

How do you go back to your original view?
Do you do something like window.history.go(-1); or do you navigate forward?

Also where does the following code happen in your application?

this.getRouter().initialize();
carlos_venturo
Participant
0 Likes

can you share your neo app file?