CopyFeatures_management returns "error in executing tool"

265
1
11-14-2021 12:36 AM
veredshasho
New Contributor

i am trying to download data from arcGis server web service which does NOT have query option. 

i try to use: CopyFeatures_management and copy the data to a gdb file, but keep getting "error in executing tool"

this is my code: 

from arcgis.features import FeatureLayer
import arcpy, os
fl = FeatureLayer(url)
fgdb = r"C:\GIS_KARKA\Scripts\MAVAT\mavatTemp.gdb"
gdbFc = os.path.join(fgdb, "MK_mavat_plans")
 
arcpy.CopyFeatures_management(fl, gdbFc)
 
0 Kudos
1 Reply
LouiseB_Esri
Regular Contributor

Would you be able to confirm the link as this returns a page not found message? Or alternatively attach screenshots of the workflow and errors encountered. 

Community Moderator,
Esri Community Team