<?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 problem with Table to Table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278858#M21561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've encountered a problem with the Table to Table tool. While attempting to copy a table from a Personal Geodatabase (.mdb)&amp;nbsp;into an INFO workspace (directory), field names are truncated to 10 characters. I'm executing the tool via the python code below.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;convInfoWrkspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"E:/info_workspace_directory/"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#directory representing an INFO workspace&lt;/SPAN&gt;
convTempPGDBTblOut &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"pgdb_tbl"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#table in the personal geodatabase. table is in the ArcMap TOC&lt;/SPAN&gt;
convInfoNameOut &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"info_tble"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#table to be created in INFO workspace&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convInfoWrkspace
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;convTempPGDBTblOut&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;convInfoWrkspace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;convInfoNameOut&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, and I think tellingly, when using the same tool via the GUI (ArcToolbox), it won't even allow me to export to an INFO workspace. Instead, it adds a .dbf extension and creates a .dbf table. And, being a .dbf, the field names are truncated to 10 characters. The instructions for the tool state that by removing the .dbf extension on the output table name, an INFO table is created...but I'm unable to remove the ".dbf" - it's instantly re-added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing...I noticed that in Arc\INFO, the fields with truncated names actually do list the un-truncated name as the "alternate_name".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize INFO is going the way of the dodo, but does anyone have any suggestions on how to preserve the original field name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is occurring&amp;nbsp;with&amp;nbsp;version&amp;nbsp;10.1 SP1 (Build 3143).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:34:20 GMT</pubDate>
    <dc:creator>KeithD1</dc:creator>
    <dc:date>2021-12-11T13:34:20Z</dc:date>
    <item>
      <title>problem with Table to Table</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278858#M21561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've encountered a problem with the Table to Table tool. While attempting to copy a table from a Personal Geodatabase (.mdb)&amp;nbsp;into an INFO workspace (directory), field names are truncated to 10 characters. I'm executing the tool via the python code below.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;convInfoWrkspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"E:/info_workspace_directory/"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#directory representing an INFO workspace&lt;/SPAN&gt;
convTempPGDBTblOut &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"pgdb_tbl"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#table in the personal geodatabase. table is in the ArcMap TOC&lt;/SPAN&gt;
convInfoNameOut &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"info_tble"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#table to be created in INFO workspace&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convInfoWrkspace
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;convTempPGDBTblOut&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;convInfoWrkspace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;convInfoNameOut&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, and I think tellingly, when using the same tool via the GUI (ArcToolbox), it won't even allow me to export to an INFO workspace. Instead, it adds a .dbf extension and creates a .dbf table. And, being a .dbf, the field names are truncated to 10 characters. The instructions for the tool state that by removing the .dbf extension on the output table name, an INFO table is created...but I'm unable to remove the ".dbf" - it's instantly re-added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing...I noticed that in Arc\INFO, the fields with truncated names actually do list the un-truncated name as the "alternate_name".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize INFO is going the way of the dodo, but does anyone have any suggestions on how to preserve the original field name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is occurring&amp;nbsp;with&amp;nbsp;version&amp;nbsp;10.1 SP1 (Build 3143).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278858#M21561</guid>
      <dc:creator>KeithD1</dc:creator>
      <dc:date>2021-12-11T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Table to Table</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278859#M21562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are running into a fundamental limit of coverages: &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/coverages/fields-in-coverage-attribute-tables.htm"&gt;Fields (items) in coverage attribute tables&lt;/A&gt;.&amp;nbsp; The character limit is 16 characters, but the tools truncate at 10 to give some space for adding extra characters in case two fields share the same first 10 characters.&amp;nbsp; The alternate name, which is effectively an alias, contains the full name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 21:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278859#M21562</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-09-21T21:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Table to Table</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278860#M21563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't know if it applies to raster or non-featureclass data but&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/validatefieldname.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/validatefieldname.htm"&gt;ValidateFieldName—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and 10 characters is the limit, so you have to live within the bounds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 21:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278860#M21563</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-21T21:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Table to Table</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278861#M21564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, I was afraid of this response. So the original field names are 16 character, but ArcMap thinks it's going to protect me by truncating to 10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I think I'll do is simply warn the user of possible truncation and build some lines of AML code for them to paste into workstation to rename those fields to their original (up to 16 character) names. If they (read: me) fail to perform this extra step, it'll become obvious downstream when those fields are unavailable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the responses both of you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 21:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-table-to-table/m-p/278861#M21564</guid>
      <dc:creator>KeithD1</dc:creator>
      <dc:date>2016-09-21T21:53:13Z</dc:date>
    </item>
  </channel>
</rss>

