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.
<SPAN class="">1. search_results = gis.content.search(query='title: "'+<title>+'*" AND type: "Feature Service"')
</SPAN><SPAN class="">2. feature_layer_item = search_results[0]
</SPAN><SPAN class="">3. featureLayer_collection = FeatureLayerCollection.fromitem(feature_layer_item)
</SPAN><SPAN class="">4. update_dict = {"enableZDefaults": True, "allowUpdateWithoutMValues": True}
</SPAN><SPAN class="">5. properites = featureLayer_collection.properties
</SPAN><SPAN class="">6. featureLayer_collection.manager.update_definition(update_dict)
</SPAN>
Anyone encountered this and has a work around or sees my error? Thanks in advance for any help.