How can I test if there was a rollback?
Where do I find the documentation for Feature Layer's edit_feature method's response?
It's not documented here:
https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.edit_features
result = layer.edit_features(updates=records, rollback_on_failure=True)
# looking for something like
if result["rollback"]:
# do something
Unfortunately, the API documentation is incomplete. The official documentation only specifies: "Output: dictionary".