<?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 Zonal statistics as a Table error  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-zonal-statistics-as-a-table-error/m-p/336984#M26418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to apply the function&amp;nbsp;"Zonal Statistics as Table" with the arcpy, using every time a default raster and different vector files and I receive the following error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\eclipse\eclipse-workspace\statistics\fuelData.py", line 59, in &amp;lt;module&amp;gt;&lt;BR /&gt; outZasT_fuelType = arcpy.gp.ZonalStatisticsAsTable_sa(fc, zone_field, fuelType_Raster, zonal_output_Path, "NODATA", "ALL")&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.7\ArcPy\arcpy\geoprocessing\_base.py", line 510, in &amp;lt;lambda&amp;gt;&lt;BR /&gt; return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000865: Input value raster: gr30m_density_raster_upd.tif does not exist.&lt;BR /&gt;Failed to execute (ZonalStatisticsAsTable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to mention that the raster and the vector files are on different paths,&amp;nbsp;so I try to set different working environments in the for loop and maybe this is the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I would like to know how I could proceed ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach also the python script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Katerina&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2020 13:38:28 GMT</pubDate>
    <dc:creator>Katerina_Karagiannopoulou</dc:creator>
    <dc:date>2020-01-28T13:38:28Z</dc:date>
    <item>
      <title>Arcpy Zonal statistics as a Table error</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-zonal-statistics-as-a-table-error/m-p/336984#M26418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to apply the function&amp;nbsp;"Zonal Statistics as Table" with the arcpy, using every time a default raster and different vector files and I receive the following error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\eclipse\eclipse-workspace\statistics\fuelData.py", line 59, in &amp;lt;module&amp;gt;&lt;BR /&gt; outZasT_fuelType = arcpy.gp.ZonalStatisticsAsTable_sa(fc, zone_field, fuelType_Raster, zonal_output_Path, "NODATA", "ALL")&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.7\ArcPy\arcpy\geoprocessing\_base.py", line 510, in &amp;lt;lambda&amp;gt;&lt;BR /&gt; return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000865: Input value raster: gr30m_density_raster_upd.tif does not exist.&lt;BR /&gt;Failed to execute (ZonalStatisticsAsTable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to mention that the raster and the vector files are on different paths,&amp;nbsp;so I try to set different working environments in the for loop and maybe this is the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I would like to know how I could proceed ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach also the python script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Katerina&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-zonal-statistics-as-a-table-error/m-p/336984#M26418</guid>
      <dc:creator>Katerina_Karagiannopoulou</dc:creator>
      <dc:date>2020-01-28T13:38:28Z</dc:date>
    </item>
  </channel>
</rss>

