Snapping two hosted feature layer

12-04-2020 02:41 AM
New Contributor


I am trying to snap one hosted layer to another using the arcpy tool from Python, but i am getting the

"File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\", line 319, in Snap raise e File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\", line 316, in Snap retval = convertArcObjectToPythonObject(gp.Snap_edit(*gp_fixargs((in_features, snap_environment), True))) File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\", line 511, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) RuntimeError: Object: Error in executing tool" message.

Any help would be useful

0 Kudos
1 Reply
MVP Esteemed Contributor

The only information in the code at those line numbers for Snap indicates that featurelayers are required.  It says nothing about whether they need to be locally stored or not.

... sort of retired...
0 Kudos