Hi,
Is there a specific syntax to use SearchCursor with a web feature layer in an arcgis pro map ?
And after save after edited...
Or another Strategy ?
with arcpy.da.SearchCursor(fc_name, ["objectid", "globalid", "SHAPE@"]) as ag_search_cursor:
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
In [42]:
Line 3: with arcpy.da.SearchCursor(fc_name, ["objectid", "globalid", "SHAPE@"]) as ag_search_cursor:
RuntimeError: cannot open 'lineaire'
---------------------------------------------------------------------------
c Thanks for your help
Rémy
Solved! Go to Solution.
Hi @Rémy_Gourrat ,
This indicates that the layer (fc_name) is not accessible from ArcGIS Pro's python.
You can do a simple test such as buffering the same layer with python to double check. If still not accessible, you need to make sure you have the permissions to access the feature layer from your machine.
Hi @Rémy_Gourrat ,
This indicates that the layer (fc_name) is not accessible from ArcGIS Pro's python.
You can do a simple test such as buffering the same layer with python to double check. If still not accessible, you need to make sure you have the permissions to access the feature layer from your machine.
Hi @MehdiPira1
it was the right way.
I designated my layer like this :
fc_name = "lineaire"
But when i add my feature layer to my map, the webfeature layer become a layer group.
So now, i must design my layer like this and it's running now :
fc_name = "myWebFetaureLayer_Name\lineaire"
Good to hear that @Rémy_Gourrat