<?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: Join field in feature class to field MS Access table 2007 format in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532854#M41753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestions but nothing worked. accdb format MS Access table could not be brought to the geodatabase or layer view directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i dont know if it was the best method but I finally ended up creating a new empty table in geodatabase and inserting the values from access table to geodatabase and using that for joining.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the insert cursor procedure and made a replica of my Access table in geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Priyanka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 00:54:01 GMT</pubDate>
    <dc:creator>PriyankaMehta</dc:creator>
    <dc:date>2013-08-27T00:54:01Z</dc:date>
    <item>
      <title>Join field in feature class to field MS Access table 2007 format</title>
      <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532849#M41748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to join fields from a feature class in geodatabase to a field in MS Access database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This statement used to work fine for 2003 format of ms access but for 2007 format it gives an error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.JoinField_management(gdbfeat1,"gdbField1",accdbtable1,"accField1","accField2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Join Table: Dataset tablexxx does not exist or is not supported&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;although it clearly exists and it is being able to do execute other statements like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cursor.execute("delete * from " + accdbtable1)&amp;nbsp; which is inside the same loop.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody please point how should I join fields from geodatbase table to ms access table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Priyanka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 07:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532849#M41748</guid>
      <dc:creator>PriyankaMehta</dc:creator>
      <dc:date>2013-08-16T07:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Join field in feature class to field MS Access table 2007 format</title>
      <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532850#M41749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Post the complete code.&amp;nbsp; What is the error(s)?&amp;nbsp; How are you connecting to the MS Access db?&amp;nbsp; Perhaps you need to provide fully qualified table/field names for the join?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jut not enough info to give you a direct answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;james&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 10:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532850#M41749</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-08-16T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join field in feature class to field MS Access table 2007 format</title>
      <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532851#M41750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using Pyodbc to connect to access database&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import pyodbc, arcgisscripting,arcpy
arcpy = arcgisscripting.create(10.1)
arcpy.overwriteoutput = 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
conn = pyodbc.connect(("Driver={Microsoft Access Driver (*.mdb, *.accdb)};"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DBQ=C:\Projects\ProjectDatabases\MIA\PrimaryDatabase.accdb;"))
cursor = conn.cursor()

InputTransport = "C:\ProjectDatabases\GIS\SIWW_Data_Display.gdb"

def TransportationAccess(accdbtable1,gdbfeat1):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.execute("delete * from " + accdbtable1)&amp;nbsp; #clear table&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #join Trans_NodeTypeDetails from geodatabase to Acces_Trans_NodeTypeDetails. Join fields NodeType and Stations
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.joinfield_management((InputTransport+"\\"+gdbfeat1),"NodeType",accdbtable1,"NodeType","Stations")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 



TransportationAccess("Access_Trans_NodeTypeDetails", "Nodes")&amp;nbsp; 
 &lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature class in geodatabase (gdbfeat1 in code) is "Nodes"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Table in MS Access(accdbtable1) is "Access_Trans_NodeTypeDetails"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to join these two tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I get this error saying "Access_Trans_NodeTypeDetails" does not exist. It is the same same table that it is clearing in the previous line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the error that I get&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Join Table: Dataset Access_Trans_NodeTypeDetails does not exist or is not supported
Failed to execute (JoinField).&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Priyanka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532851#M41750</guid>
      <dc:creator>PriyankaMehta</dc:creator>
      <dc:date>2021-12-11T23:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Join field in feature class to field MS Access table 2007 format</title>
      <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532852#M41751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, where are you setting "accdbtable1" or "Access_Trans_NodeTypeDetails" before invoking the TransportationAccess() method???&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second, I am unsure if the Access_Trans_NodeTypeDetails meets the requirement of the join operation.&amp;nbsp; From the help &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000064000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000064000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;The Join Table can be any of the following types of tables: a geodatabase table (ArcSDE, file, or personal), a dBASE file, an INFO table, or an OLE DB table.&lt;/SPAN&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...which I don't think your .accdb table meets any of these.&amp;nbsp; One thing I would try is apply this to a TableView first, then join that to the FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

def TransportationAccess(accdbtable1,gdbfeat1):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblv = "accdbtab"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeTableView_management(accdbtable1, tblv)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.execute("delete * from " + accdbtable1)&amp;nbsp; #clear table&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #join Trans_NodeTypeDetails from geodatabase to Acces_Trans_NodeTypeDetails. Join fields NodeType and Stations
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.joinfield_management((InputTransport+"\\"+gdbfeat1),"NodeType",tblv,"NodeType","Stations")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But why exactly are you attempting to "clear" accdbtable1 before the join operation???&amp;nbsp; That makes no sense to join an empty table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, that is untested above and I am not even sure if this is the problem but maybe worth a try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532852#M41751</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Join field in feature class to field MS Access table 2007 format</title>
      <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532853#M41752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can use this tool&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001200000027000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001200000027000000&lt;/A&gt;&lt;SPAN&gt; or convert your .accdb to a .mdb and access through a database connection&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 20:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532853#M41752</guid>
      <dc:creator>AmyKlug</dc:creator>
      <dc:date>2013-08-19T20:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join field in feature class to field MS Access table 2007 format</title>
      <link>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532854#M41753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestions but nothing worked. accdb format MS Access table could not be brought to the geodatabase or layer view directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i dont know if it was the best method but I finally ended up creating a new empty table in geodatabase and inserting the values from access table to geodatabase and using that for joining.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the insert cursor procedure and made a replica of my Access table in geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Priyanka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 00:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-field-in-feature-class-to-field-ms-access/m-p/532854#M41753</guid>
      <dc:creator>PriyankaMehta</dc:creator>
      <dc:date>2013-08-27T00:54:01Z</dc:date>
    </item>
  </channel>
</rss>

