<?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: Changing the case of text field values in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592902#M33503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What error exactly do you get?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is OK so you might missed something when typing or your data is specific.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively you can try another Python function which basicaly do the same:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;!FieldName!.&lt;STRONG&gt;title()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 05:29:13 GMT</pubDate>
    <dc:creator>MarcinGasior</dc:creator>
    <dc:date>2012-06-26T05:29:13Z</dc:date>
    <item>
      <title>Changing the case of text field values</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592901#M33502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the arcgis help page gives the Python script of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' '.join([i.capitalize() for i in !FieldName!.split(' ')])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to change the text values of an attirbute from YAY PYTHON, yay python, YaY pYtHoN, etc to Yay Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i copy and paste this into GIS and replacing FieldName with the correct field name, it give me a geoprocessing error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas on how to correctly get this to format my fields?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Changing_the_case_of_text_field_values/005s00000028000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Changing_the_case_of_text_field_values/005s00000028000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 19:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592901#M33502</guid>
      <dc:creator>KevinCrosby</dc:creator>
      <dc:date>2012-06-25T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the case of text field values</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592902#M33503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What error exactly do you get?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is OK so you might missed something when typing or your data is specific.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively you can try another Python function which basicaly do the same:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;!FieldName!.&lt;STRONG&gt;title()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 05:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592902#M33503</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-26T05:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the case of text field values</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592903#M33504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"A field name was no found or there were unbalanced quotation marks"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a couple entrys have special characters like () in them...might that be causing the issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 15:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592903#M33504</guid>
      <dc:creator>KevinCrosby</dc:creator>
      <dc:date>2012-06-26T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the case of text field values</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592904#M33505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This error indicates that you have something wrong in expression. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Double check if you provide existing field name (not a field alias) enclosed with ! !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;() should not be a problem to run expression - just if a separate word is enclosed with (), it won't be capitalised.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 04:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592904#M33505</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-27T04:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the case of text field values</title>
      <link>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592905#M33506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Figured out the problem.&amp;nbsp; There were a couple entries with words in "" in them that seemed to ruin the script. Removed the "" surrounding the words and it started working perfectly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 12:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/changing-the-case-of-text-field-values/m-p/592905#M33506</guid>
      <dc:creator>KevinCrosby</dc:creator>
      <dc:date>2012-06-27T12:30:53Z</dc:date>
    </item>
  </channel>
</rss>

