I have several mxds with broken data sources to SDE after a database move. I am running a script to update the broken data sources and keep getting an error on broken links to table views. All other layers update correctly.Here is the error I getRuntime error <type 'exceptions.ValueError'>: StandaloneTableObject: Unexpected error
Here's the relevant code where I am getting the error.brokenlist = arcpy.mapping.ListBrokenDataSources(mxd)
for lyr in brokenlist:
if ".sde" in lyr.dataSource:
try:
lyr.replaceDataSource(new_datasource, "SDE_WORKSPACE", lyr.name)
Has anyone encountered this or know a work around?Edit: I've tried it with and without the lyr.name specified.