<?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 Attribute Assistant: I have a concatenated field that maintains blank spaces if a contributing field is null.  How would I eliminate the spaces left from missing pre-direction and post-direction values? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210439#M12042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a the following value method in my dynamic value table#:&lt;/P&gt;&lt;P&gt;([ADDRNUM]+" "+[ROADPREDIR]+" "+[FULLNAME]+" "+[ROADPOSTDIR]+" "+[UNITTYPE]+" "+[UNITID])&lt;/P&gt;&lt;P&gt;When any of these values is null, the resulting concatenation contains extra spaces.&amp;nbsp; What would be the best way to ensure no extra spaces are created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 18:25:39 GMT</pubDate>
    <dc:creator>BobBoutiette1</dc:creator>
    <dc:date>2017-05-19T18:25:39Z</dc:date>
    <item>
      <title>Attribute Assistant: I have a concatenated field that maintains blank spaces if a contributing field is null.  How would I eliminate the spaces left from missing pre-direction and post-direction values?</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210439#M12042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a the following value method in my dynamic value table#:&lt;/P&gt;&lt;P&gt;([ADDRNUM]+" "+[ROADPREDIR]+" "+[FULLNAME]+" "+[ROADPOSTDIR]+" "+[UNITTYPE]+" "+[UNITID])&lt;/P&gt;&lt;P&gt;When any of these values is null, the resulting concatenation contains extra spaces.&amp;nbsp; What would be the best way to ensure no extra spaces are created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 18:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210439#M12042</guid>
      <dc:creator>BobBoutiette1</dc:creator>
      <dc:date>2017-05-19T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: I have a concatenated field that maintains blank spaces if a contributing field is null.  How would I eliminate the spaces left from missing pre-direction and post-direction values?</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210440#M12043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems odd to me that a blank space is inserted for a &amp;lt;null&amp;gt; value. &amp;nbsp;One thing that I do notice you are using the + operator. &amp;nbsp;You might try the &amp;amp; operator instead. &amp;nbsp;You could do a series of nested IIF statements to check of &amp;lt;null&amp;gt; values, but that's going to get ugly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 13:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210440#M12043</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-05-20T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: I have a concatenated field that maintains blank spaces if a contributing field is null.  How would I eliminate the spaces left from missing pre-direction and post-direction values?</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210441#M12044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob, I have the same problem using the field calculator in a geodatabase feature class to concatenate values. I have tried a few snippets of things posted here and I either get a blank space where a &amp;lt;null&amp;gt; would be or the entire result is &amp;lt;null&amp;gt; when the calculation hits a &amp;lt;null&amp;gt; field. I've tried + &amp;nbsp;and &amp;amp; with similar results. I thought I had this licked once but can't find a saved .cal file so here I am again ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2017 15:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210441#M12044</guid>
      <dc:creator>DavidFox</dc:creator>
      <dc:date>2017-07-29T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: I have a concatenated field that maintains blank spaces if a contributing field is null.  How would I eliminate the spaces left from missing pre-direction and post-direction values?</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210442#M12045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'d'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# values from a field for demonstration&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&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; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; a &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# the trick is the 'if i' part&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- yields ---&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'a b c d'&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210442#M12045</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: I have a concatenated field that maintains blank spaces if a contributing field is null.  How would I eliminate the spaces left from missing pre-direction and post-direction values?</title>
      <link>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210443#M12046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than deal with nulls, I did a selection [Problem Field] IS NULL then used the field calculator to replace &amp;lt;null&amp;gt; with ""&lt;/P&gt;&lt;P&gt;Not very elegant, a bit tedious, but it works and then allows my old concatenation calculation to work properly. I've wasted enough time on solving this.&lt;/P&gt;&lt;P&gt;Dan, in another post you talk about not having tables with nulls. How do you create a new feature class in a geodatabase that contains no nulls?&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 13:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/attribute-assistant-i-have-a-concatenated-field/m-p/210443#M12046</guid>
      <dc:creator>DavidFox</dc:creator>
      <dc:date>2017-07-31T13:52:53Z</dc:date>
    </item>
  </channel>
</rss>

