ArgumentException: An item with the same key has already been added

Hi, I have duplicate ui element in my project scene, and when try to make build getting the error…
issue also occur when delete any ui element
ArgumentException: An item with the same key has already been added. Key: 2892e2a3-38be-471c-b98f-6366d79e5d9f
System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <ce95f63947c64e4bbf5929ebe610c440>:0) System.Collections.Generic.Dictionary2[TKey,TValue].Add (TKey key, TValue value)

How to resolve this issue?

In order for us to debug this, it would be useful to have A. the full stack trace (the part you posted doesn’t tell us where Unity called the Dictionary function, and/or B. a repro project submitted as a bug report (post the incident number, IN-#####, to this thread).

I’m not sure what you mean by “duplicate UI element.” Do you mean that you duplicated the GameObject in the editor?