I am learning arcpy and the ArcGIS API for Python and I am trying to automate the download, clip, re-style, and re-publish to AGOL of a REST service from another organization. I have been testing the first step of the process, where I clip the REST service, but I end up with a different feature count on my different tests (my last two tests for example, returns 52754 features and 9092 respectively).
Is there a way to prevent this issue?
calgem_wells = arcpy.FeatureSet()
calgem_wells.load('https://gis.conservation.ca.gov/server/rest/services/WellSTAR/Wells/MapServer/0')
##these lines add my clipping polygon
projAOI = arcpy.FeatureSet()
projAOI.load(projAOI_url)
arcpy.analysis.Clip(calgem_wells, projAOI,'clip_wells4')
##an environment is declared in other bits of script
If there are no ways to utilize the REST service consistently in this manner, other suggestions would be appreciated.
Thank you.