<?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: Joining a shapefiles attributes to a table in ArcGIS 10 using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179518#M13759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please also see this tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=da1540fb59d84b7cb02627856f65a98d" title="http://www.arcgis.com/home/item.html?id=da1540fb59d84b7cb02627856f65a98d"&gt;http://www.arcgis.com/home/item.html?id=da1540fb59d84b7cb02627856f65a98d&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 21:45:56 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2016-02-22T21:45:56Z</dc:date>
    <item>
      <title>Joining a shapefiles attributes to a table in ArcGIS 10 using Python</title>
      <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179514#M13755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to join a shapefiles attributes to a table in ArcGIS 10 using Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code I have been using. What do the errors mean?? Why are error occuring? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; env.workspace = "R:\Dawson, Monique\Canada_Weather_Grid"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Parsing error &amp;lt;type 'exceptions.SyntaxError'&amp;gt;: invalid syntax (line 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.JoinField_management("nodes_gp_100.csv", "ID", "Alberta_Weather_Nodes", "ID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000339: Input nodes_gp_100.csv does not have OIDs Failed to execute (JoinField). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.JoinField_management("Alberta_Weather_Nodes", "ID", "nodes_gp_100.csv", "ID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function. Failed to execute (JoinField). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.JoinField_management("GP_100", "ID", "Alberta_Weather_Nodes", "ID")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 18:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179514#M13755</guid>
      <dc:creator>MoniqueDawson</dc:creator>
      <dc:date>2014-03-13T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a shapefiles attributes to a table in ArcGIS 10 using Python</title>
      <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179515#M13756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Monique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd start by changing your &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; text-decoration: underline;"&gt;env.workspace&lt;/SPAN&gt;&lt;SPAN&gt; line. When specifying a path in python you have to do one of the three actions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Replace all \'s with /'s&lt;/LI&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;env.workspace = "R:/Dawson, Monique/Canada_Weather_Grid"&lt;/PRE&gt;&lt;BR /&gt;&lt;LI&gt;Replace all \'s with double \'s&lt;/LI&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;env.workspace = "R:\\Dawson, Monique\\Canada_Weather_Grid"&lt;/PRE&gt;&lt;BR /&gt;&lt;LI&gt;(My personal favorite)Add an 'r' in front of the string&lt;/LI&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;env.workspace = r"R:\Dawson, Monique\Canada_Weather_Grid"&lt;/PRE&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;This is because python sees "\" as a special character.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if this fixes your problem or not. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 18:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179515#M13756</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2014-03-13T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a shapefiles attributes to a table in ArcGIS 10 using Python</title>
      <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179516#M13757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;have you tried exporting your CSV to a DBF first?&amp;nbsp; Also, as a side note, be careful with this join field tool.&amp;nbsp; They may have fixed this in 10.2, but sometimes the results aren't good when you use a field that isn't numeric to perform the join with this tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 12:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179516#M13757</guid>
      <dc:creator>NickJones</dc:creator>
      <dc:date>2014-03-14T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a shapefiles attributes to a table in ArcGIS 10 using Python</title>
      <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179517#M13758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Struggle with this almost the entire day... just found this answer and option #3 worked like a charm.&amp;nbsp; Thanks!&amp;nbsp; Lives will be saved on my ride home today!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179517#M13758</guid>
      <dc:creator>KinleyWinchester</dc:creator>
      <dc:date>2016-02-22T21:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a shapefiles attributes to a table in ArcGIS 10 using Python</title>
      <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179518#M13759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please also see this tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=da1540fb59d84b7cb02627856f65a98d" title="http://www.arcgis.com/home/item.html?id=da1540fb59d84b7cb02627856f65a98d"&gt;http://www.arcgis.com/home/item.html?id=da1540fb59d84b7cb02627856f65a98d&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179518#M13759</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2016-02-22T21:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Joining a shapefiles attributes to a table in ArcGIS 10 using Python</title>
      <link>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179519#M13760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/55463"&gt;Filenames and file paths in Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Read it when you get home... your safe journey has other stumbling blocks... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/joining-a-shapefiles-attributes-to-a-table-in/m-p/179519#M13760</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-22T21:45:58Z</dc:date>
    </item>
  </channel>
</rss>

