laptop and a wrench

Bug

The error message “Could not rebuild indexes on the dataset (could not get a lock)” is returned when rebuilding indexes with a Python script on a feature class that a referenced feature service is published from.

ArcGIS Pro
Bug ID Number BUG-000169219
SubmittedJuly 17, 2024
Last ModifiedOctober 10, 2025
Applies toArcGIS Pro
Version found3.0.3
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusNon-Reproducible

Additional Information

This issue is no longer reproducible in ArcGIS Pro 3.5 and above.

Workaround

Disable schema locking on the referenced map service. Refer to this documentation for more information: https://enterprise.arcgis.com/en/server/latest/administer/windows/disabling-schema-locking-on-a-map-service.htm

Note: This issue is not reproduced in ArcMap. 

Steps to Reproduce

Bug ID: BUG-000169219

Software:

  • ArcGIS Pro

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