不具合 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
- Open ArcMap 10.8.1.
- In a blank Map Exchange Document (.mxd) file, add one layer from a file geodatabase.
- Then, add two layers from an SDE connection (SQL Server).
- Then, add a second SDE connection.
- Open replaceWorkspace.py and run the script in Command Prompt or in ArcCatalog.
- Open up the output new Map Exchange Document (.mxd) file and verify that the SDE connection has been updated.
再現の手順