AnsweredAssumed Answered

RuntimeError: Object: Error in executing tool

Question asked by islgispub on Jul 26, 2019
Latest reply on Sep 18, 2019 by wunderkind

I ran the Clip Raster tool in ArcGIS Pro and then I tested running it directly from the 'copy python command'

 

arcpy.management.Clip(r"E:\\Data\\LiDAR.gdb\\cdem_regional_dem", "32852.3960004291 5546820.25821128 117295.398192037 5609499.40718372", r"E:\\Data\\Output.gdb\DEM_Extent", r"E:\\Data\\BaseData.gdb\\processing_area", "32767", "ClippingGeometry", "NO_MAINTAIN_EXTENT")

ArcGIS Pro worked but running it from the python interpreter directly always yields the following error.

RuntimeError: Object: Error in executing tool

Running the command from within ArcGIS Pro Works, but running it outside of ArcGIS Pro is throwing an error. There is not really anything in the Python Environment that should be creating a difference. I write and run Python fairly often and nothing has changed recently. So I cant figure out why this is happening.

 

Heres the full output from the command line:

 

arcpy.management.Clip(r"E:\\Data\\LiDAR.gdb\\cdem_regional_dem", "32852.3960004291 5546820.25821128 117295.398192037 5609499.40718372", r"E:\\Data\\Output.gdb\DEM_Extent", r"E:\\Data\\BaseData.gdb\\processing_area", "32767", "ClippingGeometry", "NO_MAINTAIN_EXTENT")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 16854, in Clip
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 16851, in Clip
retval = convertArcObjectToPythonObject(gp.Clip_management(*gp_fixargs((in_raster, rectangle, out_raster, in_template_dataset, nodata_value, clipping_geometry, maintain_clipping_extent), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 506, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Object: Error in executing tool

Outcomes