<?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: Model Builder - Add Join not working in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083660#M43857</link>
    <description>&lt;P&gt;I&amp;nbsp; would think your a join will only appear if they are created in relation to maps in the project&amp;nbsp; - If you run a tool and then select the data sources from the 'current' map.&amp;nbsp; We could build and run a model in Pro that&amp;nbsp; creates a join as a step in a model that uses data sets directly (e.g., c:\temp\myshapefile.shp) that are not in the current project and these joins would only exist in the context of the model.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 18:37:49 GMT</pubDate>
    <dc:creator>RichardDaniels</dc:creator>
    <dc:date>2021-07-28T18:37:49Z</dc:date>
    <item>
      <title>Model Builder - Add Join not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083468#M43839</link>
      <description>&lt;P&gt;I'm trying to join two feature services with a common field through model builder.&amp;nbsp; It works properly when I run the standard Add Join tool through the geoprocessing pane.&amp;nbsp; I then go to the geoprocessing history, use the successful result Add to Model and save the new model.&amp;nbsp; When I run the new model from my toolbox, it will not work properly.&amp;nbsp; It says it completes successfully, but there is no join afterwards.&amp;nbsp; What is going wrong?&amp;nbsp; Attached below is the python script from model builder (I am not familiar with python).&amp;nbsp; I'm using Pro 2.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2021-07-28 08:57:11
"""
import arcpy

def Model10(): # Model - join reforest &amp;amp; harvest

# To allow overwriting outputs change overwriteOutput option to True.
arcpy.env.overwriteOutput = False

LGL_Silvi_Reforestation_2_ = "ACTIVITY LAYERS\\LGL_Silvi_Reforestation"
LGL_HarvestActivities = "ACTIVITY LAYERS\\LGL_HarvestActivities"

# Process: Add Join (Add Join) (management)
LGL_Silvi_Reforestation_3_ = arcpy.management.AddJoin(in_layer_or_view=LGL_Silvi_Reforestation_2_, in_field="StandKey", join_table=LGL_HarvestActivities, join_field="StandKey", join_type="KEEP_ALL")[0]

if __name__ == '__main__':
# Global Environment settings
with arcpy.EnvManager(outputCoordinateSystem="PROJCS["NAD_1983_UTM_Zone_16N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-87.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]", preserveGlobalIds=True, scratchWorkspace=r"C:\Users\Lgilner\Documents\ArcGIS\Projects\ArcPro Project Update 040121\Default.gdb",
workspace=r"C:\Users\Lgilner\Documents\ArcGIS\Projects\ArcPro Project Update 040121\Default.gdb"):
Model10()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 13:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083468#M43839</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2021-07-28T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - Add Join not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083548#M43845</link>
      <description>&lt;P&gt;Well....maybe it is working.&amp;nbsp; I continued the model with some Calculate Fields to pull attributes from the joined feature, and the attributes pulled through correctly.&amp;nbsp; Why doesn't it show that there is a join on the feature when I run my tool from the toolbox, but it does when I run it directly from model builder?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukeGilner1_1-1627485533388.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19533i270CF5D0B41D6691/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukeGilner1_1-1627485533388.png" alt="LukeGilner1_1-1627485533388.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukeGilner1_2-1627485579976.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19534i516742CAB815882B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukeGilner1_2-1627485579976.png" alt="LukeGilner1_2-1627485579976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083548#M43845</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2021-07-28T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - Add Join not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083660#M43857</link>
      <description>&lt;P&gt;I&amp;nbsp; would think your a join will only appear if they are created in relation to maps in the project&amp;nbsp; - If you run a tool and then select the data sources from the 'current' map.&amp;nbsp; We could build and run a model in Pro that&amp;nbsp; creates a join as a step in a model that uses data sets directly (e.g., c:\temp\myshapefile.shp) that are not in the current project and these joins would only exist in the context of the model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 18:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083660#M43857</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2021-07-28T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - Add Join not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083667#M43861</link>
      <description>&lt;P&gt;Yes, these two feature services in the join are in my current map contents when I run the tool from the toolbox.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 18:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-add-join-not-working/m-p/1083667#M43861</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2021-07-28T18:48:00Z</dc:date>
    </item>
  </channel>
</rss>

