Snapping two hosted feature layer

148
1
12-04-2020 02:41 AM
HubertDushime
New Contributor

Hello,

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\edit.py", line 319, in Snap raise e File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\edit.py", 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\_base.py", 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
DanPatterson
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