<?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 a Feature Class to a Table with Python in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486347#M16296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have enough information about your sources, paths and error messages to see what is going wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2010 08:11:05 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2010-06-08T08:11:05Z</dc:date>
    <item>
      <title>Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486343#M16292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a script that will "find" the files.&amp;nbsp; The files are in an ACCESS database and I have several database in several folders.&amp;nbsp; I am new in scripting and I spend a lot of time trying to figure it out without any success. I feel it should be simple...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I have written so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;##########################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Join a table to a feature layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Steeve Deschenes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Carex Canada&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#June 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#########################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, string, os, arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the Geoprocessor object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load required toolboxes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddToolbox("C:\Program Files\ArcGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workingfolder = sys.argv[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;source = sys.argv[2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;concentration = sys.argv[3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Workspace = workingfolder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Get a list of the feature classes in the input folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = gp.ListTables()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs.Reset()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = fcs.Next()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables = fc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.MakeFeatureLayer_management (source, "tempcoordinate")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #gp.CopyFeatures_management ("tempcoordinate", "/coordinate.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddJoin_management(concentration, "NUMR_ECHN", "tempcoordinate", "NUMR_ECHN_LOCL", "KEEP_ALL")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CopyFeatures_management (concentration, fc + "/resultat.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;except:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddError (gp.GetMessages ())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that script, I have few problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1-I want to batch the process. It will be very convenient not to select every filesmuself,&amp;nbsp; but "tell python" where the files are located and let him selecting them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2-When I run the script I get this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The value cannot be a table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000840: The value is not a Raster Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (AddJoin).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see where I the raster is involved in my process.&amp;nbsp; The parameter for my arguments are Folder, Feature Class and Table. No raster around???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a little bit desperate!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steeve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 16:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486343#M16292</guid>
      <dc:creator>SteeveDeschenes</dc:creator>
      <dc:date>2010-06-03T16:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486344#M16293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;1-I want to batch the process. It will be very convenient not to select every filesmuself,&amp;nbsp; but "tell python" where the files are located and let him selecting them.&lt;BR /&gt;&lt;BR /&gt;2-When I run the script I get this message:&lt;BR /&gt;&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;The value cannot be a table&lt;BR /&gt;ERROR 000840: The value is not a Raster Layer.&lt;BR /&gt;Failed to execute (AddJoin).&lt;BR /&gt;&lt;BR /&gt;I don't see where I the raster is involved in my process.&amp;nbsp; The parameter for my arguments are Folder, Feature Class and Table. No raster around???&lt;BR /&gt;&lt;BR /&gt;I am a little bit desperate!!&lt;BR /&gt;&lt;BR /&gt;Thanks for your help &lt;BR /&gt;&lt;BR /&gt;Steeve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddJoin only takes Layers and Views not featureclasses and tables, odd message but that is likely the reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my edited version as I think you want to do. Might have to edit it a bit more&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;################################################## ########################
#Join a table to a feature layer
#Steeve Deschenes
#Carex Canada
#June 2010
################################################## #######################
# Import system modules
import sys, os, arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()
# Load required toolboxes...
## gp.AddToolbox("C:\Program Files\ArcGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx")
## no need for system toolboxes
# Local variables...
workingfolder = sys.argv[1]
source = sys.argv[2]
concentration = sys.argv[3]
#Set workspace
gp.Workspace = workingfolder
#Get a list of the feature classes in the input folder
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; enumFC = gp.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp; ## fcs.Reset() never actually implemented
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = enumFC.Next()
&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp; while fc :
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i+=1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.MakeFeatureLayer_management (source, "source_lay")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.MakeTableView_management ("NUMR_ECHN", "con_lay")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # have to have Layers or Views for AddJoin not featureclasses or tables
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddJoin_management("con_lay", "NUMR_ECHN", "out_lay", "NUMR_ECHN_LOCL", "KEEP_ALL")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CopyFeatures_management ("out_lay", fc + "_resultat.shp")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = enumFC.Next()
except Exception, errmsg:
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddError(gp.GetMessages())
&amp;nbsp;&amp;nbsp;&amp;nbsp; print errmsg,gp.GetMessages&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486344#M16293</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-11T21:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486345#M16294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your help Kim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still have some problems with the script.&amp;nbsp; It seems to run smoothly, but I have no output at the end of the process.&amp;nbsp; Is there a problem with the loop??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the main command lines I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000840: The value is not a Feature Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000840: The value is not a Raster Catalog Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My data are in geodatabases.&amp;nbsp; I have several dataset located in several folders.&amp;nbsp; I define my arguments as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workingfolder = folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;source = feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;concentration = table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;################################################## ########################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Join a table to a feature layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Steeve Deschenes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Carex Canada&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#June 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;################################################## #######################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, os, arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the Geoprocessor object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workingfolder = sys.argv[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;source = sys.argv[2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;concentration = sys.argv[3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Workspace = workingfolder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Get a list of the feature classes in the input folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enumFC = gp.ListFeatureClasses()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ## fcs.Reset() never actually implemented&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = enumFC.Next()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while fc :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.MakeFeatureLayer_management (source, "source_lay")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.MakeTableView_management (concentration, "con_lay")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddJoin_management("con_lay", "NUMR_ECHN", "source_lay", "NUMR_ECHN_LOCL", "KEEP_ALL")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CopyFeatures_management ("con_lay", fc + "_resultat.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = enumFC.Next()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except Exception, errmsg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddError(gp.GetMessages())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print errmsg,gp.GetMessages&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steeve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 20:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486345#M16294</guid>
      <dc:creator>SteeveDeschenes</dc:creator>
      <dc:date>2010-06-07T20:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486346#M16295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version of ArcGIS are you using for this script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 22:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486346#M16295</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-06-07T22:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486347#M16296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have enough information about your sources, paths and error messages to see what is going wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 08:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486347#M16296</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2010-06-08T08:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486348#M16297</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;BR /&gt;&lt;SPAN&gt;Sorry, I should be more explicit.&amp;nbsp; I am using 9.3.1.&amp;nbsp; In my geodatabase, I have a table (concentration) that I want to join a feature class (source) to. The "NUMR_ECHN" is the link for the table and NUMR_ECHN_LOCL" is&amp;nbsp; the link for the feature class.&amp;nbsp; I have about a hundred geodatabase located in about 20 different folders. the name of the geodatabase are 31M01_GR.mdb, 31M01_GS.mdb, 31M0-2_GR.mdb, 31M02_GS.mdb..etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the script with the loop, I don't receive any error message but, I don't have any output either. When I run the command lines, I have this error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: Append D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie\31M01_GR.mdb\ECHANTILLON_LOCALISE_PT D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie\31M01_GR.mdb\RESULTAT_ANALYSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Tue Jun 08 11:45:31 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Running script Append...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000840: The value is not a Feature Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000840: The value is not a Raster Catalog Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again for your help. I am a python beginner &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steeve&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CopyFeatures).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 17:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486348#M16297</guid>
      <dc:creator>SteeveDeschenes</dc:creator>
      <dc:date>2010-06-08T17:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486349#M16298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How come you are not using the 9.3 Geoprocessor, List Feature Classes could be handled as a true list and would be alot easier to both write and read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(&lt;/SPAN&gt;&lt;STRONG&gt;9.3&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 02:51:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486349#M16298</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-06-09T02:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486350#M16299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Sorry, I should be more explicit.&amp;nbsp; I am using 9.3.1.&amp;nbsp; In my geodatabase, I have a table (concentration) that I want to join a feature class (source) to. The "NUMR_ECHN" is the link for the table and NUMR_ECHN_LOCL" is&amp;nbsp; the link for the feature class.&amp;nbsp; I have about a hundred geodatabase located in about 20 different folders. the name of the geodatabase are 31M01_GR.mdb, 31M01_GS.mdb, 31M0-2_GR.mdb, 31M02_GS.mdb..etc.&lt;BR /&gt;&lt;BR /&gt;When I run the script with the loop, I don't receive any error message but, I don't have any output either. When I run the command lines, I have this error message:&lt;BR /&gt;&lt;BR /&gt;Executing: Append D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie\31M01_GR.mdb\ECHANTILLON_LOCALISE_PT D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie\31M01_GR.mdb\RESULTAT_ANALYSE&lt;BR /&gt;Start Time: Tue Jun 08 11:45:31 2010&lt;BR /&gt;Running script Append...&lt;BR /&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000840: The value is not a Feature Layer.&lt;BR /&gt;ERROR 000840: The value is not a Raster Catalog Layer.&lt;BR /&gt;Failed to execute (CopyFeatures).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is just get CopyFeatures to work standalone. Even in the interactive window in pythonwin. I think the problem is your files beginning with a numeric digit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a conservative strategy&lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt; never&lt;/SPAN&gt;&lt;SPAN&gt; name folders, files or featureclasses starting with a digit. You are not allowed to start field names with a digit in most databases. Also, to make life easy avoid spaces in folders and file names as well. This avoids having to quote everything and use r"path to a strange world" for everything. Although windows and Unix &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;allows&lt;/SPAN&gt;&lt;SPAN&gt; spaces, it causes endless problems in ArcGIS and other packages if you have names, variables and anything that is not meant to be a number starting with a number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 09:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486350#M16299</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2010-06-10T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486351#M16300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Sorry, I should be more explicit.&amp;nbsp; I am using 9.3.1.&amp;nbsp; In my geodatabase, I have a table (concentration) that I want to join a feature class (source) to. The "NUMR_ECHN" is the link for the table and NUMR_ECHN_LOCL" is&amp;nbsp; the link for the feature class.&amp;nbsp; I have about a hundred geodatabase located in about 20 different folders. the name of the geodatabase are 31M01_GR.mdb, 31M01_GS.mdb, 31M0-2_GR.mdb, 31M02_GS.mdb..etc.&lt;BR /&gt;&lt;BR /&gt;When I run the script with the loop, I don't receive any error message but, I don't have any output either. When I run the command lines, I have this error message:&lt;BR /&gt;&lt;BR /&gt;Executing: Append D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie\31M01_GR.mdb\ECHANTILLON_LOCALISE_PT D:\CAREX_3\Test\Abitibi_Pontiac_A\31m\Géochimie\31M01_GR.mdb\RESULTAT_ANALYSE&lt;BR /&gt;Start Time: Tue Jun 08 11:45:31 2010&lt;BR /&gt;Running script Append...&lt;BR /&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000840: The value is not a Feature Layer.&lt;BR /&gt;ERROR 000840: The value is not a Raster Catalog Layer.&lt;BR /&gt;Failed to execute (CopyFeatures).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is just get CopyFeatures to work standalone. Even in the interactive window in pythonwin. I think the problem is your files beginning with a numeric digit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a conservative strategy&lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt; never&lt;/SPAN&gt;&lt;SPAN&gt; name folders, files or featureclasses starting with a digit. You are not allowed to start field names with a digit in most databases. Also, to make life easy avoid spaces in folders and file names as well. This avoids having to quote everything and use r"path to a strange world" for everything. Although windows and Unix &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;allows&lt;/SPAN&gt;&lt;SPAN&gt; spaces, it causes endless problems in ArcGIS and other packages if you have names, variables and anything that is not meant to be a number starting with a number or including spaces.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 09:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486351#M16300</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2010-06-10T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Join a Feature Class to a Table with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486352#M16301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;edit - please ignore - sorted my issue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 11:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/join-a-feature-class-to-a-table-with-python/m-p/486352#M16301</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-08-08T11:41:01Z</dc:date>
    </item>
  </channel>
</rss>

