AnsweredAssumed Answered

replaceDataSource not renaming table view layer name (ArcGIS 10.0)

Question asked by kschutt on Aug 6, 2012
Latest reply on Aug 9, 2012 by jbarrette-esristaff
Hello All,

We are trying to update the data source of a broken Table View layer in an MXD. On one machine the layer name is renamed to the dataset name in the new workspace. However, other machines we have tested on do not change the layer's name to the new dataset name.

        table = arcpy.mapping.ListTableViews(mxd, "", df)[0]         table.replaceDataSource(county_fgdb, "FILEGDB_WORKSPACE", countyname, True)

We have tried using the "name" property on the TableView object: = countyname

But, we are met with the following error:
StandaloneTableObject: Set attribute name does not exist.

We have checked the TableView API in 10.0 ( and it states that "name" is read/write.

It is also strange that it states that it is a StandaloneTableObject instead of TableView.

Does anyone have an idea about this issue? If more information is needed, please let me know.