<?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: Using arcpy.SelectLayerBy Attribute_management causing ArcMap 10.0.2 to freeze in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65789#M5398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd wager it has something to do with the square brackets around your field name. Try \"AREA_NAME\" instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I forgot personal GDB need those, Esri hates personal GDB so migrate while you can.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 13:40:56 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2011-09-27T13:40:56Z</dc:date>
    <item>
      <title>Using arcpy.SelectLayerBy Attribute_management causing ArcMap 10.0.2 to freeze</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65788#M5397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running ArcMap 10.0.2 and trying to execute the following command in the Python window but it keeps causes ArcMap to freeze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.SelectLayerByAttribute_management ("Full area polygons layer outline only v5", "NEW_SELECTION", " [AREA_NAME] = 'AREA 3' ")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;Does anyone know what I might be doing wrong? I'm I missing out a stage. I've not typed any other command along with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do the same by using the Select by attribute interactive window, it doesn't freeze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 13:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65788#M5397</guid>
      <dc:creator>TimLangner</dc:creator>
      <dc:date>2011-09-27T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy.SelectLayerBy Attribute_management causing ArcMap 10.0.2 to freeze</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65789#M5398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd wager it has something to do with the square brackets around your field name. Try \"AREA_NAME\" instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I forgot personal GDB need those, Esri hates personal GDB so migrate while you can.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 13:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65789#M5398</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-09-27T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy.SelectLayerBy Attribute_management causing ArcMap 10.0.2 to freeze</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65790#M5399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your quite right. It was that. I was using the syntax for personal geodatabases when I'm working with an SDE geodatabase. My revised code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&lt;SPAN style="font-family:monospace;"&gt;arcpy.SelectLayerByAttribute_management ("Full area polygons layer outline only v5", "NEW_SELECTION", """ [AREA_NAME] = 'AREA 3' """)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Saying that after I got my new code to work and it had selected the features, ArcMap shortly froze. &lt;FONT face="monospace"&gt;&lt;/FONT&gt;However on restarting ArcMap it then worked, after several error messages about valid index range being passed. That may be a freak event, as I'm new to working with the Python window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 13:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-selectlayerby-attribute-management/m-p/65790#M5399</guid>
      <dc:creator>TimLangner</dc:creator>
      <dc:date>2011-09-27T13:51:27Z</dc:date>
    </item>
  </channel>
</rss>

