<?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: Update data source of join table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71684#M5904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Felix:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question for you about your method of updating standalone SDE tables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if you had 1 table that had a SDE connection with user A and another table that had a SDE connection with user B?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would your script update both standalone tables to user A or user B depending upon what you used as your replace_workspace_path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or would your script just update the table for either user A or user B depending upon what you used for your find_workspace_path?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 12:14:58 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2013-06-17T12:14:58Z</dc:date>
    <item>
      <title>Update data source of join table</title>
      <link>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71681#M5901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have compiled a script for migrating mxd's between a staging and productive environment. This script adapts the datasources and replaces qualifiers for label expressions and definition queries on layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works fine except the update of the data source of joined tables / FC. The online help points out that using mxd.replaceWorkspaces() will also update joined tables: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"These methods work recursively through all layers and tables. This means that joined and related tables are also searched and updated (see "Known limitations" section below)." - bit it doesn't...&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Does someone has got an idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Felix&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71681#M5901</guid>
      <dc:creator>GIS_Administratorat_RWE</dc:creator>
      <dc:date>2013-06-14T11:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update data source of join table</title>
      <link>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71682#M5902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to update SDE datasources?&amp;nbsp; I ask because I have a script that updates SDE datasources for feature classes, but I am unable to update standalone tables because I cannot access the SDE connection properties for a standalone SDE table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a situation that you are encountering?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I just log the location of standalone tables and change them manually after the script has completed.&amp;nbsp; I can justify this because there a very few standalone SDE tables compared to SDE feature classes.&amp;nbsp; I'm hoping that ESRI exposes the connection properties for SDE standalone tables with the release of ArcMap v10.2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 15:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71682#M5902</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-14T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Update data source of join table</title>
      <link>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71683#M5903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes I update SDE datasources. Standalone tables works fine with the following lines (hope that helps ;-)):&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;BR /&gt;for table in arcpy.mapping.ListTableViews(mxd, "", df):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replacing tabel wsp: " + table.name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.findAndReplaceWorkspacePath (&amp;lt;oldworkspace&amp;gt;, newworkspace, False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is onlly that joined tables (FC to FC or FX to standalone tables) won't get updated...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Felix&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 05:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71683#M5903</guid>
      <dc:creator>GIS_Administratorat_RWE</dc:creator>
      <dc:date>2013-06-17T05:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update data source of join table</title>
      <link>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71684#M5904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Felix:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question for you about your method of updating standalone SDE tables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if you had 1 table that had a SDE connection with user A and another table that had a SDE connection with user B?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would your script update both standalone tables to user A or user B depending upon what you used as your replace_workspace_path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or would your script just update the table for either user A or user B depending upon what you used for your find_workspace_path?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 12:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71684#M5904</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-17T12:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update data source of join table</title>
      <link>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71685#M5905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using an array of possible workspaces might solve your problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TheWSPReplaceArray=[[oldWSPUser1,newWSPUser1],[oldWSPUser2,newWSPUser2],...]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd=arcpy.mapping.MapDocument(TheMXD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for item in TheWSPReplaceArray:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]for table in arcpy.mapping.ListTableViews(mxd, "", df):[/INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]table.findAndReplaceWorkspacePath (item[0], item[1], False)[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd.saveaCopy ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Felix&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 13:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-data-source-of-join-table/m-p/71685#M5905</guid>
      <dc:creator>GIS_Administratorat_RWE</dc:creator>
      <dc:date>2013-06-17T13:50:03Z</dc:date>
    </item>
  </channel>
</rss>

