<?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 Is there an output file name or path limit length in CopyRows_management? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286116#M22123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm processing a large amount of data, and in the process I use the copyrows function to create a new table. I do validate the table name before doing so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, it comes up with the "could not output" error every once in awhile. I've modified my program to just keep going and keep a list of the ones that failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can see in common is that all the tables it failed to create have names and paths on the longer side. Is this a limitation that exists in the function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2017 23:35:51 GMT</pubDate>
    <dc:creator>JustinAdamson</dc:creator>
    <dc:date>2017-08-25T23:35:51Z</dc:date>
    <item>
      <title>Is there an output file name or path limit length in CopyRows_management?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286116#M22123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm processing a large amount of data, and in the process I use the copyrows function to create a new table. I do validate the table name before doing so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, it comes up with the "could not output" error every once in awhile. I've modified my program to just keep going and keep a list of the ones that failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can see in common is that all the tables it failed to create have names and paths on the longer side. Is this a limitation that exists in the function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 23:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286116#M22123</guid>
      <dc:creator>JustinAdamson</dc:creator>
      <dc:date>2017-08-25T23:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an output file name or path limit length in CopyRows_management?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286117#M22124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing that could be happening here is that the ValidateTableName is creating duplicate table names. It doesn't check that its output is unique.&lt;/P&gt;&lt;P&gt;What's the output workstation type?&amp;nbsp;Can you provide a list of table names that failed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 23:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286117#M22124</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-08-25T23:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an output file name or path limit length in CopyRows_management?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286118#M22125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope is coming in &lt;STRONG&gt;&lt;A href="https://docs.python.org/3/whatsnew/3.6.html"&gt;python 3.6&lt;/A&gt;&lt;/STRONG&gt; for paths that exceed 260 characters&lt;/P&gt;&lt;P&gt;Under 'windows improvements'....&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN&gt;python.exe&lt;/SPAN&gt;&lt;/CODE&gt; and &lt;CODE&gt;&lt;SPAN&gt;pythonw.exe&lt;/SPAN&gt;&lt;/CODE&gt; have been marked as long-path aware, which means that the 260 character path limit may no longer apply. See &lt;A href="https://docs.python.org/3/using/windows.html#max-path"&gt;&lt;SPAN&gt;removing the MAX_PATH limitation&lt;/SPAN&gt;&lt;/A&gt; for details.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for security purposes, you will be required to provide the first 130 characters and the last 9 &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 00:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286118#M22125</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-26T00:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an output file name or path limit length in CopyRows_management?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286119#M22126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had some time to do some additional testing this morning. The table names are definitely all unique so that was not the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i took all the failed table names and deleted characters off the end until they were 32 characters in length, and now it works. It's strange to me that this is the case, as none of the other table-creating functions seem to be limited in this way. I'm on 10.2.2 by the way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 18:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286119#M22126</guid>
      <dc:creator>JustinAdamson</dc:creator>
      <dc:date>2017-08-28T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an output file name or path limit length in CopyRows_management?</title>
      <link>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286120#M22127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;ValidateTableName(&lt;/SPAN&gt;), which is a good practice, but is there the chance there are duplicate table names invovled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/working-with-geodatabases.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/working-with-geodatabases.htm"&gt;Validating table and field names in Python—Help | ArcGIS Desktop&lt;/A&gt; :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The &lt;SPAN class=""&gt;ValidateTableName&lt;/SPAN&gt; function does not determine that the specified name is unique to the specified workspace. The &lt;SPAN class=""&gt;Exists&lt;/SPAN&gt; function can check to see whether the table name is unique for a given workspace.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 19:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-there-an-output-file-name-or-path-limit-length/m-p/286120#M22127</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-08-28T19:27:47Z</dc:date>
    </item>
  </channel>
</rss>

