<?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 AddJoin not join layer and table in toolbox script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/addjoin-not-join-layer-and-table-in-toolbox-script/m-p/1360562#M69408</link>
    <description>&lt;P&gt;I have a model that runs a script I get an error that states a field does not exist. Once the join happens they filed should exist, and looking at the outputs the join doesn't happend. I can run the stand alone script and also run the model and it runs fine.&amp;nbsp; When run the model in Pro scheduler I run into is issue. I have tried adding a a &lt;A href="https://pro.arcgis.com/en/pro-app/3.0/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm#GUID-59C4A61C-AC33-4BA3-8453-AC8328E34453" target="_blank" rel="noopener nofollow noreferrer"&gt;derived output parameter&lt;/A&gt; and still no launch when I run it out of Pro Scheduler.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;join = arcpy.AddJoin_management("Lyr1","ACC_ID",table1, "ACC_ID", "KEEP_COMMON")
arcpy.SetParameterAsText(1,join)
arcpy.FeatureClassToFeatureClass_conversion("Lyr1", "C:/Temp/test.gdb", "BP_TestA")&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-12-13 12_56_59-Window.png" style="width: 510px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88953iAA326C0238E13ECE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-12-13 12_56_59-Window.png" alt="2023-12-13 12_56_59-Window.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-12-13 12_57_13-Window.png" style="width: 597px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88954i56353F128061FA98/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-12-13 12_57_13-Window.png" alt="2023-12-13 12_57_13-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 20:00:02 GMT</pubDate>
    <dc:creator>TonyAlmeida</dc:creator>
    <dc:date>2023-12-13T20:00:02Z</dc:date>
    <item>
      <title>AddJoin not join layer and table in toolbox script</title>
      <link>https://community.esri.com/t5/python-questions/addjoin-not-join-layer-and-table-in-toolbox-script/m-p/1360562#M69408</link>
      <description>&lt;P&gt;I have a model that runs a script I get an error that states a field does not exist. Once the join happens they filed should exist, and looking at the outputs the join doesn't happend. I can run the stand alone script and also run the model and it runs fine.&amp;nbsp; When run the model in Pro scheduler I run into is issue. I have tried adding a a &lt;A href="https://pro.arcgis.com/en/pro-app/3.0/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm#GUID-59C4A61C-AC33-4BA3-8453-AC8328E34453" target="_blank" rel="noopener nofollow noreferrer"&gt;derived output parameter&lt;/A&gt; and still no launch when I run it out of Pro Scheduler.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;join = arcpy.AddJoin_management("Lyr1","ACC_ID",table1, "ACC_ID", "KEEP_COMMON")
arcpy.SetParameterAsText(1,join)
arcpy.FeatureClassToFeatureClass_conversion("Lyr1", "C:/Temp/test.gdb", "BP_TestA")&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-12-13 12_56_59-Window.png" style="width: 510px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88953iAA326C0238E13ECE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-12-13 12_56_59-Window.png" alt="2023-12-13 12_56_59-Window.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-12-13 12_57_13-Window.png" style="width: 597px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88954i56353F128061FA98/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-12-13 12_57_13-Window.png" alt="2023-12-13 12_57_13-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 20:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addjoin-not-join-layer-and-table-in-toolbox-script/m-p/1360562#M69408</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2023-12-13T20:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: AddJoin not join layer and table in toolbox script</title>
      <link>https://community.esri.com/t5/python-questions/addjoin-not-join-layer-and-table-in-toolbox-script/m-p/1362132#M69437</link>
      <description>&lt;P&gt;Couldn't figure out why this happened, I ended up using arcpy.management.JoinField instead of arcpy.AddJoin_management. Also, I didn't have to use a derived output parameter once I used the arcpy.management.JoinField.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 18:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addjoin-not-join-layer-and-table-in-toolbox-script/m-p/1362132#M69437</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2023-12-18T18:04:52Z</dc:date>
    </item>
  </channel>
</rss>

