Select to view content in your preferred language

Remove duplicate legend items

2094
10
05-23-2023 02:59 PM
Status: Closed
Labels (1)
wayfaringrob
Honored Contributor

If you have the same layer in your legend twice, you cannot remove one without removing the other. R click > Remove removes both instances even if only one is selected . I'm sure this is supposed to be a "feature" but I propose removing only the entry clicked so I don't have to recreate the formatting of the entry or do some other workaround like adding another legend and moving it there.

10 Comments
AubriKinghorn
Status changed to: Needs Clarification

I'm not sure what you mean by the same layer is added twice. Each layer in a map should only be able to be added to the legend once. How did you get it added twice? Do you have duplicate layers in the map added to the legend as separate items? If you could take some screenshots and describe how you got into this state that would be most helpful.

Cheers,

Aubri

wayfaringrob

@AubriKinghorn  I've taken care of it now. Only one map layer. I don't remember how I got there, sorry.

wayfaringrob

@AubriKinghornOk, I must have brought it in from another legend when I was experimenting with options yesterday -- that does allow you to have two entries from the same layer.

rburke_0-1684943511478.png

 

rburke_1-1684943521787.png

If I click Remove on one...

rburke_2-1684943546399.png

...both disappear:

rburke_3-1684943560052.png

 

AubriKinghorn

@wayfaringrob Thanks for clarifying and pointing out a bug! I'm going to close this issue, because you found a bug where you are allowed to add two of the same legend item to a single legend (this should not be allowed ever) and the idea is based on that bug. We don't track bugs through Ideas, per the submission guidelines.  If you would like to track this bug, please contact Technical Support to log it through them and get a tracking number. 

 

AubriKinghorn
Status changed to: Closed
 
wayfaringrob

@AubriKinghorn  I will not be doing that, thanks.

ZoeBelcher

Has this bug been resolved? im having the same exact issue as wayfaringrob is having. 

AubriKinghorn

@ZoeBelcher The issue wayfaringrob mentioned was fixed in ArcGIS Pro 3.2. There is a different bug with duplicated legend items from shapefiles in ArcGIS Pro 3.3 that has not yet been addressed. You can track it here https://support.esri.com/en-us/bug/a-legend-item-element-gets-duplicated-when-copying-a-sh-bug-00016...

JM32
by

I have this issue in ArcGIS Pro 3.3.1 as of 10/1/2024.

 

In my layout, Pro decided to add two of the same items to my legend contents. When I try to delete the duplicate, it deletes both of the items.

 

Seems like the bug is still present.

 

Nirby
by

Bug is definitely still present. 

Mine occurred when opening the geoprocessing history and re-running a buffer on the same layer with different parameters. When the operation concluded I had two different legend items for the same layer. Attempting to move/remove/reorder somehow duplicated it a third time. 

Appears to be a different bug than the one ESRI linked to. 

The only solution I have found is removing the affected layer from your map frame and then re-adding it. 

Nirby_0-1728061156072.png