<?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 Completely stumped as to why my Join isn't working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052726#M60942</link>
    <description>&lt;PRE&gt;"""&lt;BR /&gt;&lt;BR /&gt;Objectives:&lt;BR /&gt;&lt;BR /&gt;1) Grab Assessor Data from FTP folder&lt;BR /&gt;2) Push Assessor Data to SDE database&lt;BR /&gt;3) Join Assessor Data to sde.SDE.Parcel&lt;BR /&gt;4) FC to FC so ParsJ overwrites from Parcel layer&lt;BR /&gt;&lt;BR /&gt;"""&lt;BR /&gt;&lt;BR /&gt;import arcpy&lt;BR /&gt;&lt;BR /&gt;TableOutLocation = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde"&lt;BR /&gt;&lt;BR /&gt;# ##### Stopping connections to FC ######&lt;BR /&gt;&lt;BR /&gt;# Block new connections to the database.&lt;BR /&gt;print('The database is no longer accepting connections.format{}'.format(TableOutLocation))&lt;BR /&gt;arcpy.AcceptConnections(TableOutLocation, False)&lt;BR /&gt;# Disconnect all users from the database.&lt;BR /&gt;print("Disconnecting all users")&lt;BR /&gt;arcpy.DisconnectUser(TableOutLocation, "ALL")&lt;BR /&gt;&lt;BR /&gt;# Environment variables&lt;BR /&gt;arcpy.env.workspace = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde"&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;BR /&gt;&lt;BR /&gt;# Variables for Table to Table conversion&lt;BR /&gt;CamaTable = r"\\ftp001\Assessor\Assessor_Extract.csv"&lt;BR /&gt;&lt;BR /&gt;# Converting Cama-Excel to Cama-Table in GDB&lt;BR /&gt;arcpy.TableToTable_conversion(CamaTable, TableOutLocation, "CamaTable")&lt;BR /&gt;&lt;BR /&gt;# Variables for Add Join Tool&lt;BR /&gt;ParcelLayer = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde\sed.SDE.ParcelFeatures\sde.SDE.Parcel"&lt;BR /&gt;ParcelLayerJoinField = "MAPNUMBER"&lt;BR /&gt;CamaTableToJoin = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde\CamaTable"&lt;BR /&gt;CamaTableJoinField = "ParcelNumber"&lt;BR /&gt;&lt;BR /&gt;# Join the feature layer to a table&lt;BR /&gt;arcpy.JoinField_management(ParcelLayer, ParcelLayerJoinField, CamaTableToJoin, CamaTableJoinField)&lt;BR /&gt;&lt;BR /&gt;# FC to FC variables&lt;BR /&gt;ParsJOutLocation = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde"&lt;BR /&gt;&lt;BR /&gt;# Converting Parcel Layer to ParsJ Layer&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion(ParcelLayer, ParsJOutLocation, "ParsJ")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the 'CamaTable' to join to the parcel layer and where 'MAPNUMBER' does NOT match 'ParcelNumber', I want it appended to the table. Am I using the right geoprocessing tool? I thought a full outer join would add/append the records that do not match the primary and secondary keys in the join.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Apr 2021 14:37:28 GMT</pubDate>
    <dc:creator>GeoDev</dc:creator>
    <dc:date>2021-04-29T14:37:28Z</dc:date>
    <item>
      <title>Completely stumped as to why my Join isn't working</title>
      <link>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052726#M60942</link>
      <description>&lt;PRE&gt;"""&lt;BR /&gt;&lt;BR /&gt;Objectives:&lt;BR /&gt;&lt;BR /&gt;1) Grab Assessor Data from FTP folder&lt;BR /&gt;2) Push Assessor Data to SDE database&lt;BR /&gt;3) Join Assessor Data to sde.SDE.Parcel&lt;BR /&gt;4) FC to FC so ParsJ overwrites from Parcel layer&lt;BR /&gt;&lt;BR /&gt;"""&lt;BR /&gt;&lt;BR /&gt;import arcpy&lt;BR /&gt;&lt;BR /&gt;TableOutLocation = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde"&lt;BR /&gt;&lt;BR /&gt;# ##### Stopping connections to FC ######&lt;BR /&gt;&lt;BR /&gt;# Block new connections to the database.&lt;BR /&gt;print('The database is no longer accepting connections.format{}'.format(TableOutLocation))&lt;BR /&gt;arcpy.AcceptConnections(TableOutLocation, False)&lt;BR /&gt;# Disconnect all users from the database.&lt;BR /&gt;print("Disconnecting all users")&lt;BR /&gt;arcpy.DisconnectUser(TableOutLocation, "ALL")&lt;BR /&gt;&lt;BR /&gt;# Environment variables&lt;BR /&gt;arcpy.env.workspace = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde"&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;BR /&gt;&lt;BR /&gt;# Variables for Table to Table conversion&lt;BR /&gt;CamaTable = r"\\ftp001\Assessor\Assessor_Extract.csv"&lt;BR /&gt;&lt;BR /&gt;# Converting Cama-Excel to Cama-Table in GDB&lt;BR /&gt;arcpy.TableToTable_conversion(CamaTable, TableOutLocation, "CamaTable")&lt;BR /&gt;&lt;BR /&gt;# Variables for Add Join Tool&lt;BR /&gt;ParcelLayer = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde\sed.SDE.ParcelFeatures\sde.SDE.Parcel"&lt;BR /&gt;ParcelLayerJoinField = "MAPNUMBER"&lt;BR /&gt;CamaTableToJoin = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde\CamaTable"&lt;BR /&gt;CamaTableJoinField = "ParcelNumber"&lt;BR /&gt;&lt;BR /&gt;# Join the feature layer to a table&lt;BR /&gt;arcpy.JoinField_management(ParcelLayer, ParcelLayerJoinField, CamaTableToJoin, CamaTableJoinField)&lt;BR /&gt;&lt;BR /&gt;# FC to FC variables&lt;BR /&gt;ParsJOutLocation = r"\\files03\it_2021\all_gisusers\Connection_Files\GISDB06_SDE.sde"&lt;BR /&gt;&lt;BR /&gt;# Converting Parcel Layer to ParsJ Layer&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion(ParcelLayer, ParsJOutLocation, "ParsJ")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the 'CamaTable' to join to the parcel layer and where 'MAPNUMBER' does NOT match 'ParcelNumber', I want it appended to the table. Am I using the right geoprocessing tool? I thought a full outer join would add/append the records that do not match the primary and secondary keys in the join.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 14:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052726#M60942</guid>
      <dc:creator>GeoDev</dc:creator>
      <dc:date>2021-04-29T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Completely stumped as to why my Join isn't working</title>
      <link>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052740#M60944</link>
      <description>&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; you want to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-join.htm" target="_self"&gt;use 'add join'&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 15:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052740#M60944</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-04-29T15:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Completely stumped as to why my Join isn't working</title>
      <link>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052804#M60946</link>
      <description>&lt;P&gt;To do a full outer join you need to use the Make Query Table or Make Query Layer tool. (Many to Many does not work with Add Join and Join Field, only 1-1 or M-1.)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 16:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052804#M60946</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-04-29T16:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Completely stumped as to why my Join isn't working</title>
      <link>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052808#M60948</link>
      <description>&lt;P&gt;An outer join will smash up the whole table from both sides; matched and unmatched all together. You can do the full join, then query out where your join fields are null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"{} is null or {} is null".format(ParcelLayerJoinField, CamaTableJoinField)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 17:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/completely-stumped-as-to-why-my-join-isn-t-working/m-p/1052808#M60948</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-04-29T17:01:41Z</dc:date>
    </item>
  </channel>
</rss>

