Extract change with Python

1669
4
Jump to solution
03-25-2020 01:50 PM
AhjungKim4
Occasional Contributor II

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! 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
AhjungKim4
Occasional Contributor II

That makes sense.  I ended up passing the optional parameters it complained about and it worked.  

View solution in original post

0 Kudos
4 Replies
KarstenRank
Occasional Contributor III

Hi,

is the change tracking  enabled for ArcGIS Online hosted feature services?

AhjungKim4
Occasional Contributor II
0 Kudos
JoshuaBixby
MVP Esteemed Contributor

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.

AhjungKim4
Occasional Contributor II

That makes sense.  I ended up passing the optional parameters it complained about and it worked.  

0 Kudos