Is there a limit to the number of characters in a workspace path when using the Pyton Window?This example from a tutorial works fine:>>> mxd.replaceWorkspaces("D:\Student\PythonDesktop10_0\Data\Austin_test.gdb","FILEGDB_WORKSPACE", "D:\Student\PythonDesktop10_0\Data\Westerville.gdb","FILEGDB_WORKSPACE")But this does not:>>> mxd.replaceWorkspaces("D:\Student\PythonDesktop10_0\Data\Westerville.gdb", "FILEGDB_WORKSPACE", "W:\AEP\127142_Opossum_Creek_Smith_Mtn\PER\Environmental\GIS\Data\temp\Austin_test.gdb","FILEGDB_WORKSPACE")Runtime error <type 'exceptions.ValueError'>: MapDocObject: Unexpected error
mxd.replaceWorkspaces(r"D:\Student\PythonDesktop10_0\Data\Westerville.gdb", "FILEGDB_WORKSPACE", r"W:\AEP\127142_Opossum_Creek_Smith_Mtn\PER\Environmental\GIS\Data\temp\Austin_test.gdb", "FILEGDB_WORKSPACE")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.