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)
I am having this exact same issue! @XanderBakker