<?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 010152: Object IGeoDataset is null. Failed to execute (TabulateArea) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281477#M21700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Animul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wondering how you solved this problem? I'm working with a student who is encountering this same error when running an analysis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-kristin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 20:23:10 GMT</pubDate>
    <dc:creator>KristinBott1</dc:creator>
    <dc:date>2012-06-27T20:23:10Z</dc:date>
    <item>
      <title>ERROR 010152: Object IGeoDataset is null. Failed to execute (TabulateArea)</title>
      <link>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281476#M21699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the error message "ERROR 010152: Object IGeoDataset is null. Failed to execute (TabulateArea)" while executing batch tabulate area script. The function of the script is to get raster datasets from the workspace and calculate tabulate area for each raster using a zonal feature data (shape file). I have attached this script with a tool. Problem is I get this error message, I don't know why and where is it coming from. But if I execute the script line by line in the Python window, I get the result (except that GetParameterAsText functions are replaced by the actual paths). Any help?? BTW I am using ArcGIS 10 with Service Pack 3 installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# calculates TabulateArea statistics in batch mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# it uses a shape file as the zone feature, takes multiple rasters from the workspace (inWorkspace) and return the calculated TabulateArea stat for each raster in outWorkspace folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;zoneFeature = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inWorkspace = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outWorkspace = arcpy.GetParameterAsText(2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;env.Workspace = inWorkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Loop through a list of feature classes in the workspace and calculate TabulateArea stat for each raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for rc in arcpy.ListRasters():&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; # Set the output name to be the same as the input name, and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; # locate in the 'outWorkspace' workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; output = os.path.join(outWorkspace, rc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; arcpy.gp.TabulateArea_sa(zoneFeature, "STEWARDLEV", rc, "VALUE", output, 30)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aminul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 23:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281476#M21699</guid>
      <dc:creator>AminulIslam1</dc:creator>
      <dc:date>2012-04-30T23:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 010152: Object IGeoDataset is null. Failed to execute (TabulateArea)</title>
      <link>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281477#M21700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Animul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wondering how you solved this problem? I'm working with a student who is encountering this same error when running an analysis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-kristin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 20:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281477#M21700</guid>
      <dc:creator>KristinBott1</dc:creator>
      <dc:date>2012-06-27T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 010152: Object IGeoDataset is null. Failed to execute (TabulateArea)</title>
      <link>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281478#M21701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this is a bit of a dead thread, but I recently got this same error while writing a script to batch-calculate areas and figured it out. In my case, the zone data set had an unknown projection. Once I defined the projection the command worked fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 20:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-010152-object-igeodataset-is-null-failed-to/m-p/281478#M21701</guid>
      <dc:creator>WestonAnderson</dc:creator>
      <dc:date>2014-04-16T20:29:38Z</dc:date>
    </item>
  </channel>
</rss>

