I have two shape files and want to join both attribute table with common field. But arcpy throws the following error.
<SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">arcpy</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">management</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AddJoin</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">output_feature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"AccountPoi"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> lstfc1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">[</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">x1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">],</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"AccountID"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"KEEP_COMMON"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"></SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Traceback</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">most recent call last</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">):</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">File</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"C:/Users/dxc163530/PycharmProjects/start_charm.py"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> line </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">48</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">in</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"><</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">module</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">></SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> arcpy</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">management</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AddJoin</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">output_feature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"AccountPoi"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> lstfc1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">[</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">x1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">-</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">],</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"AccountID"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"KEEP_COMMON"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">File</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> line </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">5096</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">in</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AddJoin</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">raise</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> e </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">File</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> line </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">5093</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">in</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AddJoin</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> retval </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> convertArcObjectToPythonObject</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">gp</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AddJoin_management</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(*</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">gp_fixargs</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">((</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">in_layer_or_view</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> in_field</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> join_table</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> join_field</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> join_type</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">),</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">True</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">)))</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">File</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> line </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">506</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">in</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"><</SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">lambda</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">></SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">return</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">lambda</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">*</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">args</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> val</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(*</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">gp_fixargs</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">args</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">True</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">))</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">arcgisscripting</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">ExecuteError</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Failed</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> to execute</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Parameters</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> are </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">not</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> valid</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"></SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">The</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> value cannot be a feature </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">class</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">ERROR </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">000840</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">The</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> value </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">is</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">not</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> a </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Raster</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Layer</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">ERROR </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">000840</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">The</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> value </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">is</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">not</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> a </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Mosaic</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Layer</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">WARNING </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">000970</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">The</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> join field </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AccountPoi</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">in</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> the join table </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AccountPoints</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">is</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">not</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> indexed</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">To</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> improve performance</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> we recommend that an index be created </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">for</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> the join field </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">in</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> the join table</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"></SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Failed</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> to execute </SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">(</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">AddJoin</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-size: 13px;">Process</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> finished </SPAN><SPAN class="" style="color: #101094; border: 0px; font-size: 13px;">with</SPAN><SPAN class="" style="color: #303336; border: 0px; font-size: 13px;"> exit code </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-size: 13px;">1</SPAN>