Runtime error <type 'exceptions.ValueError'>: StandaloneTableObject: Unexpected error
brokenlist = arcpy.mapping.ListBrokenDataSources(mxd) for lyr in brokenlist: if ".sde" in lyr.dataSource: try: lyr.replaceDataSource(new_datasource, "SDE_WORKSPACE", lyr.name)
Did you ever get closure on this. i have the same issue i am just listing broken data sources in a file location using an os.walk script with listbrokendatasources
i have tried to source the table with list table views but hat is not working. this is the second script i have ever made and i am not to savvy on how to approach this.
Lela:
I don't believe python was ever able to handle that situation, so I went through all the mxd files and flagged the broken tableviews into a log file and then fixed them manually (This was a very minor portion of the SDE connections - < 0.1%, thus a small job to perform manually).
see where as mine is a huge deal. i am looking to either use an except system that just ignores them. that would be ok to. the broken sources actually stops my os.walk script when it hits a broken table. is there a way to say "if you run into a broken table ignore it and keep running"
Thank you
Lela Harrington