<?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 SQL field name limit - arcpy.ValidateFieldName and error &amp;quot;Attribute column not found&amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sql-field-name-limit-arcpy-validatefieldname-and/m-p/379125#M29899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on adapting a script for filling in field values in existing features, previously used in ArcMap, now transitioning to ArcGIS Pro, using a SQL database. The adapted script throws me the error&amp;nbsp;"Attribute column not found". I tried then to validate my field name and was confronted with a character limit. A field name with more than 10 characters is returned with just 10 characters.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ValidateFieldName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"abcdefghijklmnopq"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;workspace&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'abcdefghij'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;So, now how do I find my way around that limitation? I have several field names, that are longer than 10 characters and I won't be able to shorten them. Is this a setting in the database itself? Or what do take that into consideration in my code? What am I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:30:09 GMT</pubDate>
    <dc:creator>BarbaraS</dc:creator>
    <dc:date>2021-12-11T17:30:09Z</dc:date>
    <item>
      <title>SQL field name limit - arcpy.ValidateFieldName and error "Attribute column not found"</title>
      <link>https://community.esri.com/t5/python-questions/sql-field-name-limit-arcpy-validatefieldname-and/m-p/379125#M29899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on adapting a script for filling in field values in existing features, previously used in ArcMap, now transitioning to ArcGIS Pro, using a SQL database. The adapted script throws me the error&amp;nbsp;"Attribute column not found". I tried then to validate my field name and was confronted with a character limit. A field name with more than 10 characters is returned with just 10 characters.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ValidateFieldName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"abcdefghijklmnopq"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;workspace&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'abcdefghij'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;So, now how do I find my way around that limitation? I have several field names, that are longer than 10 characters and I won't be able to shorten them. Is this a setting in the database itself? Or what do take that into consideration in my code? What am I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-field-name-limit-arcpy-validatefieldname-and/m-p/379125#M29899</guid>
      <dc:creator>BarbaraS</dc:creator>
      <dc:date>2021-12-11T17:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL field name limit - arcpy.ValidateFieldName and error "Attribute column not found"</title>
      <link>https://community.esri.com/t5/python-questions/sql-field-name-limit-arcpy-validatefieldname-and/m-p/379126#M29900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the workspace?&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;If the optional workspace is not specified, the field name is validated against the current workspace&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you wanting to create a new field and validate a name you are planning to use?&amp;nbsp; Or did you want to use something like &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/functions/listfields.htm"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;ListFields&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;to verify that a certain field exists?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 23:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-field-name-limit-arcpy-validatefieldname-and/m-p/379126#M29900</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2019-07-24T23:00:30Z</dc:date>
    </item>
  </channel>
</rss>

