<?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 Select by Attributes creats a new layer in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398386#M80657</link>
    <description>&lt;P&gt;When using the Select by Attributes tool it creates a new layer. I don't need a new layer to be created and end up removing the created layer almost immediately. Is there a way to stop the tool from creating a new layer?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 13:26:43 GMT</pubDate>
    <dc:creator>ZM258</dc:creator>
    <dc:date>2024-03-20T13:26:43Z</dc:date>
    <item>
      <title>Select by Attributes creats a new layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398386#M80657</link>
      <description>&lt;P&gt;When using the Select by Attributes tool it creates a new layer. I don't need a new layer to be created and end up removing the created layer almost immediately. Is there a way to stop the tool from creating a new layer?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398386#M80657</guid>
      <dc:creator>ZM258</dc:creator>
      <dc:date>2024-03-20T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attributes creats a new layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398457#M80675</link>
      <description>&lt;P&gt;I'm not encountering this issue but it may help others offer some assistance if you provide the version of Pro you're using and what sort of feature is being selected (i.e. feature class, hosted feature layer, all data regardless of source, etc.), and lastly, if you're using the geoprocessing tool or simply using the "select by attributes" tool on the map ribbon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 15:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398457#M80675</guid>
      <dc:creator>Eugene_Adkins</dc:creator>
      <dc:date>2024-03-20T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attributes creats a new layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398736#M80711</link>
      <description>&lt;P&gt;Whenever I see strange behavior like this, I recommend doing a soft factory reset.&amp;nbsp; You can follow the steps listed &lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-perform-an-arcgis-pro-soft-reset-000027631" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; Once the reset is complete, open your *.aprx and try the Select by Attributes workflow again.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 21:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398736#M80711</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2024-03-20T21:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attributes creats a new layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398778#M80715</link>
      <description>&lt;P&gt;I am using version 3.2.2. The feature being selected is a feature class. Also I am using the Select by attributes on the map ribbon.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 22:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1398778#M80715</guid>
      <dc:creator>ZM258</dc:creator>
      <dc:date>2024-03-20T22:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attributes creats a new layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1593992#M93830</link>
      <description>&lt;P&gt;I'm using ArcGIS Pro 3.3 and seeing similar behavior to what was described by ZM258.&amp;nbsp; In my case, I'm calling SelectLayerByAttribute with Python from a notebook being run within ArcGIS Pro.&amp;nbsp; I could use the Python to delete the unwanted layer, but I'm also wondering if there's a way to turn this off if it's a setting or if this is 'unexpected' behavior.&amp;nbsp; &amp;nbsp;Based on this conversation, I think it must be unexpected.&amp;nbsp; I don't remember it doing this before but I usually work on code outside of Pro.&amp;nbsp; I just tried running the Select layer by attribute tool&amp;nbsp; by hand (with the GUI interface) and it does &lt;EM&gt;not&lt;/EM&gt; appear to add a new layer.&lt;/P&gt;&lt;P&gt;The code below adds 24 layers to the map.&amp;nbsp; The SelectLayerByAttribute creates a layer with a copy of the original with the current month's data selected.&amp;nbsp; &amp;nbsp;The CopyFeatures creates the other 12 with only the selects, as expected.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for month in range(1,13):
    where_clause = f"month='{month}'"
    temp = arcpy.management.SelectLayerByAttribute("whale_points1", "NEW_SELECTION", where_clause)
    byMonth = f"whales{month}"
    arcpy.management.CopyFeatures(temp, byMonth)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 20:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-creats-a-new-layer/m-p/1593992#M93830</guid>
      <dc:creator>LauraTateosian_augori</dc:creator>
      <dc:date>2025-03-10T20:18:24Z</dc:date>
    </item>
  </channel>
</rss>

