arcpy.RasterToPolygon works, but tool errors...

Discussion created by matthew.barlow on Feb 7, 2014
Latest reply on Feb 7, 2014 by matthew.barlow
I am having problems with:

arcpy.RasterToPolygon_conversion(inRaster, outPolygons, "NO_SIMPLIFY")

It returns the following error message even though it is successfully creating the polygon dataset:

ExecuteError: ERROR 010157: Unable to open feature class

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?