Select to view content in your preferred language

Legend is replicating layers

1783
21
05-23-2024 10:53 AM
ChristineParkerILSR
New Contributor II

I'm using ArcGIS Pro 3.3.0 (updated) on Windows 11. I'm working on some layouts and thought I was going crazy, but for some reason the legend is adding random copies of layers displayed in the map frame. These extra copies don't exist in the map...so it feels like a bug. I've already tried deleting the legend and creating a new one and it's happening again. I've restarted computer/Arc. I have layer visibility turned off in the legend settings. Some of the layers can be toggled off, but some I have to right-click > remove, and then several items will disappear from the legend. 

I've included screenshots of the legend panel, the map frame panel, and what the legend looks like. This is driving me nuts and I feel like this started after the recent update...

Tags (3)
21 Replies
TomBole
Esri Regular Contributor

All, 

First, thanks for the feedback. 

I understand and appreciate everyone's frustration with this issue. Obviously something was missed in testing and certifying the software release. 

Currently we do not know what was missed. That this problem is intermittent makes it even more challenging. That is why it is important to gather as much information as possible. It increases our odds of reproducing the bug. We can't really fix a bug until we can reproduce it and then validate the fix. Otherwise, we are just guessing at the solution.

I'll alert the others on the Layout Team of this issue. Hopefully we can track this down and fix it.

Again, thanks to all for your help!

Tom

TomBole
Esri Regular Contributor

Thanks!

0 Kudos
HollyTorpey_LSA
Occasional Contributor III

FYI, I had this happen to me today in a layout after exporting it as a layout file. I had not yet exported it as a .pdf.

- Holly
0 Kudos
jaredpberger
New Contributor II

I'm having the same issue that other users have described here. I'm using ArcGIS Pro 3.3.0 on Windows 10. I am working with locally stored shapefiles. I set up my layout the way I want, then export. The exported .jpeg looks correct. When I return to the layout in ArcGIS Pro, many of the layers have been duplicated within the legend. If I try to uncheck these layers in the contents panel, the checkbox will not uncheck.

I see this issue has been under discussion for several years, but I saw that it is usually occurring with hosted or online layers. Is it a known issue with local shapefiles as well? Thanks,

0 Kudos
FourCornersMapping
New Contributor III

Same issue here. A duplicate layer was added to the legend (after I made some edits to the layer) but there is only one of that layer in the map. See the parking layers below, the top "Parking Garage" and "Parking Lot" are the original layers, and the duplicate layers are at bottom, which also show the heading.

 Screen Shot 07-12-24 at 05.40 AM.PNG

When I attempt to toggle off the duplicate layer in the legend, it stays checked in the legend items and also remains in the legend, but the original layer is turned off and removed from the legend.

Screen Shot 07-12-24 at 05.42 AM.PNG

Removing the duplicate legend item also removes the original item. 

The only solution I've found is to remove the item from the legend and drag it back into it from the TOC.

0 Kudos
Eugene_Adkins
Occasional Contributor III

My intention isn’t for this comment to sound as snarky as it may, but stuff like this is why Pro updates (and the dependent functionality with server and services and field types, etc.) are so frustrating. Big fancy things are going to be talked about at the User Conference. The reliable functionality of necessary things to a map like a legend … not so much.

HollyTorpey_LSA
Occasional Contributor III

Not that it's a real solution, but unchecking "New layer" and "Layer visibility" in the "Synchronize with map" section of the layout options seems to prevent the behavior.

- Holly
0 Kudos
TomBole
Esri Regular Contributor

All, 

An update.  There is a logged issue - "BUG-000167906 A legend item element gets duplicated when copying a shapefile from a map frame on one layout to another map frame on another layout." Though the title is specific to shapefiles I no longer believe the problem is specific to shapefiles. I've been able to reproduce with file GDB data.

The key to spotting this issue is that the duplication is done on the legend pointing to the map frame/map that you copied the layer from and not legend pointing to the map frame/map you pasted to.

Now that we have a reproducible case we can get our developers debugging the issue. Hopefully the fix is straight forward and one that can be included in a service pack. Of course we need to gather more info before making a call on the service pack.

I want to thank all of you for reporting this issue and providing as much information as you could. Special thanks to those I had the pleasure of meeting at this years UC and troubleshooting this issue in real-time. 

Thanks You!!!!

Tom

HollyTorpey_LSA
Occasional Contributor III

That's great news! Thanks for the update!

- Holly
0 Kudos
TomBole
Esri Regular Contributor

All, 

We've been testing a fix to this issue and so far things are looking good.  Hopefully we will be able to provide the fix in the next 3.3 service pack. We are still evaluating the risk of including this fix into the service pack and testing the fix in general. I'll post once I know for sure it is in the service pack.

Tom