<?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.RasterToPolygon works, but tool errors... in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409216#M32281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having problems with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;It returns the following error message even though it is successfully creating the polygon dataset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: ERROR 010157: Unable to open feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can view the polygon output and it is exactly as expected. However, the code fails at this point and returns the error. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 12:53:54 GMT</pubDate>
    <dc:creator>MatthewBarlow</dc:creator>
    <dc:date>2014-02-07T12:53:54Z</dc:date>
    <item>
      <title>arcpy.RasterToPolygon works, but tool errors...</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409216#M32281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having problems with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;It returns the following error message even though it is successfully creating the polygon dataset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: ERROR 010157: Unable to open feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can view the polygon output and it is exactly as expected. However, the code fails at this point and returns the error. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409216#M32281</guid>
      <dc:creator>MatthewBarlow</dc:creator>
      <dc:date>2014-02-07T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.RasterToPolygon works, but tool errors...</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409217#M32282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what is causing the error (may need to contact Tech Support), but you can continue to execute the rest of your script using a try/except.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY")
except ExecuteError:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409217#M32282</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.RasterToPolygon works, but tool errors...</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409218#M32283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Matt,&lt;BR /&gt;&lt;BR /&gt;Not sure what is causing the error (may need to contact Tech Support), but you can continue to execute the rest of your script using a try/except.&amp;nbsp; Ex:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY")
except ExecuteError:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jake, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking I may need to do this exactly... contact Tech Support &amp;amp; pass the error. I will implement your suggestion and raise a support call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-rastertopolygon-works-but-tool-errors/m-p/409218#M32283</guid>
      <dc:creator>MatthewBarlow</dc:creator>
      <dc:date>2021-12-11T18:35:59Z</dc:date>
    </item>
  </channel>
</rss>

