laptop and a wrench

漏洞

Diagnose Version Tables and Repair Version Tables fail and return Error 999999 when the sde_tables_locks table has the tables_locks_fk foreign key constraint.

上次发布: January 12, 2021 ArcGIS Pro
漏洞 ID 编号 BUG-000136627
已提交January 8, 2021
上次修改时间July 8, 2025
适用范围ArcGIS Pro
找到的版本2.7
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本2.8
状态Fixed

解决办法

Before running the Repair Version Tables geoprocessing tool, run the following SQL in SQL Server Management Studio on the enterprise geodatabase to drop the 'table_locks_fk' key constraint.

  • ALTER TABLE [sde].[SDE_table_locks] DROP CONSTRAINT [table_locks_fk]
  • GO

Once the key constraint is dropped, run the Repair Version Tables geoprocessing tool.

After the Repair Version Tables geoprocessing tool is run successfully, immediately recreate the 'table_locks_fk' foreign key constraint to avoid other issues such as orphaned connections & locks. Run the following SQL to recreate the 'table_locks_fk' foreign key constraint.

  • ALTER TABLE [sde].[SDE_table_locks] WITH CHECK ADD CONSTRAINT [table_locks_fk] FOREIGN KEY([sde_id])
  • REFERENCES [sde].[SDE_process_information] ([sde_id])
  • ON DELETE CASCADE
  • GO
  • ALTER TABLE [sde].[SDE_table_locks] CHECK CONSTRAINT [table_locks_fk]
  • GO

重现步骤

漏洞 ID: BUG-000136627

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项