<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Labeling issues/bug with layer of selected features in ArcMap 10.5 in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385637#M13168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also tried to preserve the parent layer selection but I too am loosing the selected layers. 10.5.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2018 01:29:47 GMT</pubDate>
    <dc:creator>NaomiBegg2</dc:creator>
    <dc:date>2018-01-11T01:29:47Z</dc:date>
    <item>
      <title>Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385628#M13159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having labeling issues in ArcMap 10.5 with lines and polygons layers created from a selection, I have not tried to label a selection of points but I'm guessing the issues is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I select features for my map and create a layer of my selection.&lt;/P&gt;&lt;P&gt;2. I open the Layer Property window for the new layer that contains the selected features.&lt;/P&gt;&lt;P&gt;3. Under the Label tab I check 'Label features in this layer', change the Label Field and click OK.&lt;/P&gt;&lt;P&gt;4. The window closes and all features from the layer I selected from appear with the label I selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some things I found that need to be noted about this issues/bug:&lt;/P&gt;&lt;P&gt;1. If I create a layer of my selections and on turn on the label but &lt;STRONG&gt;not&lt;/STRONG&gt; change the Label Field everything is good to go, the layer of selected features appears as it should with 'default' label. The only work around I have is to create a Shapefile of my selection.&lt;/P&gt;&lt;P&gt;2. I don't have to turn labels on to have this happen, all I have to do is change the Label Field.&lt;/P&gt;&lt;P&gt;3. If I open the attribute table of the layer created from my selection only the selected features are in the table, but after I close the attribute table and go through the steps above all features from the source layer appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 17:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385628#M13159</guid>
      <dc:creator>Kevin_Sieger</dc:creator>
      <dc:date>2017-10-17T17:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385629#M13160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting the same behavior. I'm running 10.5.1 on Windows 10. I uninstalled and reinstalled the program, but that didn't fix the issue. In case the original poster's issue isn't totally clear, the problem is that when you apply any change to a layer created by selecting features, the change erases the selection and applies to all of the features in the layer (e.g. if you select 5 of 10 polygons, create a layer, symbolize it (lets say make it green rather than yellow) and then make any change to the labels, all 10 polygons will change. You will have 10 green polygons rather than 5 yellow and 5 green). The only other piece of information that I can add is that changing the placement properties (without even applying the labels) creates the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Downgrading to 10.5 solved the problem for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 13:56:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385629#M13160</guid>
      <dc:creator>JasonGlatz</dc:creator>
      <dc:date>2017-10-20T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385630#M13161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've also had the same issue with selecting lines but have not had a need to see if the same thing happens with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385630#M13161</guid>
      <dc:creator>Kevin_Sieger</dc:creator>
      <dc:date>2017-12-07T15:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385631#M13162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm that this happens with points as well in 10.5.1 for me. That being said, this looks like a relatively old issue, Given Kevin's findings in other threads.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/53023?commentID=734783#comment" title="https://community.esri.com/message/734783-re-selections-saved-as-layers-revert-to-original-table?commentID=734783#comment-734783"&gt;https://community.esri.com/message/734783-re-selections-saved-as-layers-revert-to-original-table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385631#M13162</guid>
      <dc:creator>PhilippConner</dc:creator>
      <dc:date>2017-12-13T16:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385632#M13163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had this problem for several versions of ArcGIS now, but it seems to have gotten much worse with 10.5.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 22:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385632#M13163</guid>
      <dc:creator>RusselTaylor</dc:creator>
      <dc:date>2017-12-21T22:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385633#M13164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been using the software since 3.2 and have never run into this issue until we upgraded to 10.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385633#M13164</guid>
      <dc:creator>Kevin_Sieger</dc:creator>
      <dc:date>2017-12-27T16:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385634#M13165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the exact same issue. As soon as I go to layer properties on a selection layer, and hit OK, I completely lose the selection. This is very annoying. Has anyone found a workaround/fix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 01:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385634#M13165</guid>
      <dc:creator>JasonBarnes1</dc:creator>
      <dc:date>2018-01-10T01:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385635#M13166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as&amp;nbsp;you preserve the selection in parent layer it works fine. even if you change the labeling field it shows only selected labels in selection layer.&amp;nbsp;once you release your selection in parent layer and try to refresh the layer by switching on/off it displays all the features.&amp;nbsp;as both&amp;nbsp;the layers are pointing to same underlying&amp;nbsp;data source it may preserve it until the selection was preserved. I tested it in 10.5, I am not sure how was the behavior in 10.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 07:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385635#M13166</guid>
      <dc:creator>Madanbhurati</dc:creator>
      <dc:date>2018-01-10T07:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385636#M13167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this is not the case for me. Even while preserving the parent layer selection I lose the selection in the selected layer. 10.5.1. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 17:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385636#M13167</guid>
      <dc:creator>JasonBarnes1</dc:creator>
      <dc:date>2018-01-10T17:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385637#M13168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also tried to preserve the parent layer selection but I too am loosing the selected layers. 10.5.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 01:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385637#M13168</guid>
      <dc:creator>NaomiBegg2</dc:creator>
      <dc:date>2018-01-11T01:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385638#M13169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've seen the question come up several times (this post and others)- how to work around or deal with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do a lot of data collection and custom mapping, I work for an airport, there's a lot to do. I haven't found a work around that's 'easy' or simple or doesn't involve extra steps when it comes to labeling a layer created from selected features, but what I have found does deal with the labeling issue and solves some other issues too. I think this is the best most direct work around and, going forward, even if Esri fixes the labeling issue, I'm going to keep doing it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of my maps and projects has it own folder, mxd, and File Geodatabase (or Personal depending on the project) which contains all custom Feature Classes and Tables for the map/project. My work around is to export my selection to a Feature Class in the GDB instead of a creating a layer of selected features in the mxd. I create maps for various departments such as Properties, Environmental, Operations, and Maintenance to the Airport Director. It has happened many times that I have had to come back days, weeks or months later to make changes to a map.This usually involves making changes to a layer(s) of selected features. I have silently cursed or have gotten frustrated trying to remember the selection or redoing the selection because I missed a feature or two or have gotten too many or the wrong ones. A custom layer in a GDB with a mxd in a folder, the data is there, it's easy to make needed changes, and no cursing, headaches or frustrations or labeling issues. The labeling issue has added to the frustration when going back to some of the maps that were created before we started having labeling issues. As I said before, we only started having the labeling issue with our move to 10.5.1. There have been a few instances where I have exported my selection to a Shapefile but have stopped creating Shapefiles due to having to stop editing one layer to start editing another, a GDB solves the stop/start when editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Labeling issue aside, I've found creating custom layers of features an easy way to preserve and recover all of your data after a map/project has been archived and then later on reopened for whatever reason. With reopening maps I have had issues trying to recreate selections due to disconnected data. It also makes it easier for someone not familiar with the project to recreate the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I can hear it because I've heard it before, if you have custom layers and the file path changes you have to reconnect all of the layers. Based on the larger picture, I would rather reconnect 20 layers of data than sit there and try to figure out what was in a selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I know it's extra work to create a GDB for every map but in the end I think it has saved me time and if you have to deal with funding/budget it'll save money.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385638#M13169</guid>
      <dc:creator>Kevin_Sieger</dc:creator>
      <dc:date>2018-01-11T15:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385639#M13170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just experienced this problem as well in 10.5.1. My easy workaround was to make the selection layer, then export the data into my geodatabase. Since ArcMap prompts if you want to add the layer to the map, it's really only a couple of extra clicks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 22:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385639#M13170</guid>
      <dc:creator>JenniferNolan</dc:creator>
      <dc:date>2018-02-04T22:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385640#M13171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently the bug is still present in ArcMap 10.6 too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 00:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385640#M13171</guid>
      <dc:creator>NaomiBegg2</dc:creator>
      <dc:date>2018-02-05T00:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385641#M13172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone posted (on another page I'm following about this same issue) about a fix with 10.6.1 release. I have no way to verify his post, I searched for the bug but didn't find anything. Here is where his post is- &lt;A href="https://community.esri.com/thread/53023"&gt;Selections saved as layers revert to original table&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398614_pastedImage_2.png" style="width: 620px; height: 147px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 18:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385641#M13172</guid>
      <dc:creator>Kevin_Sieger</dc:creator>
      <dc:date>2018-03-12T18:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385642#M13173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;&lt;SPAN style="font-size: 15px;"&gt;Here's the webpage for BUG-000106791:&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwNjc5MQ==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwNjc5MQ=="&gt;BUG-000106791: In ArcGIS Desktop 10.5.1, creating a layer from the ..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround suggested by ESRI is not a viable alternative:&lt;/P&gt;&lt;P&gt;"Export the data and then make changes to it by selecting the features &amp;gt; Right-click Layer &amp;gt; Data &amp;gt; Export Data."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could this bug be fixed for version 10.5.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 13:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385642#M13173</guid>
      <dc:creator>JoãoMartins3</dc:creator>
      <dc:date>2018-03-17T13:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385643#M13174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've run into the same problem, which only appeared after moving to Desktop 10.5.1. I agree that the work-around currently suggested by Esri is less than satisfactory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found the following seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create your selection-based layer as you would normally, but before trying to add labels or change the symbology, open the Python window in ArcMap, then enter this code:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; r &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SelectionLayer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OID@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or, perhaps even better:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; r &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SelectionLayer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OID@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍ &lt;SPAN class="comment token"&gt;#Doing this means there will be no enclosing brackets on the output‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where "SelectionLayer" is the name of your selection-based layer in the ArcMap Table of Contents.&lt;/P&gt;&lt;P&gt;This will print out in the Python window a comma-separated list of all the ObjectIDs for the features in your selection-based layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy that list, then open the Layer Properties for your selection layer and go to the Definition Query tab.&lt;/P&gt;&lt;P&gt;Write the definition query as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTID IN (&amp;gt;&amp;gt;paste the list of OIDs here&amp;lt;&amp;lt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make sure you have the correct field delimiters around the name of the OBJECTID field (i.e., none for an enterprise geodatabase, "" for file geodatabase or shapefile, [] for personal geodatabase).&lt;/P&gt;&lt;P&gt;Essentially, this just 'converts' the selection-based layer into just another layer with a definition query based on the OIDs of your selected features (which I suspect is what's supposed to be happening behind the scenes anyway, but which seems to have gone wrong with 10.5.1, and even earlier for some people).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should then be able to modify the layer (symbology, labels, whatever) without it reverting to show all of the underlying feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I've found this works for me, and avoids having to export copies of the selected features. I'd be curious to hear if it works for other folks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385643#M13174</guid>
      <dc:creator>AndrewLowerre</dc:creator>
      <dc:date>2018-03-22T13:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385644#M13175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had the same happen with my projects. It is a fairly recent problem and I am on 10.6. I just had it happen twice today and figured a way to keep it stable. I made sure the source layer was labeled, then I created the layer from selection. I then shut off the source layer. Everything is okay. This is where labeling the new layer with the properties box creates the issue. I instead used the labeling manager. I changed the expression and the font, and hit apply. It kept the same selection without clearing it. Hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I noticed opening the properties box for anything resets the selection. So if labeling is your only problem, it will work. Anything else will still cause it to clear out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andres&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 19:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385644#M13175</guid>
      <dc:creator>AndresCastaneda</dc:creator>
      <dc:date>2018-07-24T19:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385645#M13176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frustrated by this issue, I tried many things.&amp;nbsp; I discovered that if I alter the field the label is referencing from &lt;STRONG&gt;Label Manager&lt;/STRONG&gt;, it retains the selected set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 17:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385645#M13176</guid>
      <dc:creator>Village_ofDowners_Grove</dc:creator>
      <dc:date>2019-01-04T17:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling issues/bug with layer of selected features in ArcMap 10.5</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385646#M13177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the same problem and it's driving me insane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/labeling-issues-bug-with-layer-of-selected/m-p/385646#M13177</guid>
      <dc:creator>MeganHalbrook</dc:creator>
      <dc:date>2019-11-04T19:03:59Z</dc:date>
    </item>
  </channel>
</rss>

