AnsweredAssumed Answered

Looking for Python script to change all SDE datasources in mxd

Question asked by jsn on Mar 1, 2018

Hello everyone,


I am looking for a python script that will change all SDE datasources Ina group of mxd.


I was able to write the code below, but I had to hardcode the "Find_Workspace_Path" and if the map has one workspace path that it is not on the list it does not change it.


MapDocument.findAndReplaceWorkspacePaths(find_workspace_path, replace_workspace_path, {validate})


See attached text file for a sample of the source code.