Is This Content Helpful?
We're glad to know this article was helpful.
Why can't I add fields to an ArcSDE feature class, even if it is deployed to ArcGIS Server?
A lock, which ArcGIS Server services apply by default to underlying dataset schemas, does not allow the addition of fields to an ArcSDE feature class if it is deployed to ArcGIS Server. This is reflected in the software if the following error is returned.
Error: Cannot add field to the selected table/feature class because it is in use by another application/user. Lock request conflicts with an established lock.
Note: Schema locking is used to avoid modifications to the source dataset while the service is running. For more information, refer to the following document, ArcGIS Help: Disabling schema locking on a map service.
To add fields to an ArcSDE feature class, stop the service running in ArcGIS Server. Stopping the service abruptly, forcefully stops and prevent other applications or users from accessing the service. To stop the ArcGIS Server services, administrative credentials are required. For more information on database server administration permissions, roles, and granting server administrative permissions to other users, refer to the following document, ArcGIS Help: Alter permissions.
The ArcGIS Server service is in an idle state when stopped and users may update the source dataset schemas. If the service is not idle and users continue to update the source dataset, unexpected behavior may occur, which include queries failing, fields and/or layers missing, as well as service unavailability.
Note: Before stopping ArcGIS Server services, ensure no applications or users are in the midst of modifying the source dataset. Refer to the following document, ArcGIS Help: Disconnect users from dekstop or workgroup geodatabases for the best approach to stop an ArcGIS for Server service.