<?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: Field Calculator: Text White Space Bug - Pro 2.5.1 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534306#M23520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be on the safe side, add a new text field and use the field calculator expression (python, replace the field name)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;!YourField!&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ----- demo&lt;/SPAN&gt;
test &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;" Yes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Yes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Yes     "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; test&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"'{}'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
&lt;SPAN class="string token"&gt;'Yes'&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'Yes'&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'Yes'&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;If you like the result, copy the field back into the original.&lt;/P&gt;&lt;P&gt;If you live on the edge, skip the adding new field and set the undo calculation option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:12:52 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-12-11T23:12:52Z</dc:date>
    <item>
      <title>Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534305#M23519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on trying to get a dataset that was lazily collected and processed by a contractor, fixed. There are values in the fields that have lot of leading, trailing whitespace and in some cases both leading and trailing whitespace.&amp;nbsp; At time more than one whitespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I would expect: the Insert Values control in the Field Calculator to show all unique values found in the field.&lt;/LI&gt;&lt;LI&gt;What actually happens: the Insert Value control ignores all whitespaces and incorrectly identifies different values as a single value&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Yes"&lt;/LI&gt;&lt;LI&gt;" Yes"&lt;/LI&gt;&lt;LI&gt;"Yes "&lt;/LI&gt;&lt;LI&gt;"Yes&amp;nbsp; "&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are all different values and should be treated as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to report a bug but the support page claims I don't belong to a organisation, which I do. And I shouldn't need a support case to report a bug, I don't need someone to fawn over me, it just needs better programming, unit testing and fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 21:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534305#M23519</guid>
      <dc:creator>RomaHicks</dc:creator>
      <dc:date>2020-05-13T21:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534306#M23520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be on the safe side, add a new text field and use the field calculator expression (python, replace the field name)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;!YourField!&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ----- demo&lt;/SPAN&gt;
test &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;" Yes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Yes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Yes     "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; test&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"'{}'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
&lt;SPAN class="string token"&gt;'Yes'&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'Yes'&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'Yes'&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;If you like the result, copy the field back into the original.&lt;/P&gt;&lt;P&gt;If you live on the edge, skip the adding new field and set the undo calculation option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534306#M23520</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-12-11T23:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534307#M23521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I wanted to report a bug but the support page claims I don't belong to a organisation, which I do.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Regardless of whether you do or don't belong to an organization, Esri's systems aren't attaching you to an organization in the way necessary to open a Support case.&amp;nbsp; In many organizations, there are a limited number of users that can open cases with Esri Support, and other employees need to work through those "authorized callers."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;And I shouldn't need a support case to report a bug&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately, Esri gets to make those decisions since they developed the software and provide support for it.&amp;nbsp; You can submit an &lt;A href="https://community.esri.com/space/2167"&gt;ArcGIS Ideas&lt;/A&gt;‌ to support reporting a bug without opening a Support case, but I doubt Esri will go down that path.&amp;nbsp; I fought a similar battle with Esri for years, i.e., advocating for a different way of logging defects, but nothing changed.&amp;nbsp; Eventually, I stopped pushing/advocating because it wasn't going anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 00:47:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534307#M23521</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-14T00:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534308#M23522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not totally like Calculate Field, but Find and Replace looks like it will work if you set it to 'Match whole field'&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492320_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you don't know how many other combinations of " Yes", "Yes&amp;nbsp; ", "&amp;nbsp; Yes&amp;nbsp; &amp;nbsp; " etc. exist, but if know what you do want: "Yes" (no spaces) then Find those first and select them.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/492321_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Switch selection, and you'll get the Yes's with spaces.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/492322_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Granted, I'm sure the table has some No's or other values, so you may need to try a def query before this, or simply use Dan's script example.&amp;nbsp; Just thinking through some other options here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 12:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534308#M23522</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2020-05-15T12:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534309#M23523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I have been using regex with the Field Calculator to clean up the whitespace. But I would like to just pick the field and click to check that it is clean. Not run it on every field to make sure it is clean. I am not familiar enough with the API to write a script to just blanket remove all whitespace (and that could be dangerous too), or have enough time to familiarize myself with it right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 14:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534309#M23523</guid>
      <dc:creator>RomaHicks</dc:creator>
      <dc:date>2020-05-15T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534310#M23524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I am the owner/admin of my organization and I checked when I attempted to report it, but it was transitioned to me and maybe I keep missing it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 14:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534310#M23524</guid>
      <dc:creator>RomaHicks</dc:creator>
      <dc:date>2020-05-15T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534311#M23525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given what you are experiencing, have you tried getting Support on the phone?&amp;nbsp; It seems something isn't right with the system, and it might take less time to sort out with a person.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 16:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534311#M23525</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-15T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator: Text White Space Bug - Pro 2.5.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534312#M23526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like this was submitted recently&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEyOTIxMw==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEyOTIxMw=="&gt;BUG-000129213: In ArcGIS Pro, the trailing space in the Field attri..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(it doesn't appear to be specific to Pro; i.e. ArcMap is not a workaround).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roma, you could visit that page and click Subscribe.&amp;nbsp; That will set you up for notifications and also increment the count of affected customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 13:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculator-text-white-space-bug-pro-2-5-1/m-p/534312#M23526</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2020-05-18T13:32:36Z</dc:date>
    </item>
  </channel>
</rss>

