I am trying to write the code but it gave me the error within the Python window:
>>> mxd = arcpy.mapping.MapDocument("CURRENT")
path = "C:\Student\MapScripting10_0" mxd.replaceWorkspaces(path + r"\City_Westerville.mdb","ACCESS_WORKSPACE",path + r"\Westerville.gdb","FILEGDB_WORKSPACE") Runtime error Traceback (most recent call last): File "", line 1, in File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\utils.py", line 181, in fn_ return fn(*args, **kw) File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy_mapping.py", line 915, in replaceWorkspaces return convertArcObjectToPythonObject(self._arc_object.replaceWorkspaces(*gp_fixargs((old_workspace_path, old_workspace_type, new_workspace_path, new_workspace_type, validate), True))) ValueError: MapDocObject: Unexpected error
I am using ArcGIS 10.1 SP 1 Build 3143 using Python 2.7.2.