laptop and a wrench

不具合

The Layer.findAndReplaceWorkspacePath command provided in the 'Updating and fixing data sources with arcpy.mapping' documentation does not replace the old SDE connections in an Map Exchange Document (.mdx) file on ArcMap 10.8.1.

ArcGIS for Desktop
不具合 ID 番号 BUG-000148261
送信されましたApril 5, 2022
最終更新日September 19, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.8.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

There are no new updates or fixes to the ArcGIS Desktop resource pages at this time for this workflow. The workaround can be used. Alternatively, consider using ArcGIS Pro's workflows instead in the following documentation: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm.

対処法

Update the SDE connection file in an Map Exchange Document (.mxd) file using a script that takes in a workspace and two SDE files and replaces the references for layers that reference them.

Successful replaceWorkspace.py script

  1. Open ArcMap 10.8.1.
  2. In a blank Map Exchange Document (.mxd) file, add one layer from a file geodatabase.
  3. Then, add two layers from an SDE connection (SQL Server).
  4. Then, add a second SDE connection.
  5. Open replaceWorkspace.py and run the script in Command Prompt or in ArcCatalog.
  6. Open up the output new Map Exchange Document (.mxd) file and verify that the SDE connection has been updated.

再現の手順

不具合 ID: BUG-000148261

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動