<?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 Add Join not keeping all target features in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341474#M74414</link>
    <description>&lt;P&gt;I am trying to join a table to a feature class using the Add Join tool. The box 'Keep All Target Features' is ticked:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YusefSamari_0-1698249012470.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83969i2262C762B6CFE0D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YusefSamari_0-1698249012470.png" alt="YusefSamari_0-1698249012470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Based on my previous experience, and the info on the pop-up box of that parameter, this should mean that all features in the input layer are kept, regardless of whether the join fields match. However, the resulting output is only including input features that match on the join table field, regardless of whether the box is ticked. Basically it seems stuck on performing an inner join even though an outer join is selected. This happens regardless of whether or not the fields are indexed. Both the feature class and the table are stored in a geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can anyone advise as to why this might be happening?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 15:54:45 GMT</pubDate>
    <dc:creator>YusefSamari</dc:creator>
    <dc:date>2023-10-25T15:54:45Z</dc:date>
    <item>
      <title>Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341474#M74414</link>
      <description>&lt;P&gt;I am trying to join a table to a feature class using the Add Join tool. The box 'Keep All Target Features' is ticked:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YusefSamari_0-1698249012470.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83969i2262C762B6CFE0D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YusefSamari_0-1698249012470.png" alt="YusefSamari_0-1698249012470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Based on my previous experience, and the info on the pop-up box of that parameter, this should mean that all features in the input layer are kept, regardless of whether the join fields match. However, the resulting output is only including input features that match on the join table field, regardless of whether the box is ticked. Basically it seems stuck on performing an inner join even though an outer join is selected. This happens regardless of whether or not the fields are indexed. Both the feature class and the table are stored in a geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can anyone advise as to why this might be happening?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341474#M74414</guid>
      <dc:creator>YusefSamari</dc:creator>
      <dc:date>2023-10-25T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341548#M74428</link>
      <description>&lt;P&gt;First, is your data stored in a file or enterprise geodatabase?&lt;/P&gt;&lt;P&gt;Second - from the Help - "If the join results are unexpected or incomplete, review whether the&amp;nbsp;Join Table Field&amp;nbsp;and&amp;nbsp;Input Join Field&amp;nbsp;parameter values are indexed. If they're not, try deleting and re-creating the index and rerun the tool."&lt;/P&gt;&lt;P&gt;Third - you can run the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/validate-join.htm" target="_self"&gt;Validate Join&lt;/A&gt; (Data Managemen) GP tool to see if the join is valid and determine cardinality.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 17:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341548#M74428</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-10-25T17:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341688#M74442</link>
      <description>&lt;P&gt;Hi Robert, thanks for your replies.&lt;/P&gt;&lt;P&gt;The data are stored in a file geodatabase.&lt;/P&gt;&lt;P&gt;I have tried running this with the Join and Input Table Fields indexed and non-indexed. I get the same result either way.&lt;BR /&gt;&lt;BR /&gt;This is the output from the Validate&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YusefSamari_0-1698267909818.png" style="width: 708px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84032iCE69806EF3B0E90C/image-dimensions/708x149?v=v2" width="708" height="149" role="button" title="YusefSamari_0-1698267909818.png" alt="YusefSamari_0-1698267909818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what extra that tells me, as I already knew there were only 2 matches, but I want to retain all the rows that don't match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 21:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341688#M74442</guid>
      <dc:creator>YusefSamari</dc:creator>
      <dc:date>2023-10-25T21:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341691#M74443</link>
      <description>&lt;P&gt;Can you share the data with me so I may test on my side?&amp;nbsp; If so, my email is rleclair at esri dot com - thx!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 21:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1341691#M74443</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-10-25T21:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1344205#M74696</link>
      <description>&lt;P&gt;I've ran into this issue in the past and the work around to show all of the joined data was to export the table to excel and all of the complete joined dataset will appear.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 23:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1344205#M74696</guid>
      <dc:creator>avonmoos</dc:creator>
      <dc:date>2023-10-31T23:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1349763#M75210</link>
      <description>&lt;P&gt;This didn't work for me.&amp;nbsp; Tried exporting join table to csv and xlsx&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 16:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1349763#M75210</guid>
      <dc:creator>ThomasHynes</dc:creator>
      <dc:date>2023-11-15T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1349773#M75211</link>
      <description>&lt;P&gt;I was having this issue joining a file geodatabase table to a SDE feature class.&amp;nbsp; I was able to work around this by copying the feature class to a file geodatabase.&amp;nbsp; After that, all target features did show successfully.&amp;nbsp; I did call Support and they are escalating the issue to development&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 16:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1349773#M75211</guid>
      <dc:creator>ThomasHynes</dc:creator>
      <dc:date>2023-11-15T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1374157#M77877</link>
      <description>&lt;P&gt;I have encountered this issue as well when joining a table to a layer both from file GDBs in Pro 3.2. The validate shows that there are 2 records that are not joining, but because not all the input records are being retained despite the check box being checked, I cannot see which two records out of 400,000+ are not in both layers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeilaJackson1_0-1706132340699.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92717iBA6722A6F2440B41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeilaJackson1_0-1706132340699.png" alt="LeilaJackson1_0-1706132340699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After completing the join, you can see there are only 418,430 records in the join table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeilaJackson1_1-1706132400013.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92718i458BC3CBD3B76FD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeilaJackson1_1-1706132400013.png" alt="LeilaJackson1_1-1706132400013.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please get this fixed&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 21:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1374157#M77877</guid>
      <dc:creator>LJackson29</dc:creator>
      <dc:date>2024-01-24T21:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1379069#M78416</link>
      <description>&lt;P&gt;I had this same problem. It was solved for me by roving the definition query that I had on the join table.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:28:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1379069#M78416</guid>
      <dc:creator>AveryDurham1</dc:creator>
      <dc:date>2024-02-07T14:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385124#M79130</link>
      <description>&lt;P&gt;Yep, had the same issue trying to join a Table to a feature class (both stored in the same file geodatabase).&amp;nbsp; The feature class had a definition query and 'keep all input records' was not honored.&amp;nbsp; So, I exported the filtered feature class to a Table.&amp;nbsp; Then established the join from Table to Table (neither having a definition query) and then finally the 'keep all input records' when joining was a success!&amp;nbsp; ...though quite a nuisance of a work around to generate extra tables just to find the misfits.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 20:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385124#M79130</guid>
      <dc:creator>ChristineSeidel</dc:creator>
      <dc:date>2024-02-21T20:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385269#M79148</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.2.2; File Geodatabase&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To build on the comments about definition queries and joining:&lt;/P&gt;&lt;P&gt;When joining from table A to B, if B has a definition query prior to the join (such as TYPE=100), then the definition query will be applied to A (joined to B); I'll call it AB.&lt;BR /&gt;If B.TYPE has rows where TYPE is not 100, then the definition query will exclude those rows in AB.&lt;/P&gt;&lt;P&gt;Video:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6347359361112w798h540r291" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6347359361112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6347359361112w798h540r291');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6347359361112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That can be confusing because the user might have considered the definition query to only apply to B. But in the AB join, the definition query applies to the entire query.&lt;/P&gt;&lt;P&gt;If we look at the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/arcgis-diagnostic-monitor.htm" target="_self"&gt;Diagnostic Monitor&lt;/A&gt; tool, we can see that ArcGIS Pro has sent this SQL query to the database (the SQL formatting is mine):&lt;/P&gt;&lt;PRE&gt;SELECT 
    OBJECTID,
    Shape,
    Shape_Length,
    Shape_Area,
    ID,
    OBJECTID,
    Shape_Length,
    Shape_Area,
    ID,
    TYPE 
FROM 
    A 
LEFT OUTER JOIN 
    B 
    ON ID=ID 
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;WHERE 
    TYPE= 100&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;That WHERE clause applies to the entire query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1708576088023.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95453iC844BCDFDA732EC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1708576088023.png" alt="Bud_0-1708576088023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If we want to include all the rows from A, regardless if there is a match in B, and if we want to keep the definition query, then we'd need to add&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;OR B.TYPE IS NULL&lt;/FONT&gt; to the definition query.&lt;/P&gt;&lt;PRE&gt;B.TYPE = 100 OR B.TYPE IS NULL&lt;/PRE&gt;&lt;P&gt;But I'm not an expert. Maybe&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/342593"&gt;@JonathanNeal&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7880"&gt;@MarceloMarques&lt;/a&gt;, or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3521"&gt;@AJR&lt;/a&gt;&amp;nbsp;could weigh in or at least find this interesting.&lt;/P&gt;&lt;P&gt;There is a technical article or bug report somewhere about this topic that suggests the &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;OR B.TYPE IS NULL&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; workaround. But I can't find it right now.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;STRIKE&gt;I wonder if there are any other &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/quot-the-input-has-a-selection-quot-slap-a-clear/idc-p/1363511/highlight/true#M27777" target="_self"&gt;attribute filters&lt;/A&gt;, other than definition queries, such as&amp;nbsp;time filters, range filters, or &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/field-calculate-use-the-selected-records-does-not/m-p/1385154/highlight/true#M79135" target="_self"&gt;selection layers (selection definition set)&lt;/A&gt; that might have similar quirks? I haven't wrapped my head around that yet.&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385269#M79148</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-02-23T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385278#M79152</link>
      <description>&lt;P&gt;&lt;EM&gt;I'm starting to second-guess this comment. Testing ongoing.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I think about this more, my definition query that has &lt;FONT face="courier new,courier" color="#0000FF"&gt;OR TYPE IS NULL&lt;/FONT&gt; is kind of useless. It doesn't do anything; it doesn't pare down the rows in B.&lt;/P&gt;&lt;P&gt;So maybe a different approach is needed. Either get rid of the definition query, or, if B does need to be pared down where TYPE=100, then maybe that should be done some other way, prior to the join.&lt;/P&gt;&lt;P&gt;Options for pre-filtering:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Query Layer (enterprise geodatabase only)&lt;/LI&gt;&lt;LI&gt;Database View&lt;/LI&gt;&lt;LI&gt;Export (using a definition query or selection) to a static copy, as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/141153"&gt;@ChristineSeidel&lt;/a&gt;&amp;nbsp;suggested&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-query-table.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Make Query Table&lt;/A&gt;, since it doesn't put its SQL expression in a definition query, it hides the SQL expression, unlike&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-table-view.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Make Table View&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-feature-layer.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Make Feature Layer&lt;/A&gt;.&lt;/SPAN&gt;&lt;OL class="lia-list-style-type-lower-alpha"&gt;&lt;LI&gt;&lt;SPAN&gt;See the l&lt;/SPAN&gt;ist of options in this post: &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/consistent-visible-sql-expressions-and-query/idc-p/1366709/highlight/true#M27874" target="_self"&gt;Consistent/visible SQL expressions and query definitions in layers&lt;/A&gt;.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's the result when using Make Query Table to pre-filter B before joining. It seems to work:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1708612431217.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95497i2265B7A73A7F6A87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_3-1708612431217.png" alt="Bud_3-1708612431217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The downside is that the SQL expression is hidden. As far as I can tell, it is only visible via code, such as saving the layer as a .LYRX and then viewing the JSON in a text editor. So, users would have no way of knowing that the table is being pared down. The best we can do is put something in the layer name, such as "B_QueryTable_&lt;STRONG&gt;Filtered&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt; It turns out there is an existing bug report that also suggests the Make Table workaround:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;BUG-000153808&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en-us/bug/the-add-join-tool-does-not-correctly-honor-the-definiti-bug-000153808" target="_self"&gt;The Add Join tool does not correctly honor the definition query on the join table.&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Workaround: “Use the Make Query Table tool to create the filter or export the filtered table.”&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, do the join in a full-blown SQL query (database view or query layer) instead of doing the join in Pro via Add Join. The downside is that it's not possible to edit the data in a database view or query layer.&lt;/P&gt;&lt;P&gt;The SQL query might look like this:&lt;/P&gt;&lt;PRE&gt;select 
    a.id,
    b.id,
    b.type 
from 
    a 
left join 
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(select * from b where type=100)&lt;/STRONG&gt;&lt;/FONT&gt; b
    on a.id=b.id &lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1708580097133.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95458i1A2658941E5422B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1708580097133.png" alt="Bud_2-1708580097133.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;--tested&amp;nbsp;in&amp;nbsp;Oracle 18c&lt;BR /&gt;select 
    a.id,
    b.id,
    b.type 
from 
    a 
left join 
    b
    on a.id=b.id &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;and type=100&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1708580110449.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95459i5D5CC013CA5EE08E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1708580110449.png" alt="Bud_3-1708580110449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are likely other ways to do it in SQL, such as using the WITH clause (aka common table expression) in enterprise and mobile geodatabases to pre-filter B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-join-indicate-that-a-definition-query-on-the/idi-p/1385290/highlight/true" target="_self"&gt;Add Join — Indicate that a definition query on join table will effectively result in an inner join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 02:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385278#M79152</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-05-14T02:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385521#M79166</link>
      <description>&lt;P&gt;Doing some basic checks/testing in Pro 3.2.2 with file geodatabase feature classes and tables, I see the expected behavior and not this behavior.&amp;nbsp; Can you provide more information about the tables involved.&amp;nbsp; Are they both in the same workspace?&amp;nbsp; Is that a file geodatabase, mobile geodatabase, geopackage, etc...?&amp;nbsp; If they are in different workspaces, what are those?&lt;/P&gt;&lt;P&gt;Also, what version of Pro are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 16:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1385521#M79166</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-02-22T16:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1386110#M79216</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-join-create-independent-definition-query-on/idi-p/1385518/highlight/true" target="_self"&gt;Add Join — Create independent definition query on join table (pre-filter)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1386110#M79216</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-02-23T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1603308#M94705</link>
      <description>&lt;P&gt;Just wanted to share my experience with this problem as well.&amp;nbsp; This is on ArcGIS Pro 3.1.3, attempting to join two feature classes within the same file geodatabase.&amp;nbsp; I was trying to join a feature class of ~500 records to one with about 78,000 records and got only 88 matches when I should have got close to 78,000 matches.&amp;nbsp; The key fields were indexed on both sides.&amp;nbsp; First I tried eliminating all null values from the key fields in both tables and this made no difference.&amp;nbsp; Then I checked using Python to make sure the target table key values were a superset of the join table keys (they were).&amp;nbsp; Finally, I stumbled upon this thread (and this one&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/add-join-not-working/td-p/1142660" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-pro-questions/add-join-not-working/td-p/1142660&lt;/A&gt;) and deleted and rebuilt the attribute indexes for the join fields, which finally solved the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2538"&gt;@Robert_LeClair&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The tool help says "If the join results are unexpected or incomplete, review whether the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Join Table Field&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Input Join Field&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter values are indexed. If they're not, try deleting and re-creating the index and rerun the tool."&amp;nbsp; Because I had already indexed the fields, I didn't think this would be the problem.&amp;nbsp; The help should be more clear that recreating an existing index may be necessary.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It would be very helpful to document this problem and solution on one of the knowledge base pages for join issues, such as this one:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/problem-joining-two-fields-does-not-return-any-matching-000025381" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/problem-joining-two-fields-does-not-return-any-matching-000025381&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 15:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1603308#M94705</guid>
      <dc:creator>justin-mpls</dc:creator>
      <dc:date>2025-04-07T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1603466#M94723</link>
      <description>&lt;H5&gt;With regard to documenting this problem and providing a solution, likely this would need to be created by Esri Support Services staff.&amp;nbsp; I did a cursory search of existing Knowledge Base articles and did not find any with search terms of &lt;STRONG&gt;index create join&lt;/STRONG&gt; -&amp;nbsp; With regard to the tool help page item - if you go to the bottom right of the webpage, there is a button click - "Feedback on this topic" one can provide feedback to the help authors to investigate and improve.&lt;BR /&gt;&lt;BR /&gt;Lastly and maybe related, there is &lt;A href="https://support.esri.com/en-us/bug/creating-a-join-does-not-work-if-the-key-fields-type-is-bug-000128476" target="_self"&gt;BUG-000128476&lt;/A&gt; -&amp;nbsp; Creating a join does not work if the key field’s type is a short integer.&amp;nbsp; Not sure if this is related to what the OP is experiencing.&lt;/H5&gt;</description>
      <pubDate>Mon, 07 Apr 2025 20:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1603466#M94723</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-04-07T20:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join not keeping all target features</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1674343#M100924</link>
      <description>&lt;P&gt;This solved my problem with this issue. Seems like a bug though.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 19:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/add-join-not-keeping-all-target-features/m-p/1674343#M100924</guid>
      <dc:creator>SH_DH</dc:creator>
      <dc:date>2025-12-19T19:08:51Z</dc:date>
    </item>
  </channel>
</rss>

