<?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.Describe bug when called on GRID raster from Script tool in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386984#M13216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just came across a problem with arcpy.Describe.&amp;nbsp; It's in a simple script to list the files in a directory and summarize the content.&amp;nbsp; I use arcpy.Describe to determine the data type for each file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the script as stand-alone, all is fine.&amp;nbsp; It describes every file.&amp;nbsp; But when I add it to a toolbox and call it as a script tool, I get the error below if the directory contains a raster ESRI GRID file.&amp;nbsp; It seems to do okay on other raster types, like jpg.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This line of code throws the error:&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;desc = arcpy.Describe(f)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Users\xxxxxxxx\DOCUME~1\EXAMPL~1\inventory.py", line 32, in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(f)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\__init__.py", line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 1190, in Describe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.describe(value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\geoprocessing\_bas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.py", line 374, in describe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.Describe(*gp_fixargs(args, True)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The file that broke it is the first ESRI GRID file in the directory.&amp;nbsp; Have tested a number of other types which work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else seen this problem?&amp;nbsp;&amp;nbsp;&amp;nbsp; Is somebody working on fixing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 16:36:28 GMT</pubDate>
    <dc:creator>LT</dc:creator>
    <dc:date>2012-07-25T16:36:28Z</dc:date>
    <item>
      <title>arcpy.Describe bug when called on GRID raster from Script tool</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386984#M13216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just came across a problem with arcpy.Describe.&amp;nbsp; It's in a simple script to list the files in a directory and summarize the content.&amp;nbsp; I use arcpy.Describe to determine the data type for each file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the script as stand-alone, all is fine.&amp;nbsp; It describes every file.&amp;nbsp; But when I add it to a toolbox and call it as a script tool, I get the error below if the directory contains a raster ESRI GRID file.&amp;nbsp; It seems to do okay on other raster types, like jpg.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This line of code throws the error:&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;desc = arcpy.Describe(f)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Users\xxxxxxxx\DOCUME~1\EXAMPL~1\inventory.py", line 32, in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(f)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\__init__.py", line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 1190, in Describe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.describe(value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\ArcPy\arcpy\geoprocessing\_bas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.py", line 374, in describe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.Describe(*gp_fixargs(args, True)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The file that broke it is the first ESRI GRID file in the directory.&amp;nbsp; Have tested a number of other types which work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else seen this problem?&amp;nbsp;&amp;nbsp;&amp;nbsp; Is somebody working on fixing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 16:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386984#M13216</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2012-07-25T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe bug when called on GRID raster from Script tool</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386985#M13217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends how you listed your files and passed your variable to the describe tool. If you used anything but arcpy.ListRasters() or arcpy.ListDatasets it won't work as Esri Grids are stored as folders not files. I'm not sure why it would work as stand alone and not in a script tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 21:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386985#M13217</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-07-31T21:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Describe bug when called on GRID raster from Script tool</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386986#M13218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mathew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I still don't know why it didn't work, but I ran it again on the same machine a few days later and it did.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, I would probably doubt my memory if I hadn't documented the problem in this posting.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe a locking issue?&amp;nbsp; I changed &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;nothing&lt;/SPAN&gt;&lt;SPAN&gt; in the script!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the response. It's nice to hear from someone. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 16:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-describe-bug-when-called-on-grid-raster-from/m-p/386986#M13218</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2012-08-01T16:32:55Z</dc:date>
    </item>
  </channel>
</rss>

