<?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.ExcelToTable field name length limitation for in_memory output in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272698#M21057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears there is not that limitation when using &lt;STRONG&gt;arcpy.TableToTable_conversion()&lt;/STRONG&gt; instead of &lt;STRONG&gt;arcpy.ExcelToTable()&lt;/STRONG&gt; but &lt;STRONG&gt;.xlsx&lt;/STRONG&gt; is not supported. You will have to use &lt;STRONG&gt;.xls&lt;/STRONG&gt; or other formats.&lt;/P&gt;&lt;P&gt;&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;&lt;SPAN class="string token"&gt;"c:\\temp\\input.xls"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"table"&lt;/SPAN&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 20:03:10 GMT</pubDate>
    <dc:creator>MaximeDemers</dc:creator>
    <dc:date>2017-11-07T20:03:10Z</dc:date>
    <item>
      <title>arcpy.ExcelToTable field name length limitation for in_memory output</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272696#M21055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out there is a limitation of 10 characters for field names if you output &lt;STRONG&gt;arcpy.ExcelToTable()&lt;/STRONG&gt; to a &lt;STRONG&gt;"in_memory&lt;/STRONG&gt;" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why? Is it because dbf format is used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have this limitation when I use &lt;STRONG&gt;"in_memory"&lt;/STRONG&gt; with other tools such &lt;STRONG&gt;arcpy.CopyFeatures_management()&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExcelToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:\\temp\\input.xlsx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory\table"&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;Is there a way to use get rid of this limitation with&lt;STRONG&gt; arcpy.ExcelToTable()&lt;/STRONG&gt; and &lt;STRONG&gt;"in_memory"?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272696#M21055</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-11-07T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ExcelToTable field name length limitation for in_memory output</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272697#M21056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding a &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/functions/validatefieldname.htm"&gt;&lt;STRONG&gt;ValidateFieldName t&lt;/STRONG&gt;&lt;/A&gt;o your workflow to see what it returns since it validates it against the workspace and not the source.&amp;nbsp; So for geodatabase, it would be longer, but in_memory or folder, there is no recommendation, but a shapefile would definitely have a limitation... see this also&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/get-started/working-with-geodatabases.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/get-started/working-with-geodatabases.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 19:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272697#M21056</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-07T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ExcelToTable field name length limitation for in_memory output</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272698#M21057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears there is not that limitation when using &lt;STRONG&gt;arcpy.TableToTable_conversion()&lt;/STRONG&gt; instead of &lt;STRONG&gt;arcpy.ExcelToTable()&lt;/STRONG&gt; but &lt;STRONG&gt;.xlsx&lt;/STRONG&gt; is not supported. You will have to use &lt;STRONG&gt;.xls&lt;/STRONG&gt; or other formats.&lt;/P&gt;&lt;P&gt;&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;&lt;SPAN class="string token"&gt;"c:\\temp\\input.xls"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"table"&lt;/SPAN&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272698#M21057</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-11-07T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ExcelToTable field name length limitation for in_memory output</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272699#M21058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the table is going out to a geodatabase table, but not a dbase table I would assume from the help&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/table-to-table.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/conversion/table-to-table.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 12:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272699#M21058</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-10T12:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ExcelToTable field name length limitation for in_memory output</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272700#M21059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really try to avoid long field names unless I absolutely need them, because if the dataset has to go through shapefile at some point (say to export to another software system) your field names will get truncated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/supplement/geoprocessing-considerations-for-shapefile-output.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/supplement/geoprocessing-considerations-for-shapefile-output.htm"&gt;Geoprocessing considerations for shapefile output—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272700#M21059</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-11-10T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ExcelToTable field name length limitation for in_memory output</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272701#M21060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good advice, but I prefer to avoid shapefiles, JSON is a better format for sharing data between systems, especially over the net because it's a one file format and can be manipulated by almost every programming language directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exceltotable-field-name-length-limitation/m-p/272701#M21060</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-11-10T16:05:15Z</dc:date>
    </item>
  </channel>
</rss>

