Hello all, i'm running into a problem i haven't been able to solve. I'm running ArcGIS 10.0Here is a sample of the code i'm currently running.import arcpy from arcpy import env #Establish Workspace env.workspace = "C:/Fakepath.gdb" #Set Variables DATE = arcpy.GetParameterAsText(0) # DDMMMYY, MMM = 3 day abbreviation for month, March = Mar #Integer Conversion INTHEAT = arcpy.gp.Int_sa("MULT" + DATE, "INT" + DATE") arcpy.AddMessage("We now have only whole numbers") arcpy.RasterToPolygon_conversion("INT" + DATE, r'Processed_Points\POLY' + DATE, "SIMPLIFY", "") arcpy.AddMessage("Converted Raster to Polygon")
The script is much longer and complex however it has been failing at Raster To Polygon, displaying this error.<class 'arcgisscripting.ExecuteError'>:ERROR 010151: No features found in C:\Fakepath.gdb\Processed_Points\POLY10MAR14. Possible empty feature class.
Now i've had this problem before in model builder where this tool was originally built. I decided to switch to python as I prefer it over model builder. The model failed in the exact same spot. Now when i run the tool from the arctoolbox the tool runs fine. I should also mention that RasterToPolygon does generate the polygon. That polygon and the one that is generated separately via arctoolbox are the exact same. Anyone have any ideas what is going on here?