Bug ID Number |
BUG-000148261 |
Submitted | April 5, 2022 |
Last Modified | September 19, 2024 |
Applies to | ArcGIS for Desktop |
Version found | 10.8.1 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Status | Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
|
Additional Information
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.
Workaround
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.
Steps to Reproduce