laptop and a wrench

Bug

When creating a user, the ArcGIS API for Python documentation states the role is optional. If the role is left as none, the following error message is returned: "'NoneType' object has no attribute 'lower'".

ArcGIS API for Python
Bug ID Number BUG-000161671
SubmittedSeptember 26, 2023
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version foundN/A
Operating SystemWindows Server
Operating System Version2019 64 Bit
Version Fixed2.2.0
StatusFixed

Workaround

Make the role required, or change line 3986 in geosaurus\src\arcgis\gis_init_.py to:

The elif role is not 'None' and role.lower() in role_lookup:

Steps to Reproduce

Bug ID: BUG-000161671

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