<?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: Batch Join Field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014038#M59411</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;&amp;nbsp;, thanks for the suggestion - this is what I needed. Sometimes the simpler option is the best one!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 18:50:26 GMT</pubDate>
    <dc:creator>jblng</dc:creator>
    <dc:date>2021-01-05T18:50:26Z</dc:date>
    <item>
      <title>Batch Join Field</title>
      <link>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1013991#M59408</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am writing a for loop to iterate through the join field tool on a geodatabase of tables. My final goal is to have one table containing the fields of all other tables in the GDB. Here is the relevant code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = r"C:\My_GDB.gdb"
join_field = "CommuneCode"
join_table = r"C:\My_GDB.gdb\chirps_2020_04_tbl"
tables = arcpy.ListTables()
counter = 1
for table in tables:
    print ("processing: " + table)
    arcpy.JoinField_management(table, join_field, join_table, join_field)
    print("%s of %s tables processed" % (counter, len(tables)))
    counter += 1

print("Processing complete.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual results of this loop appends the fields from the&amp;nbsp;&lt;EM&gt;join_table&amp;nbsp;&lt;/EM&gt;object onto each of the tables in the GDB. What I would actually like is the opposite, joining all tables in the GDB to the&amp;nbsp;&lt;EM&gt;join_table.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any tips here. Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1013991#M59408</guid>
      <dc:creator>jblng</dc:creator>
      <dc:date>2021-01-05T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Join Field</title>
      <link>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1013998#M59409</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/join-field.htm" target="_blank"&gt;Join Field (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;did you try switch their order around?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1013998#M59409</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-01-05T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Join Field</title>
      <link>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014000#M59410</link>
      <description>&lt;P&gt;Don't you want to&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-join.htm" target="_self"&gt;add a join&lt;/A&gt;?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014000#M59410</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-01-05T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Join Field</title>
      <link>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014038#M59411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;&amp;nbsp;, thanks for the suggestion - this is what I needed. Sometimes the simpler option is the best one!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 18:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014038#M59411</guid>
      <dc:creator>jblng</dc:creator>
      <dc:date>2021-01-05T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Join Field</title>
      <link>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014039#M59412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;&amp;nbsp;thank you! I had also tried reversing the order but was still getting the same result. The suggestion from Joe Borgione to run Add Join worked for my use case.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 18:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-join-field/m-p/1014039#M59412</guid>
      <dc:creator>jblng</dc:creator>
      <dc:date>2021-01-05T18:52:00Z</dc:date>
    </item>
  </channel>
</rss>

