<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: replaceDataSource not renaming table view layer name (ArcGIS 10.0) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448633#M35171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can reproduce the issue.&amp;nbsp; Name should be r/w just like for layers.&amp;nbsp; You said it works on some machines?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If a bug, we'll address in a SP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 16:26:47 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2012-08-07T16:26:47Z</dc:date>
    <item>
      <title>replaceDataSource not renaming table view layer name (ArcGIS 10.0)</title>
      <link>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448632#M35170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table = arcpy.mapping.ListTableViews(mxd, "", df)[0] &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.replaceDataSource(county_fgdb, "FILEGDB_WORKSPACE", countyname, True)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have tried using the "name" property on the TableView object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;table.name = countyname&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;But, we are met with the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;StandaloneTableObject: Set attribute name does not exist.&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have checked the TableView API in 10.0 (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/TableView/00s300000017000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/TableView/00s300000017000000/&lt;/A&gt;&lt;SPAN&gt;) and it states that "name" is read/write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is also strange that it states that it is a StandaloneTableObject instead of TableView.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an idea about this issue? If more information is needed, please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 18:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448632#M35170</guid>
      <dc:creator>KyleSchutt</dc:creator>
      <dc:date>2012-08-06T18:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource not renaming table view layer name (ArcGIS 10.0)</title>
      <link>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448633#M35171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can reproduce the issue.&amp;nbsp; Name should be r/w just like for layers.&amp;nbsp; You said it works on some machines?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If a bug, we'll address in a SP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448633#M35171</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-08-07T16:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource not renaming table view layer name (ArcGIS 10.0)</title>
      <link>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448634#M35172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was confirmed as a bug (NIM083567) and will be addressed for 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448634#M35172</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-08-08T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource not renaming table view layer name (ArcGIS 10.0)</title>
      <link>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448635#M35173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "lyr.name" does not work on any machines as we are using 10.0. But the "replaceDataSource" does not work consistently between different builds of 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we execute the script on a machine with the following credentials, the "replaceDataSource" function renames the Standalone Table to the dataSet name that we passed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI ArcCatalog 10.0 (Build 2414)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;License: ArcInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when we execute the same script on machines the following credentials, the "replaceDataSource" function does NOT rename the Standalone Table to the dataSet name that we passed. The name remains the same as the original Standalone Table name from the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI ArcCatalog 10.0 (Build 3200)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Desktop 10 Service Pack 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;License: ArcInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-or-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI ArcCatalog 10.0 (Build 4000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Desktop 10 Service Pack 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;License: ArcInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have link to that bug report?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 15:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448635#M35173</guid>
      <dc:creator>KyleSchutt</dc:creator>
      <dc:date>2012-08-08T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource not renaming table view layer name (ArcGIS 10.0)</title>
      <link>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448636#M35174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;NIM083567 should address this issue at 10.1 SP1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ReplaceDataSource should NOT rename table layer names in the TOC (it doesn't do this for standard layers).&amp;nbsp; It should simply replace the data source and it is up to you is you want the name to be changed.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;table.name = "something" is all you would need to do after the fix is in place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for reporting this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 14:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/replacedatasource-not-renaming-table-view-layer/m-p/448636#M35174</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-08-09T14:00:03Z</dc:date>
    </item>
  </channel>
</rss>

