<?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: Max. text length for InsertCursor field in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398919#M2619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint, but I guess in my case it is not usefull:&lt;/P&gt;&lt;P&gt;this would become a 'many-to-one' relationship : each line/feature in my pipelines table would need to refer to up to 20k labels, how can I link each X,Y point in the shape field to a label in another table ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 12:24:45 GMT</pubDate>
    <dc:creator>MarcWouters</dc:creator>
    <dc:date>2017-07-17T12:24:45Z</dc:date>
    <item>
      <title>Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398911#M2611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am importing X,Y values from file into a shape, but I need to keep the labels of each point as well in my application.&lt;/P&gt;&lt;P&gt;By lack of a way to keep a list of texts, I create a long string, separated by tabs, to keep the labels and the shape in the same feature in the resulting table.&lt;/P&gt;&lt;P&gt;I use the following code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;cursor = arcpy.da.InsertCursor("Pipes", ["Name", "SHAPE@", "PointLabels"]) &lt;BR /&gt; cursor.insertRow([fileName, polyline, pointLabels])&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For some datasets, I get this error&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: #000066; font-weight: 600; font-size: large;"&gt;The row contains a bad value. [PointLabels]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I assume that this is caused by exceeding some size limit, but I cannot determine easily which size this could be. (number of points and length of text labels vary quite a lot).&lt;/P&gt;&lt;P&gt;Any idea if there is a limit, and if so, what is this limit ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 07:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398911#M2611</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T07:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398912#M2612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if by 'shape' you mean 'shapefile', then the dbf portion of the shapefile limits a text field to 254 characters&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 08:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398912#M2612</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-17T08:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398913#M2613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should have made this more clear (due to my short experience with ArcGIS products, I guess).&lt;/P&gt;&lt;P&gt;It's not a 'shapefile' I'm writing to, but a GeodatabaseFeatureTable, and have had no problems with text strings of 200kB.&lt;/P&gt;&lt;P&gt;After posting the question, I re-ran my script with some extra debug print statements, and I could see that it fails on a polygon with 34573 points, and the string with the labels is 230905 bytes long.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 08:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398913#M2613</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T08:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398914#M2614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field widths in characters, not bytes is pretty big&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/administer-file-gdbs/file-geodatabase-size-and-name-limits.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/manage-data/administer-file-gdbs/file-geodatabase-size-and-name-limits.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 08:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398914#M2614</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-17T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398915#M2615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing out this geodatabase size limits page. Hadn't seen it yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then something else must be wrong.&lt;/P&gt;&lt;P&gt;It's not the content of the text string (backslash or so),it only contains text like 'P1 P2 P3 ... P4357 P4358 ...' and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 09:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398915#M2615</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T09:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398916#M2616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/273562"&gt;Marc Wouters&lt;/A&gt;&amp;nbsp;&amp;nbsp;can you elaborate a little more on what you are hoping to gain with a field that contains&amp;nbsp;&lt;EM style="background-color: #ffffff;"&gt;'P1 P2 P3 ... P4357 P4358 ...'?&amp;nbsp;&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If this represents some kind of relation with other features then you might want to consider using relationshipclasses. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 11:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398916#M2616</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-07-17T11:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398917#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the application (C++/Qt using ArcGIS Runtime 100.0) we're building, we need to be able to identify the label of each individual point of each geometry (pipeline).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find a way to store this in a vector/array/list in the file geodatabase.&lt;/P&gt;&lt;P&gt;Relationshipclasses are new to me, no idea if this can help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 11:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398917#M2617</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T11:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398918#M2618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some reading on this topic:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/relationships/benefits-of-relationship-classes.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/relationships/benefits-of-relationship-classes.htm"&gt;Benefits of relationship classes—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;I might be useful in this case. You will be able to have your featureclass and a separate table with the "labels" and the relationship class enables the relation between them. You should revise if relationship classes are supported in&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ArcGIS Runtime 100.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 12:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398918#M2618</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-07-17T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398919#M2619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint, but I guess in my case it is not usefull:&lt;/P&gt;&lt;P&gt;this would become a 'many-to-one' relationship : each line/feature in my pipelines table would need to refer to up to 20k labels, how can I link each X,Y point in the shape field to a label in another table ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 12:24:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398919#M2619</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398920#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have a single line that links to 20k labels it is a 'one-to-many' relationship which is quite common. You also mention that you want to link each X, Y point to a label. Are you referring to the vertices of the line? In that case you should manage those as a separate point featureclass. Still not sure what you are trying to obtain. Can you provide an image that explains what you are trying to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 13:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398920#M2620</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-07-17T13:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398921#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All data MUST be stored in polygons, because we can have several thousands polygons, with several thousands of vertices, and the visualisation would simply be much too slow if we would use one entry per vertex (points table)&lt;/P&gt;&lt;P&gt;Your proposal of having a separate point feature class (in fact duplicating all the data) might work, if we split the visualisation (polygons) and the administration part (points). But it requires a lot of extra linking, I guess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 13:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398921#M2621</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T13:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398922#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignoring the data design issues for the time being, which by the way I agree with the other commenters, what is the current field length of the text field you are trying to insert into?&amp;nbsp; I just inserted a 400,000 character string into a file geodatabase text field that was set to 500,000 length, but I get a bad value error if I try to insert a 550,000 character string.&amp;nbsp; In short, make sure your field is specified to handle strings as long as you are trying to insert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398922#M2622</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-17T14:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398923#M2623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had just discovered that this was the cause of my original problem.&lt;/P&gt;&lt;P&gt;Thanks for answering to the first question !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398923#M2623</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398924#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this moment I'm not going to change the design of the tables, because the C++ application is already using this format, changing everything takes too much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I set my text length to 400k to be on the save side. But many of these text fields are much shorter. This is a huge waste of memory space. Is there a way to set this length dynamically, to store short AND long text strings ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398924#M2624</guid>
      <dc:creator>MarcWouters</dc:creator>
      <dc:date>2017-07-17T14:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398925#M2625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that if you don't want to change the design of the tables and adapt the code to work with the relationship classes, you will have to accept that there will be memory waste...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit: CC&amp;nbsp;&lt;A href="https://community.esri.com/people/vangelo-esristaff"&gt;vangelo-esristaff&lt;/A&gt;&amp;nbsp;who I'm sure can provide some useful insights,,,,&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398925#M2625</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-07-17T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398926#M2626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't even modify field length in ArcGIS PRO... unless the table is empty&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/alter-field-properties.htm"&gt;&lt;STRONG&gt; Modify Fields&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398926#M2626</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-17T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Max. text length for InsertCursor field</title>
      <link>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398927#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file geodatabase text field is more like a varchar than char, so you don't really waste any disk space if the max length is set to 100 or 500,000.&amp;nbsp; It is the contents of the field that drive most of the space on disk.&amp;nbsp; That said, there may be performance issues tied to storing lots of short character strings in a field with a max length of 500,000; I don't know the FGDB innards enough to say for sure on performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/max-text-length-for-insertcursor-field/m-p/398927#M2627</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-17T16:56:46Z</dc:date>
    </item>
  </channel>
</rss>

