<?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 ERROR 999999: Error executing function. Can't build VAT for multiband or floating-poi in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/error-999999-error-executing-function-can-t-build/m-p/457479#M15380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get this error when attempting to automate my geoprocessing in the console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 9, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 6195, in ZonalStatisticsAsTable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Utils.py", line 47, in swapper&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 6187, in Wrapper&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in &amp;lt;lambda&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True)) ExecuteError: ERROR 999999: Error executing function. Can't build VAT for multiband or floating-point raster dataset Failed to execute (ZonalStatisticsAsTable).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first output raster is created correctly, but it never gets to the 2nd. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought my problem might be related to the in-memory files, but that is not the case. Replacing both of the in_memory\\ locations with a disk location gives exactly the same error. Maybe I need to delete something from memory at the end of the for loop, but it's&amp;nbsp; not clear what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;zones = 'HWSDGeolIntersectCopy' landslides = r'USGS\Combined\MitchCatBinary1kmGCS' import arcpy fields = arcpy.ListFields(zones) for field in fields: &amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname = field.name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; newfieldname = 'Fr_' + fieldname &amp;nbsp;&amp;nbsp;&amp;nbsp; zsum_table = arcpy.sa.ZonalStatisticsAsTable(zones, fieldname, landslides, 'in_memory\zsum_' + zones, 'DATA', 'SUM') &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(zsum_table, newfieldname,"DOUBLE") &amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.UpdateCursor(zsum_table) &amp;nbsp;&amp;nbsp;&amp;nbsp; total_count, total_sum = 0,0 &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total_count += row.getValue("count") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total_sum += row.getValue("sum") &amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.UpdateCursor(zsum_table) &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lcb = row.getValue("sum") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Scb = row.getValue("count") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fr = (float(Lcb)/total_sum)/(float(Scb)/total_count) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue(newfieldname, Fr) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.updateRow(row) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.JoinField_management(zones, fieldname, zsum_table, fieldname, newfieldname) &amp;nbsp;&amp;nbsp;&amp;nbsp; # The following code fixes those polygons not contained in the study area, but present in the output map. &amp;nbsp;&amp;nbsp;&amp;nbsp; # It does so by changing the Fr value to 1. 1 may not be correct, but it is a better representation of &amp;nbsp;&amp;nbsp;&amp;nbsp; # a situation where no data exists than 0.&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; expression = "zero2one(!"+newfieldname+"!)" &amp;nbsp;&amp;nbsp;&amp;nbsp; codeblock = """def zero2one(Fr): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if Fr == 0: return 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else: return Fr""" &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management(zsum_table, newfieldname, expression, "PYTHON_9.3", codeblock) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.PolygonToRaster_conversion(zones, newfieldname[0:10], 'in_memory\\' + newfieldname, 'MAXIMUM_COMBINED_AREA', 'NONE', '0.00833333333333') &amp;nbsp;&amp;nbsp;&amp;nbsp; # clean up &amp;nbsp;&amp;nbsp;&amp;nbsp; del rows &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(zsum_table)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 14:40:53 GMT</pubDate>
    <dc:creator>ThomasStanley</dc:creator>
    <dc:date>2014-03-28T14:40:53Z</dc:date>
    <item>
      <title>ERROR 999999: Error executing function. Can't build VAT for multiband or floating-poi</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-999999-error-executing-function-can-t-build/m-p/457479#M15380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get this error when attempting to automate my geoprocessing in the console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 9, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 6195, in ZonalStatisticsAsTable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Utils.py", line 47, in swapper&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 6187, in Wrapper&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics_type)&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in &amp;lt;lambda&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True)) ExecuteError: ERROR 999999: Error executing function. Can't build VAT for multiband or floating-point raster dataset Failed to execute (ZonalStatisticsAsTable).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first output raster is created correctly, but it never gets to the 2nd. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought my problem might be related to the in-memory files, but that is not the case. Replacing both of the in_memory\\ locations with a disk location gives exactly the same error. Maybe I need to delete something from memory at the end of the for loop, but it's&amp;nbsp; not clear what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;zones = 'HWSDGeolIntersectCopy' landslides = r'USGS\Combined\MitchCatBinary1kmGCS' import arcpy fields = arcpy.ListFields(zones) for field in fields: &amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname = field.name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; newfieldname = 'Fr_' + fieldname &amp;nbsp;&amp;nbsp;&amp;nbsp; zsum_table = arcpy.sa.ZonalStatisticsAsTable(zones, fieldname, landslides, 'in_memory\zsum_' + zones, 'DATA', 'SUM') &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(zsum_table, newfieldname,"DOUBLE") &amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.UpdateCursor(zsum_table) &amp;nbsp;&amp;nbsp;&amp;nbsp; total_count, total_sum = 0,0 &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total_count += row.getValue("count") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total_sum += row.getValue("sum") &amp;nbsp;&amp;nbsp;&amp;nbsp; rows = arcpy.UpdateCursor(zsum_table) &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lcb = row.getValue("sum") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Scb = row.getValue("count") &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fr = (float(Lcb)/total_sum)/(float(Scb)/total_count) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue(newfieldname, Fr) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.updateRow(row) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.JoinField_management(zones, fieldname, zsum_table, fieldname, newfieldname) &amp;nbsp;&amp;nbsp;&amp;nbsp; # The following code fixes those polygons not contained in the study area, but present in the output map. &amp;nbsp;&amp;nbsp;&amp;nbsp; # It does so by changing the Fr value to 1. 1 may not be correct, but it is a better representation of &amp;nbsp;&amp;nbsp;&amp;nbsp; # a situation where no data exists than 0.&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; expression = "zero2one(!"+newfieldname+"!)" &amp;nbsp;&amp;nbsp;&amp;nbsp; codeblock = """def zero2one(Fr): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if Fr == 0: return 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else: return Fr""" &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CalculateField_management(zsum_table, newfieldname, expression, "PYTHON_9.3", codeblock) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.PolygonToRaster_conversion(zones, newfieldname[0:10], 'in_memory\\' + newfieldname, 'MAXIMUM_COMBINED_AREA', 'NONE', '0.00833333333333') &amp;nbsp;&amp;nbsp;&amp;nbsp; # clean up &amp;nbsp;&amp;nbsp;&amp;nbsp; del rows &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(zsum_table)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-999999-error-executing-function-can-t-build/m-p/457479#M15380</guid>
      <dc:creator>ThomasStanley</dc:creator>
      <dc:date>2014-03-28T14:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999: Error executing function. Can't build VAT for multiband or floating</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-999999-error-executing-function-can-t-build/m-p/457480#M15381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved my own problem (the 2nd field was the polygon) with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;for field in fields: &amp;nbsp;&amp;nbsp;&amp;nbsp; # Skip useless fields &amp;nbsp;&amp;nbsp;&amp;nbsp; if field.type == "Geometry": continue &amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname = field.name &amp;nbsp;&amp;nbsp;&amp;nbsp; if "ID" in fieldname: continue &amp;nbsp;&amp;nbsp;&amp;nbsp; # Skip floats for now &amp;nbsp;&amp;nbsp;&amp;nbsp; if field.type == "Double": continue &amp;nbsp;&amp;nbsp;&amp;nbsp; if field.type == "Float": continue&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-999999-error-executing-function-can-t-build/m-p/457480#M15381</guid>
      <dc:creator>ThomasStanley</dc:creator>
      <dc:date>2014-03-28T15:29:05Z</dc:date>
    </item>
  </channel>
</rss>

