RuntimeError: Object: Error in executing tool

1236
6
Jump to solution
07-26-2019 01:50 PM
Highlighted
New Contributor III

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

Tags (2)
1 Solution

Accepted Solutions
Highlighted
New Contributor II

We nailed down the issue as a conflict between AutoCAD’s River and Flood module with ArcGIS Pro. After uninstalling that AutoCAD module we no longer have this issue on our workstations.

View solution in original post

6 Replies
Highlighted
New Contributor II

We are experiencing the same exact problem on some workstations. arcpy tools fail in IDLE with that error but work fine in Pro.

Reply
0 Kudos
Highlighted
New Contributor III

I've been working through the 'update real-time data' example on :Update Real-Time Data with Python | Learn ArcGIS and have run into the same problem. The first tool the script accesses is arcpy.management.CreateFileGDB and that gives a runtime error "RuntimeError: Object: Error in executing tool" but it works within ArcGIS Pro.

Initially I thought it was something to do with my setup as I've had problems with ArcGIS Pro licensing, so it is good to know I'm not alone.

Reply
0 Kudos
Highlighted
New Contributor III

Even with a fresh install, the problem still persists.

arcpy 2.7 does works however.

I am curious, do anyof you have other programs installed (AutoCAD, Visual Studio, MondgoDB, etc) I am starting to think that there is a seperate program entirely that is causing the problem, but I don't want to start uninstalling everything

Reply
0 Kudos
Highlighted
New Contributor II

We nailed down the issue as a conflict between AutoCAD’s River and Flood module with ArcGIS Pro. After uninstalling that AutoCAD module we no longer have this issue on our workstations.

View solution in original post

Highlighted
New Contributor III

As soon as I uninstalled those modules everything started working. Much appreciated.

Reply
0 Kudos
Highlighted
New Contributor

Thanks so much Mike!  I have been struggling with this issue off and on for months.  I didn't even know I had the 'AutoCAD River and Flood module' installed...but remoing it fixed my issue!  I came across several other arcpy modules that were affected..things like Rename etc.

How did you track the issue back to the River and Flood module?

Reply
0 Kudos