Select to view content in your preferred language

Replace Workspace when Old Workspace has already been deleted -- causes ERROR 000732

518
1
12-20-2010 03:20 PM
LoriEmerson_McCormack
Regular Contributor
How do I fix a broken link when the Old Workspace has already been deleted?  When I try to run my script, I receive ERROR 000732, stating that my Old Workspace does not exist or is not supported.


Old_Source = arcpy.GetParameterAsText(0)    
New_Source  = arcpy.GetParameterAsText(1)

mxd.findAndReplaceWorkspacePaths(Old_Source,New_Source)
Tags (2)
0 Kudos
1 Reply
JamesGustine
Regular Contributor
I think validate is set to "true" by default. Try setting it to false.

mxd.findAndReplaceWorkspacePaths(Old_Source,New_So urce, False).
0 Kudos