<?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 where clause of my selectlayerbyattribute_management keeps returning error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455325#M35784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Refering to ArcGIS 10 Help, I have tried writting my where clause exactly as stated in the help (using quotes, brakets, etc) and I keep getting Error 000358: Invalid expression Failed to execute (SelectLayerByAttribute).&amp;nbsp; I am running this inside arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.SelectLayerByAttribute_management("zipcode_27012", "NEW_SELECTION", "NAME" = '27012')
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There must be something obvious I am missing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 14:43:36 GMT</pubDate>
    <dc:creator>KP</dc:creator>
    <dc:date>2013-03-26T14:43:36Z</dc:date>
    <item>
      <title>where clause of my selectlayerbyattribute_management keeps returning error</title>
      <link>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455325#M35784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Refering to ArcGIS 10 Help, I have tried writting my where clause exactly as stated in the help (using quotes, brakets, etc) and I keep getting Error 000358: Invalid expression Failed to execute (SelectLayerByAttribute).&amp;nbsp; I am running this inside arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.SelectLayerByAttribute_management("zipcode_27012", "NEW_SELECTION", "NAME" = '27012')
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There must be something obvious I am missing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455325#M35784</guid>
      <dc:creator>KP</dc:creator>
      <dc:date>2013-03-26T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: where clause of my selectlayerbyattribute_management keeps returning error</title>
      <link>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455326#M35785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kevin, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What type of data are your working with (i.e. shapefile, File Geodatabase feature class, Personal Geodatabase feature class)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.SelectLayerByAttribute_management("zipcode_27012", "NEW_SELECTION", "NAME = '27012'")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455326#M35785</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-03-26T15:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: where clause of my selectlayerbyattribute_management keeps returning error</title>
      <link>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455327#M35786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Simply a shapefile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:43:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455327#M35786</guid>
      <dc:creator>KP</dc:creator>
      <dc:date>2013-03-26T15:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: where clause of my selectlayerbyattribute_management keeps returning error</title>
      <link>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455328#M35787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The syntax I posted initially should work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 18:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455328#M35787</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-03-26T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: where clause of my selectlayerbyattribute_management keeps returning error</title>
      <link>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455329#M35788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ended having to use three(""") to get it to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 19:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-clause-of-my-selectlayerbyattribute/m-p/455329#M35788</guid>
      <dc:creator>KP</dc:creator>
      <dc:date>2013-03-28T19:25:37Z</dc:date>
    </item>
  </channel>
</rss>

