<?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: Invalid Expression error on SelectLayerByAttribute in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736121#M32313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is your only problem, but you need to wrap strings in single quotes, it is covered in the &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/building-a-query-expression.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/building-a-query-expression.htm"&gt;Building a query expression—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; documentation.&amp;nbsp; Try:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;whereclause &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Neighborhoods_2016.NBHD_NAME = 'NEW NBHD'"&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2018 20:31:29 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2018-11-13T20:31:29Z</dc:date>
    <item>
      <title>Invalid Expression error on SelectLayerByAttribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736120#M32312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 15px; color: #333333;"&gt;My Python script uses two feature classes in a file geodatabase in ArcGIS Pro.&amp;nbsp; I select several polygons from the Parcels fc and start the script.&amp;nbsp; The script copies the polygons to the Neighborhoods fc, merges them into one polygon (using Dissolve) and should copy the script parameter entries into several fields of the new Neighborhoods polygon.&amp;nbsp; I have tried many variations on the syntax for the "where clause" in the ArcPy SelectLayerByAttribute function, but always get an Invalid Expression failure on line 41:&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: #000000;"&gt;arcpy.SelectLayerByAttribute_management (fc_out,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, whereclause)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: tahoma, arial, helvetica, sans-serif; font-size: 15px;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: tahoma, arial, helvetica, sans-serif; font-size: 15px;"&gt;Here is the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;#&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# Python Script&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# This script copies polygons from the Lancaster County Parcels feature &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# class into the Neighborhoods feature class and processes them into a&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# single neighborhood, complete with identifying attributes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# Set the current workspace&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; env&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;env.workspace &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"CURRENT"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; datetime&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# Read the input parameter values:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# 0: Neighborhood Name: NbhdName&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# 1: Plan Number part 1: PlanNum1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# 2: Plan Number part 2: PlanNum2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# 3: Plan Density: PlanDensity&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# 4: Plan Date: PlanDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;nbhdName &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy.GetParameterAsText(&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;planNum1 &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy.GetParameterAsText(&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;planNum2 &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy.GetParameterAsText(&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;planNum &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planNum1[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'-'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planNum1[&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'-'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planNum2[&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;planDensity &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; float(arcpy.GetParameterAsText(&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;temp &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy.GetParameterAsText(&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;tempList &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; temp.split(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'/'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;planDate &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; datetime.date(int(tempList[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]),int(tempList[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]),int(tempList[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;planYear &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; int(temp[&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:]) &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;# extract the year from the date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# Copy the currently selected features in the parcels layer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;fc_in &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"Parcels_2016"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;fc_tempin &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"in_memory/Neighborhoods_in"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;fc_tempout &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"in_memory/Neighborhoods_out"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;fc_out &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"Neighborhoods_2016"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;arcpy.CopyFeatures_management(fc_in, fc_tempin)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# Merge the copied parcels before adding to Neighborhoods fc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;arcpy.Dissolve_management(fc_tempin, fc_tempout)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;schema_type &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"NO_TEST"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;arcpy.Append_management(fc_tempout, fc_out, schema_type)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;arcpy.SelectLayerByAttribute_management (fc_in, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"CLEAR_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;whereclause &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'"Neighborhoods_2016.NBHD_NAME" = "NEW NBHD"'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;arcpy.SelectLayerByAttribute_management (fc_out, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, whereclause)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# result = arcpy.GetCount_management(fc_out)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;fields &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"NBHD_NAME"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"SUBPLAN"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"DENSITY_Plan"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"SubPlanDate"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"SubPlanYear"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000;"&gt;# Create update cursor for feature class &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;with&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; arcpy.da.UpdateCursor(fc_out, fields) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; cursor:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; row &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; cursor: &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;# DOES NOT execute on only the new neighborhood&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; nbhdName.Title()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planNum&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planDensity&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; planYear&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; cursor.updateRow(row)&lt;/SPAN&gt;&lt;/DIV&gt;#&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 20:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736120#M32312</guid>
      <dc:creator>CharlesGeiger</dc:creator>
      <dc:date>2018-11-13T20:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error on SelectLayerByAttribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736121#M32313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is your only problem, but you need to wrap strings in single quotes, it is covered in the &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/building-a-query-expression.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/building-a-query-expression.htm"&gt;Building a query expression—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; documentation.&amp;nbsp; Try:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;whereclause &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Neighborhoods_2016.NBHD_NAME = 'NEW NBHD'"&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 20:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736121#M32313</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-11-13T20:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error on SelectLayerByAttribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736122#M32314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you, you got it in one.&amp;nbsp; I had to change one other bit of code:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nbhdName.Title()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;became&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="border: 0px;"&gt;row[&lt;/SPAN&gt;&lt;SPAN style="color: #09885a; border: 0px;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nbhdName.title()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #000000; font-size: 14px;"&gt;Everything works now.&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 20:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/invalid-expression-error-on-selectlayerbyattribute/m-p/736122#M32314</guid>
      <dc:creator>CharlesGeiger</dc:creator>
      <dc:date>2018-11-13T20:48:03Z</dc:date>
    </item>
  </channel>
</rss>

