Select to view content in your preferred language

Error Updating a Feature Service Definition

08-14-2020 11:29 AM
Esri Contributor

I am attempting to update a Feature Service in a 10.7.1 Enterprise, with ArcGIS for Python Api. The Feature Service is backed by a EGDB. When I run with the following code I get an error. I have logged in as an admin. Actually the same admin user that created the feature service. When it gets to line 6 the error is thrown. Everything up to that comes back as expected.

1. search_results ='title: "'+<title>+'*" AND type: "Feature Service"')
2. feature_layer_item = search_results[0]
3. featureLayer_collection = FeatureLayerCollection.fromitem(feature_layer_item)
4. update_dict = {"enableZDefaults": True, "allowUpdateWithoutMValues": True}
5. properites = 
6. featureLayer_collection.manager.update_definition(update_dict)
Anyone encountered this and has a work around or sees my error? Thanks in advance for any help.
0 Kudos
1 Reply
Occasional Contributor II

I am having this exact same issue! @XanderBakker 

0 Kudos