Select to view content in your preferred language

Exporting selected features to a new layer but label names not carrying over?

1024
11
12-02-2024 11:32 AM
Labels (3)
BEN12345
Emerging Contributor

Hi all,

Relatively new here. I am creating a boundary of local government wards and want to create a new layer with my selected attributes. I have done this but the label names are not appearing when I create the new shapefile. Is there any idea why this is or am I doing something wrong? I got the original layer form arc online and and have turned label names on which works but when I go to export features the labels don't carry over?

0 Kudos
11 Replies
Eugene_Adkins
Frequent Contributor

Check the attribute information/table for the newly created shapefile. If the field that is used for labeling is populated, just turn on the labels (with the proper field assigned for them) for this newly created shapefile.

LauraGosnold
Occasional Contributor

I came to say what @Eugene_Adkins said.  Carry on.

Robert_LeClair
Esri Esteemed Contributor

To add to what Eugene said - here's the Help documenation of label basics and how to turn on labels - Labeling basics—ArcGIS Pro | Documentation

0 Kudos
BEN12345
Emerging Contributor

In the attribute table it does not show a column for labels just ward code and Local government name. This is for the existing layer and the newly created layer. Although when I turn on labels in the existing layer they show but not for the layer I have created. It says failed to evaluate label expression?

 

0 Kudos
BEN12345
Emerging Contributor

BEN12345_0-1733177814704.png

 

0 Kudos
Eugene_Adkins
Frequent Contributor

In the attribute table, you don't want to look for a column called "label" ... you want to look for a column that contains the information you want to use as the label. In this case, as it seems, you want to check for a column called "WARDNAME" in the shapefile you have created. Verifying the existence of the data used for the label is the first step.

If the data for your labels exists, then the information linked by @Robert_LeClair would be useful for you. It looks as if you may need to update your label expression.

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

As this data is coming from ArcGIS Online, do you have the name of the layer so I may test it on my side?  For the exported layer from the original layer, was it based upon a selection?

0 Kudos
BEN12345
Emerging Contributor

yes layer is called OSNI_Largescale_Boundaries_Wards_2012

 

Yes the new layer created was based on a selected government district from the original layer

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Thank you @BEN12345 - I added the OSNI_Largescale_Boundaries_Wards_2012 layer to a Map View in ArcGIS Pro and turned on labels with the WARDNAME attribute field as the labeling field.  No issues.  I selected 60+ polygons from the original layer and used the Export Features geoprocessing tool to create a new feature class in my project geodatabase.  The newly created layer was added to my map.  I then turned off all the other layers so you can see the labels when I turned them on using the WARDNAME attribute field as the labeling field in the new feature class layer.  Again, no issues.  See the graphic below.  Not sure why your ArcGIS Pro is throwing the error message.  If you go to the right of the label field drop  where WARDNAME is located on the Labeling tab and click Expression.  What is the expression?

Labeling.JPG

0 Kudos