<?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: Failed to open raster dataset in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28392#M379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has this issue been addressed? I have this problem all the time, and I find that for the most part, even though I receive an error, the raster is created nonetheless.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2012 15:01:32 GMT</pubDate>
    <dc:creator>JamieKass</dc:creator>
    <dc:date>2012-02-03T15:01:32Z</dc:date>
    <item>
      <title>Failed to open raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28389#M376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote a python script that works beautifully, but when I try to run it as a script from ArcToolbox, it crashes when I try to do an Extract By Mask.&amp;nbsp; Here is the problem script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("Spatial") # Loads Spatial Analyst extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dem = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddMessage(dem) # "C:/Elevation Files/dem_file"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bsnDEM = ExtractByMask(dem, basinFile)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which raises the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to open raster dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ExtractByMask).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would this work outside of a tool but not when executed from the toolbox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 22:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28389#M376</guid>
      <dc:creator>JamesHook</dc:creator>
      <dc:date>2011-01-26T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28390#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arcpy.AddMessage(dem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what did it print? or did it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 00:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28390#M377</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-01-27T00:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28391#M378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It printed the correct path for the DEM as indicated in the commented part of the line.&amp;nbsp; If I change the input to a path that doesn't exist, it returns an error saying the layer doesn't exist, instead of the error saying it simply failed to load.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 12:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28391#M378</guid>
      <dc:creator>JamesHook</dc:creator>
      <dc:date>2011-01-27T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to open raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28392#M379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has this issue been addressed? I have this problem all the time, and I find that for the most part, even though I receive an error, the raster is created nonetheless.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/failed-to-open-raster-dataset/m-p/28392#M379</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-02-03T15:01:32Z</dc:date>
    </item>
  </channel>
</rss>

