Error Updating a Feature Service Definition

731
1
08-14-2020 11:29 AM
ChristopherDufault
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 = gis.content.search(query='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 = featureLayer_collection.properties 
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
LanceKirby2
Occasional Contributor II

I am having this exact same issue! @XanderBakker 

0 Kudos