<?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 Get maximum text value length of multiple text fields in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552914#M89541</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've imported a .CSV to an enterprise geodatabase as a standalone table using the Table to Geodatabase geoprocessing tool.&lt;/P&gt;&lt;P&gt;Unfortunately, the tool has made the text fields way too long:&amp;nbsp;1073741822 characters, regardless of the max value length in a given field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1730137593513.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118261i5B1DD8EFAE2AC69D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1730137593513.png" alt="Bud_0-1730137593513.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've deleted all rows in the table to allow me to change the field lengths using the Fields View. (I'll re-load the data afterwards.) But the question is: What lengths to use? If I could determine what the max value length in all of the fields, then I'd set the max length to, say, 255 for all fields. But I don't know what the max text value length is.&lt;/P&gt;&lt;P&gt;How can I determine the max text value length of multiple fields using ArcGIS Pro?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/import-table-set-text-field-length-to-input-field/idi-p/1552921" target="_self"&gt;Import Table — Set text field length to input field's max text value length&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2024 19:02:56 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-10-28T19:02:56Z</dc:date>
    <item>
      <title>Get maximum text value length of multiple text fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552914#M89541</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've imported a .CSV to an enterprise geodatabase as a standalone table using the Table to Geodatabase geoprocessing tool.&lt;/P&gt;&lt;P&gt;Unfortunately, the tool has made the text fields way too long:&amp;nbsp;1073741822 characters, regardless of the max value length in a given field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1730137593513.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118261i5B1DD8EFAE2AC69D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1730137593513.png" alt="Bud_0-1730137593513.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've deleted all rows in the table to allow me to change the field lengths using the Fields View. (I'll re-load the data afterwards.) But the question is: What lengths to use? If I could determine what the max value length in all of the fields, then I'd set the max length to, say, 255 for all fields. But I don't know what the max text value length is.&lt;/P&gt;&lt;P&gt;How can I determine the max text value length of multiple fields using ArcGIS Pro?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/import-table-set-text-field-length-to-input-field/idi-p/1552921" target="_self"&gt;Import Table — Set text field length to input field's max text value length&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 19:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552914#M89541</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-10-28T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum text value length of multiple text fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552919#M89543</link>
      <description>&lt;P&gt;One option is to use SQL in a SQL client like SQL Developer:&lt;/P&gt;&lt;PRE&gt;select
    max(length(WONUM)),
    max(length(RECTYPE)),
    max(length(DESCRIPTION)),
    max(length(STATUS)),
    max(length(WO_CLASSIFICATION)),
    max(length(OWNERGROUP)),
    max(length(ASSET_DESCRIPTION)),
    max(length(ASSET_CLASSIFICATION)),
    max(length(LOCATION)),
    max(length(LOCATION_DESCRIPTION)),
    max(length(REPORTDATE)),
    max(length(STATUSDATE)),
    max(length(ACTSTART)),
    max(length(ACTFINISH)),
    max(length(DIVISION)),
    max(length(ASSETNUM)),
    max(length(RECUNIQUEID)),
    max(length(SA_ADDRESSLINE2)),
    max(length(SA_STADDRSTREET)),
    max(length(SA_STADDRNUMBER)),
    max(length(SA_DESCRIPTION)),
    max(length(SA_STREETADDRESS)),
    max(length(SA_FORMATTEDADDRESS)),
    max(length(SA_CODE)),
    max(length(XYSOURCE)),
    max(length(SUBZONE))
from
    infrastr.a_test_tbl&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1730138206408.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118262i35D8A4CCC109FFF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1730138206408.png" alt="Bud_0-1730138206408.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It would be ideal if I could pivot using Oracle SQL and then ORDER BY to find the max. I'm aware of the PIVOT clause in Oracle SQL, but I'm not sure how to use it for this.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 17:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552919#M89543</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-10-28T17:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum text value length of multiple text fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552934#M89546</link>
      <description>&lt;P&gt;Unfortunately, changing the field lengths in the empty table using the Fields View didn't work:&lt;/P&gt;&lt;P&gt;"ERROR 001624: Failed to alter field length."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1730140290714.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118265i6C096C4DF2646C58/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1730140290714.png" alt="Bud_0-1730140290714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 18:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552934#M89546</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-10-28T18:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum text value length of multiple text fields</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552943#M89547</link>
      <description>&lt;P&gt;I think the problem is the underlying Oracle field type is NCLOB.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1730140755531.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118266iF38761D4EED031F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1730140755531.png" alt="Bud_1-1730140755531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's unusual for Oracle enterprise geodatabase tables. The underlying text datatype is usually NVARCHAR2.&lt;/P&gt;&lt;P&gt;With that said, I think I found a fix:&lt;/P&gt;&lt;P&gt;In ArcGIS Pro &amp;gt; Fields View, change the field data type in the empty table from TEXT to SHORT INT. Save. Then change it back to TEXT. Save. The underlying datatype is now&amp;nbsp;NVARCHAR2(255 CHAR).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 20:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-maximum-text-value-length-of-multiple-text/m-p/1552943#M89547</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-10-28T20:04:06Z</dc:date>
    </item>
  </channel>
</rss>

