<?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: AddJoin_management python script error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196143#M15033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally posted this accidentally on the duplicate thread, reposting here instead.&amp;nbsp; It basically states what Dan already says.&amp;nbsp; We basically need to know more about the arguments you are passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the error code ( &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00826-00850-000840.htm"&gt;000840: The value is not a &amp;lt;value&amp;gt;&lt;/A&gt; ) and text are saying an incorrect parameter/argument is being passed to the &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-join.htm"&gt;Add Join &lt;/A&gt;tool.&amp;nbsp; Looking at the syntax of the Add Join tool,&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;AddJoin_management &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_layer_or_view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; in_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; join_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; join_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;join_type&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and what you passed:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;AddJoin&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AccountPoi"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lstfc1&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;x1&lt;SPAN class="number token"&gt;-1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AccountID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"KEEP_COMMON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_field&lt;/SPAN&gt;,&lt;SPAN style="font-family: courier new,courier,monospace;"&gt; join_field&lt;/SPAN&gt;, and &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;join_type&lt;/SPAN&gt; parameters expect strings and you passed strings; the issue is either with &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;output_feature&lt;/SPAN&gt; or &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;lstfcl[x1-1]&lt;/SPAN&gt;.&amp;nbsp; Can you elaborate on what is behind those two variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Dec 2016 15:57:13 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2016-12-04T15:57:13Z</dc:date>
    <item>
      <title>AddJoin_management python script error</title>
      <link>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196141#M15031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;I have two shape files and want to join both&amp;nbsp;attribute tables with common field. But arcpy throws the following error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;management&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;"&gt;AddJoin&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;output_feature&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;"&gt;"AccountPoi"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt; lstfc1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;x1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;"&gt;"AccountID"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;"&gt;"KEEP_COMMON"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"&gt;)
&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/CODE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Traceback&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;most recent call last&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;):&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;File&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"C:/Users/dxc163530/PycharmProjects/start_charm.py"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; line &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;48&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;module&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;management&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AddJoin&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;output_feature&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"AccountPoi"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; lstfc1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;x1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"AccountID"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"KEEP_COMMON"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;File&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; line &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;5096&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AddJoin&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;raise&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; e&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;File&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; line &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;5093&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AddJoin&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; convertArcObjectToPythonObject&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;gp&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AddJoin_management&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(*&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;gp_fixargs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;((&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;in_layer_or_view&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; in_field&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; join_table&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; join_field&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; join_type&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;True&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;)))&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;File&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; line &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;506&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;lambda&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;lambda&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;args&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; val&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(*&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;gp_fixargs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;args&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;True&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;))&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;arcgisscripting&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;ExecuteError&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Failed&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; to execute&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Parameters&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; are &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;not&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; valid&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; value cannot be a feature &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;class&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;ERROR &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;000840&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; value &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;is&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;not&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; a &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Raster&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Layer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;ERROR &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;000840&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; value &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;is&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;not&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; a &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Mosaic&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Layer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;WARNING &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;000970&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;The&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; join field &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AccountPoi&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; the join table &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AccountPoints&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;is&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;not&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; indexed&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;To&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; improve performance&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; we recommend that an index be created &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; the join field &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; the join table&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Failed&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; to execute &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;AddJoin&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;).&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;Process&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; finished &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;with&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; exit code &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;1&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196141#M15031</guid>
      <dc:creator>DineshChalasani</dc:creator>
      <dc:date>2021-12-11T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: AddJoin_management python script error</title>
      <link>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196142#M15032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/add-join.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/add-join.htm"&gt;Add Join—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;specifies the required types of inputs.&lt;/P&gt;&lt;P&gt;What are the values that are required for the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddJoin_management (in_layer_or_view, in_field, join_table, join_field, {join_type})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data requirements are specific and it isn't possible to tell from your error message due to formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 04:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196142#M15032</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-12-04T04:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: AddJoin_management python script error</title>
      <link>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196143#M15033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally posted this accidentally on the duplicate thread, reposting here instead.&amp;nbsp; It basically states what Dan already says.&amp;nbsp; We basically need to know more about the arguments you are passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the error code ( &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00826-00850-000840.htm"&gt;000840: The value is not a &amp;lt;value&amp;gt;&lt;/A&gt; ) and text are saying an incorrect parameter/argument is being passed to the &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-join.htm"&gt;Add Join &lt;/A&gt;tool.&amp;nbsp; Looking at the syntax of the Add Join tool,&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;AddJoin_management &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_layer_or_view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; in_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; join_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; join_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;join_type&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and what you passed:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;AddJoin&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AccountPoi"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lstfc1&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;x1&lt;SPAN class="number token"&gt;-1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AccountID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"KEEP_COMMON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_field&lt;/SPAN&gt;,&lt;SPAN style="font-family: courier new,courier,monospace;"&gt; join_field&lt;/SPAN&gt;, and &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;join_type&lt;/SPAN&gt; parameters expect strings and you passed strings; the issue is either with &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;output_feature&lt;/SPAN&gt; or &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;lstfcl[x1-1]&lt;/SPAN&gt;.&amp;nbsp; Can you elaborate on what is behind those two variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 15:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addjoin-management-python-script-error/m-p/196143#M15033</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-12-04T15:57:13Z</dc:date>
    </item>
  </channel>
</rss>

