I am trying to extract data changes from AGO-hosted feature service. I am referring to the REST API and using Python API feature layer collection extract_change method. According to the documentation, required parameters are 2) layers and 2) layerServerGens. However, when I use the following code, it complains about optional parameters such as geometryType and inSR. I tried to find a sample code that uses the same method but had no luck. Help!
Solved! Go to Solution.
That makes sense. I ended up passing the optional parameters it complained about and it worked.
Hi,
is the change tracking enabled for ArcGIS Online hosted feature services?
Yes, this is the feature service https://services.arcgis.com/DN2fPfpggEPlLhP6/arcgis/rest/services/HydrantInspections/FeatureServer/e...
To me, it looks like a defect in the ArcGIS API for Python. I tested a code snippet using your service, and the ArcGIS API for Python appears to be building a bogus/invalid URL request. For the optional parameters in the REST API Extract Changes call, the ArcGIS API for Python is passing "None" and the REST API considers those invalid.
That makes sense. I ended up passing the optional parameters it complained about and it worked.