laptop and a wrench

Bug

The example in the documentation for setting an ArcGIS Enterprise deployment to read-only mode using the ArcGIS API for Python returns an error.

ArcGIS API for Python
Bug ID Number BUG-000170798
SubmittedSeptember 16, 2024
Last ModifiedFebruary 18, 2025
Applies toArcGIS API for Python
Version found2.3.0
Operating SystemWindows Server
Operating System Version2019 64 Bit
Version FixedQ2 2025
StatusFixed

Additional Information

The proper documentation should be: gis.admin.mode = {'read_only' : False} for setting the mode.

Workaround

Use ArcGIS REST API to programmatically set ReadOnly mode or manually set it in the portaladmin website.

Steps to Reproduce

Bug ID: BUG-000170798

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