<?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 Reading in strings - 256 char limit in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27767#M2116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm reading in text values from xls and csv files, I'm using row.getValue('Field_Name") to read the values in. This method is working well with short sentences but fails once it hits 256 chars. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another method that allows more characters to be pulled in? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2012 18:16:10 GMT</pubDate>
    <dc:creator>JonPedder</dc:creator>
    <dc:date>2012-08-06T18:16:10Z</dc:date>
    <item>
      <title>Reading in strings - 256 char limit</title>
      <link>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27767#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm reading in text values from xls and csv files, I'm using row.getValue('Field_Name") to read the values in. This method is working well with short sentences but fails once it hits 256 chars. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another method that allows more characters to be pulled in? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 18:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27767#M2116</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-08-06T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in strings - 256 char limit</title>
      <link>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27768#M2117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm reading in text values from xls and csv files, I'm using row.getValue('Field_Name") to read the values in. This method is working well with short sentences but fails once it hits 256 chars. &lt;BR /&gt;&lt;BR /&gt;Is there another method that allows more characters to be pulled in? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a limitation of how tables are read in ArcGIS (using Microsoft Jet). However, there are limitations writing large strings to some data types as well (.dbf, .mdb).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may have more luck reading long strings in a .csv using the python &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://docs.python.org/library/csv.html" rel="nofollow" target="_blank"&gt;csv module. &lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 22:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27768#M2117</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-08-06T22:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in strings - 256 char limit</title>
      <link>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27769#M2118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks that was helpful. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The odd behavior in reading strings equal to or longer that 256 is that the entire script fails, not just the one long string. For a field named Description and pulling in 10 rows of data, if just one value is too large all 10 rows fail on that field. You'd think that just the one record would fail not all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 18:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27769#M2118</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-08-07T18:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in strings - 256 char limit</title>
      <link>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27770#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks that was helpful. &lt;BR /&gt;&lt;BR /&gt;The odd behavior in reading strings equal to or longer that 256 is that the entire script fails, not just the one long string. For a field named Description and pulling in 10 rows of data, if just one value is too large all 10 rows fail on that field. You'd think that just the one record would fail not all.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft Jet parses through the first few rows of the file to determine datatype. This setup process is clearly broken by your long strings!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's more about this in the 10.0 help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s00000010000000"&gt;Adding an ASCII or text file table&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 19:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reading-in-strings-256-char-limit/m-p/27770#M2119</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-08-07T19:18:03Z</dc:date>
    </item>
  </channel>
</rss>

