<?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: How to Stop &amp;quot;SelectLayerByAttribute_management&amp;quot; creating temporary tables, while running script in ArcPro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409750#M70311</link>
    <description>&lt;P&gt;Providing representative code would be helpful because it is likely how you are calling the tool that is causing the issue. &amp;nbsp; From &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-attribute.htm" target="_blank" rel="noopener"&gt;Select Layer By Attribute (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If the input is a feature class or dataset path, this tool will create and return a new layer with the result of the tool applied.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you passing a feature class or dataset path to the tool or the name of a layer or view?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 14:07:49 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2024-04-15T14:07:49Z</dc:date>
    <item>
      <title>How to Stop "SelectLayerByAttribute_management" creating temporary tables, while running script in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409607#M70307</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am running a python script to update fields in a table based on polygons selected within ArcPro, via the python window in ArcPro.&lt;BR /&gt;&lt;BR /&gt;At 3 parts in the script I use "&lt;SPAN&gt;SelectLayerByAttribute_management" to make selections from the table to get specific items from that table using a SQL query.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Each time I call "&lt;/SPAN&gt;&lt;SPAN&gt;SelectLayerByAttribute_management" a temporary view is created within the contents panel which persist after the script is completed.&lt;BR /&gt;&lt;BR /&gt;How can I avoid these from being created? I wish to avoid using&amp;nbsp;arcpy.Delete_management("TEST_FILE_View1") to remove the tables because this adds an extra minute or two to the processing time which is not feasible given this task requires this process to be run many times over. What alternative options do I have?&lt;BR /&gt;&lt;BR /&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 06:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409607#M70307</guid>
      <dc:creator>EdX1</dc:creator>
      <dc:date>2024-04-15T06:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Stop "SelectLayerByAttribute_management" creating temporary tables, while running script in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409653#M70310</link>
      <description>&lt;P&gt;That tool doesn't support geoprocessing environment settings, but try&lt;/P&gt;&lt;P&gt;Project, Options, Geoprocessing ... Add outputs to an open map&lt;/P&gt;&lt;P&gt;Is it toggle on?, if so, try toggling it off.&lt;/P&gt;&lt;P&gt;'memory' workspace is another option to try&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_blank"&gt;Write geoprocessing output to memory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or at the end of your script, you can add another select layer by attribute with the clear selection option&lt;/P&gt;&lt;P&gt;Delete is generally the recommended approach, but it shouldn't take that long, unless you are working with non-locally stored data&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 09:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409653#M70310</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-04-15T09:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Stop "SelectLayerByAttribute_management" creating temporary tables, while running script in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409750#M70311</link>
      <description>&lt;P&gt;Providing representative code would be helpful because it is likely how you are calling the tool that is causing the issue. &amp;nbsp; From &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-attribute.htm" target="_blank" rel="noopener"&gt;Select Layer By Attribute (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If the input is a feature class or dataset path, this tool will create and return a new layer with the result of the tool applied.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you passing a feature class or dataset path to the tool or the name of a layer or view?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409750#M70311</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-04-15T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Stop "SelectLayerByAttribute_management" creating temporary tables, while running script in ArcPro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409987#M70317</link>
      <description>&lt;P&gt;This was the issue!&lt;BR /&gt;I was passing in a complete sde path to the table into my&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;SelectLayerByAttribute&lt;/EM&gt;&amp;nbsp;instead of just passing it the table name of the table I wanted to use, which was open in my ArcPro project!!&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 23:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-stop-quot-selectlayerbyattribute-management/m-p/1409987#M70317</guid>
      <dc:creator>EdX1</dc:creator>
      <dc:date>2024-04-15T23:10:55Z</dc:date>
    </item>
  </channel>
</rss>

