<?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: Zonal Statistics as Table Tool - Error 999999 - Expected to find comma, colon or start of array in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/zonal-statistics-as-table-tool-error-999999/m-p/1480449#M70684</link>
    <description>&lt;P&gt;I kept getting the error message when using this tool and writing output to a dBASE table. The only thing that worked for me was to write the tables to a geodatabase, which I then exported to CSV.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 18:27:31 GMT</pubDate>
    <dc:creator>kreed</dc:creator>
    <dc:date>2024-05-29T18:27:31Z</dc:date>
    <item>
      <title>Zonal Statistics as Table Tool - Error 999999 - Expected to find comma, colon or start of array</title>
      <link>https://community.esri.com/t5/python-questions/zonal-statistics-as-table-tool-error-999999/m-p/1280262#M67460</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm running the BRAT tool from Riverscapes (&lt;A href="https://brat.riverscapes.net/" target="_blank" rel="noopener"&gt;https://brat.riverscapes.net/&lt;/A&gt;) and keep getting an error message when running part of their table building script.&lt;BR /&gt;&lt;BR /&gt;There's an error message of "Expected to find comma, colon, or start of array" when running the Zonal Statistics as Table tool. I've attached the script that I'm using, and the Traceback.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any insight as to how to fix this error?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Adding "iGeo" attributes to network...&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;While calculating iGeo_ElMax, the tool ran into an error. The following ReachIDs did not recieve correct values:
32, 33, 38, 69, 70, 84, 85, 86, 105, 107, 110, 111, 112, 115, 116, 127, 136, 143, 170, 171, 173, 193, 196, 210, 213, 214, 215, 228, 233, 246, 256, 257, 259, and 263&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;While calculating iGeo_ElMin, the tool ran into an error. The following ReachIDs did not recieve correct values:
32, 38, 69, 82, 84, 109, 110, 111, 112, 115, 116, 142, 143, 170, 171, 172, 173, 188, 192, 193, 212, 213, 214, 215, 227, 228, 233, 241, 245, 256, 257, and 259&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;Calculating drainage area...&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;While calculating iGeo_DA, the tool ran into an error. The following ReachIDs did not recieve correct values:
32, 33, 38, 69, 84, 107, 109, 110, 111, 112, 115, 116, 143, 145, 146, 172, 173, 213, 214, 215, 228, 233, 245, 256, 257, and 259&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;Adding "iVeg" attributes to network...&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 372, in execute
  File "C:\Users\cat30\Documents\ArcGIS\Projects\BRAT_2023\PyCharm\BRAT_table.py", line 148, in main
    iveg_attributes(coded_veg, coded_hist, buf_100m, buf_30m, seg_network_copy, scratch, is_verbose)
  File "C:\Users\cat30\Documents\ArcGIS\Projects\BRAT_2023\PyCharm\BRAT_table.py", line 616, in iveg_attributes
    zonalStatsWithinBuffer(buf_100m, veg_lookup, 'MEAN', 'MEAN', out_network, "iVeg100EX", scratch)
  File "C:\Users\cat30\Documents\ArcGIS\Projects\BRAT_2023\PyCharm\BRAT_table.py", line 433, in zonalStatsWithinBuffer
    stat = arcpy.sa.ZonalStatisticsAsTable(tmp_buff_lyr, 'ReachID', ras, os.path.join(scratch, 'stat'), 'DATA', stat_type)
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 10975, in ZonalStatisticsAsTable
    return Wrapper(
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 55, in swapper
    result = wrapper(*args, **kwargs)
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 10962, in Wrapper
    result = arcpy.gp.ZonalStatisticsAsTable_sa(
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: &lt;/SPAN&gt;ERROR 999999:&lt;SPAN class=""&gt; Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Expected to find comma, colon or start of array; state : startOfObject; buffer : {45D22CA8-D3F2-4250-85E2-7589E8DE8494}429222016.cr
Failed to execute (ZonalStatisticsAsTable).&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 16:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zonal-statistics-as-table-tool-error-999999/m-p/1280262#M67460</guid>
      <dc:creator>Cat1</dc:creator>
      <dc:date>2023-04-19T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Zonal Statistics as Table Tool - Error 999999 - Expected to find comma, colon or start of array</title>
      <link>https://community.esri.com/t5/python-questions/zonal-statistics-as-table-tool-error-999999/m-p/1480449#M70684</link>
      <description>&lt;P&gt;I kept getting the error message when using this tool and writing output to a dBASE table. The only thing that worked for me was to write the tables to a geodatabase, which I then exported to CSV.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 18:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zonal-statistics-as-table-tool-error-999999/m-p/1480449#M70684</guid>
      <dc:creator>kreed</dc:creator>
      <dc:date>2024-05-29T18:27:31Z</dc:date>
    </item>
  </channel>
</rss>

