Pyhton script for changing datasource in MXD

Discussion created by diana77 on Jan 3, 2014
Latest reply on Jan 6, 2014 by mvolz47

I wanted to change the datasource of layers in my mxd but my script is not doing this. I am using below:

lyr.replaceDataSource(layer.workspacePath,"SDE_WORKSPACE",newFeatureclassPath, False)

Please help if anybidy has done this before.

Thanks & Regards