<?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: Iterator to join tables based on similar names in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1302774#M219</link>
    <description>&lt;P&gt;Thanks ShitijMehta,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you post a higher resolution image please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2023 09:41:59 GMT</pubDate>
    <dc:creator>ThomasGillespie</dc:creator>
    <dc:date>2023-06-25T09:41:59Z</dc:date>
    <item>
      <title>Iterator to join tables based on similar names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1239634#M216</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have 54 point files named T1-T54. I have 54 polygons called&amp;nbsp;T__1_ExportFeatures1-54.&lt;/P&gt;&lt;P&gt;I want to join a field from the point file to its corresponding polygon file table. So the field in T1 joins to the table in&amp;nbsp;T__1_ExportFeatures1, the field in T2 joins to the table in&amp;nbsp;T__1_ExportFeatures2, etc. All files are in the same geodatabase folder.&lt;/P&gt;&lt;P&gt;Doing it one by one would be time consuming. I presume its a job for iterate feature classes in model builder, but Im not sure how exactly. I can iterate over all of the polygon feature classes, but I don't know how to pull the corresponding point table for the join.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks! Tom&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1239634#M216</guid>
      <dc:creator>ThomasGillespie</dc:creator>
      <dc:date>2022-12-09T14:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator to join tables based on similar names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1239964#M217</link>
      <description>&lt;P&gt;You are correct to look at the Iterate Feature Classes tool. One of its outputs is the file name. You can then use a python expression of function (Calculate Value tool) to generate the corresponding path and then do the join. Join Field may be a better approach than add join / copy features, depending on what you're doing. Here's an example of the calculation to generate the second file name,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# this is an example what you get from the iterator Name output variable
# (data used below in variable reference %Name%)
"T1"  
# here is an example of what expression you could 
# use with the Calculate Value tool
# this would evaluate to :"T__1_ExportFeatures1"
"T__1_ExportFeatures{}".format("%Name%".replace("T",""))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You then use the output variable from Calculate Value for tools used down the chain, like Join Field.&lt;/P&gt;&lt;P&gt;A tip: if needed, use preconditions, for example, make sure the iterator "Name" variable is set as a precondition to the Calculate Value to make sure you are working with the value from the current iteration.&lt;/P&gt;&lt;P&gt;Hope this is helpful to you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 00:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1239964#M217</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2022-12-15T00:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator to join tables based on similar names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1301873#M218</link>
      <description>&lt;P&gt;try this. pls let me know if this works&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShitijMehta_0-1687420619725.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73892i118E1442E81ACAAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShitijMehta_0-1687420619725.png" alt="ShitijMehta_0-1687420619725.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 07:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1301873#M218</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2023-06-22T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator to join tables based on similar names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1302774#M219</link>
      <description>&lt;P&gt;Thanks ShitijMehta,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you post a higher resolution image please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 09:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1302774#M219</guid>
      <dc:creator>ThomasGillespie</dc:creator>
      <dc:date>2023-06-25T09:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator to join tables based on similar names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1304251#M3844</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShitijMehta_0-1687991900686.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74455i83B61EC10F9276AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShitijMehta_0-1687991900686.png" alt="ShitijMehta_0-1687991900686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;try now.. U might be able to make the image larger by hovering over the image and clicking once... pls can u check? ty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 22:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-join-tables-based-on-similar-names/m-p/1304251#M3844</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2023-06-28T22:39:13Z</dc:date>
    </item>
  </channel>
</rss>

