<?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 arcpy.SelectLayerByAttribute_management error message in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-selectlayerbyattribute-management-error/m-p/489290#M38269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following line of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;arcpy.SelectLayerByAttribute_management(gridLyr, "NEW_SELECTION", "\"Page\" Like \'"+ Neighborhood +"%\'")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This line works just fine running directly in Python, or when running as a script tool in toolbox. However, when I publish the toolbox to ArcGIS Server, I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions? I'm not sure what is wrong, since it works great from my script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shawna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 20:53:18 GMT</pubDate>
    <dc:creator>ShawnaErnst</dc:creator>
    <dc:date>2011-12-16T20:53:18Z</dc:date>
    <item>
      <title>arcpy.SelectLayerByAttribute_management error message</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-selectlayerbyattribute-management-error/m-p/489290#M38269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following line of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;arcpy.SelectLayerByAttribute_management(gridLyr, "NEW_SELECTION", "\"Page\" Like \'"+ Neighborhood +"%\'")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This line works just fine running directly in Python, or when running as a script tool in toolbox. However, when I publish the toolbox to ArcGIS Server, I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions? I'm not sure what is wrong, since it works great from my script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shawna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-selectlayerbyattribute-management-error/m-p/489290#M38269</guid>
      <dc:creator>ShawnaErnst</dc:creator>
      <dc:date>2011-12-16T20:53:18Z</dc:date>
    </item>
  </channel>
</rss>

