<?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: Error in executing grid expression. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704531#M54542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get these error messages &lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000824: The tool is not licensed.&lt;/P&gt;&lt;P&gt;Failed to execute (Slope).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every time i run the tool from arcgis and specify the folder for output result it gives me same error, but when i save it in result gdb it's run sucessfully ? what is the reason i don't understands ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Dec 2014 10:39:25 GMT</pubDate>
    <dc:creator>AhsanAbbas</dc:creator>
    <dc:date>2014-12-20T10:39:25Z</dc:date>
    <item>
      <title>Error in executing grid expression.</title>
      <link>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704529#M54540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Every time i run the script i got error "Error executing the grid expression, run time error, Failed to execute (Slope). " ? What is wrong with in code ?&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;When i run the Slope tool in ArcGIS it's give me the same error, but when i run the script in ArcGIS python Command prompt it runs successfully what is the problem, i don't understands ? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;env.workspace = "......."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;if arcpy.CheckExtension("spatial") == "Available":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CheckOutExtension("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outraster = arcpy.sa.Slope("elevation", "PERCENT_RISE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outraster.save("slope_per")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CheckInExtension("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Spatial Analyst Liscence is not avaliable"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 08:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704529#M54540</guid>
      <dc:creator>AhsanAbbas</dc:creator>
      <dc:date>2014-12-20T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in executing grid expression.</title>
      <link>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704530#M54541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;from arcpy.sa import *&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;this line is run before the availability of the extension is made.&amp;nbsp; The arcmap python command line is a different beast...try not to use it, use an external python IDE to test command line code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 10:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704530#M54541</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-20T10:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in executing grid expression.</title>
      <link>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704531#M54542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get these error messages &lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000824: The tool is not licensed.&lt;/P&gt;&lt;P&gt;Failed to execute (Slope).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every time i run the tool from arcgis and specify the folder for output result it gives me same error, but when i save it in result gdb it's run sucessfully ? what is the reason i don't understands ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 10:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704531#M54542</guid>
      <dc:creator>AhsanAbbas</dc:creator>
      <dc:date>2014-12-20T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in executing grid expression.</title>
      <link>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704532#M54543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are in arcmap, go to the Customize menu, select Extensions and toggle on the spatial analyst extension.&amp;nbsp; If you are running from a script, this line needs to have spatial capitalized&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if arcpy.CheckExtension("spatial") == "Available":&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if arcpy.CheckExtension("Spatial") == "Available":&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 16:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-in-executing-grid-expression/m-p/704532#M54543</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-20T16:08:27Z</dc:date>
    </item>
  </channel>
</rss>

