laptop and a wrench

Bug

Attempts to update the '<Group>.protect()' property using ArcGIS API for Python fail with the error message, "KeyError Traceback(Most recent call last)… KeyError: 'protect'."

Last Published: September 24, 2021 ArcGIS API for Python
Bug ID Number BUG-000118767
SubmittedDecember 11, 2018
Last ModifiedFebruary 7, 2025
Applies toArcGIS API for Python
Version found1.5
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

This is not a known issue. The correct way to use a property is to assign values to it and not call it like a function. For example, call the 'protect' property as `g.protect = True`.

Workaround

Change the protection setting in ArcGIS Online.

Steps to Reproduce

Bug ID: BUG-000118767

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options