<?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: ArcPy - TableToTable Creating Duplicate Fields in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331955#M25821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason, somebody in development thought it would be&amp;nbsp;a good idea to have the TableToTable tool assume the data type in a field might be coordinate information. This is ridiculous. The script runs and creates and x and y field because... who knows why.&lt;/P&gt;&lt;P&gt;This is a huge pain to anyone who needs a table structure to not change because they may be using a new table to overwrite an old one.&lt;/P&gt;&lt;P&gt;The schema.ini file has&amp;nbsp;to be edited to make the tool recognize the fields as text and not assume that they are coordinate information just because it is a long number.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 20:12:18 GMT</pubDate>
    <dc:creator>jameshickey</dc:creator>
    <dc:date>2017-07-28T20:12:18Z</dc:date>
    <item>
      <title>ArcPy - TableToTable Creating Duplicate Fields</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331954#M25820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am seeing an issue where ArcPy TableToTable is creating duplicate fields in the output dbf.&lt;/P&gt;&lt;P&gt;Here are&amp;nbsp;the headers in the CSV I am adding:&amp;nbsp;MNAM, MCON, MAD1, MAD2, MCST, MZIP, GISKKK&lt;/P&gt;&lt;P&gt;and yes there is data in columns.&lt;/P&gt;&lt;P&gt;Here is the code I am running&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;putCSVHere&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; toDBF&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"putCSVHere" is path to CSV which I want to convert that contains the above headers.&lt;/P&gt;&lt;P&gt;"path" is the path to the folder where I am putting the new dbf.&lt;/P&gt;&lt;P&gt;"toDBF" is the name of the dbf file to be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My output dbf ends up with the following fields (headers):OID, MNAM, MCON, MAD1, MAD2, MCST, MZIP, GISKKK, Extra Fields: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GISKKK_X, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GISKKK_Y&lt;/P&gt;&lt;P&gt;Data in these fields: 43.6666666667, -1&lt;/P&gt;&lt;P&gt;My question is, where do these extra fields "_X" and "_Y" come from and where does that data come from? It's not in the CSV anywhere&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 15:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331954#M25820</guid>
      <dc:creator>jameshickey</dc:creator>
      <dc:date>2017-07-25T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy - TableToTable Creating Duplicate Fields</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331955#M25821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason, somebody in development thought it would be&amp;nbsp;a good idea to have the TableToTable tool assume the data type in a field might be coordinate information. This is ridiculous. The script runs and creates and x and y field because... who knows why.&lt;/P&gt;&lt;P&gt;This is a huge pain to anyone who needs a table structure to not change because they may be using a new table to overwrite an old one.&lt;/P&gt;&lt;P&gt;The schema.ini file has&amp;nbsp;to be edited to make the tool recognize the fields as text and not assume that they are coordinate information just because it is a long number.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 20:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331955#M25821</guid>
      <dc:creator>jameshickey</dc:creator>
      <dc:date>2017-07-28T20:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy - TableToTable Creating Duplicate Fields</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331956#M25822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know you marked this as answered, but will add a few things that might be helpful in the future..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try using the field mapping option?&amp;nbsp; &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/table-to-table.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/table-to-table.htm"&gt;Table To Table—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-field-mapping-control.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-field-mapping-control.htm"&gt;Using the field mapping control—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure the "long number" is in quotes...then it should see it as text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 22:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-tabletotable-creating-duplicate-fields/m-p/331956#M25822</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-07-31T22:00:32Z</dc:date>
    </item>
  </channel>
</rss>

