laptop and a wrench

Bug

Adding attribute indexes to all the sublayers in a hosted feature layer using a ‘for loop’ and the ‘manager.add_to_definition’ methods of ArcGIS API for Python results in a failure.

ArcGIS API for Python
Bug ID Number BUG-000174145
SubmittedFebruary 6, 2025
Last ModifiedJune 24, 2025
Applies toArcGIS API for Python
Version found2.4
Operating SystemWindows Server
Operating System Version2022
StatusAs Designed

Additional Information

Do not provide NAME:' “” ' in the addToDefinition payload while adding an index. Index names should be unique across all layers in the database. Since the index name was repeated in the for loop, it was causing a failure.

Workaround

Do not provide NAME:' “” ' in the addToDefinition payload while adding an index.

Steps to Reproduce

Bug ID: BUG-000174145

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