<?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 Length Issue - Anyone ever see this before????? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296843#M706095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A database char field can contain blanks which is not the same as database null. Additionally, there have been issues with consistency of IsNull() on the 64bit platform. There are also differences between blank trimming on database reads and file reads (controlled by Verbatim= variable). I've found the most reliable way to detect "empty" fields for all cases is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;len(trim(field))=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I will admit that your "z" example looks strange. I&amp;nbsp; debug these cases with an listbox expression of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='&amp;gt;' &amp;amp; field &amp;amp; '&amp;lt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What expression are you using for your "Length of Sales Deal Field" field? Is that a calculated dimension or an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 05:47:22 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2012-01-23T05:47:22Z</dc:date>
    <item>
      <title>Field Length Issue - Anyone ever see this before?????</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296841#M706092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Has anyone ever seen this, I have a Char field that has a length of 10 char.&amp;nbsp; In the data, the field would appear empty and I wanted to add a 'z' to it if it was empty. I had issues with trying to trim this field, using isnull, and then I had to finally do a purge char which got rid of the majority of them; Now I have this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example with the Z added:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 294px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border: 0.5pt solid gainsboro; width: 74pt; height: 12.75pt; background-color: whitesmoke;" width="98"&gt;&lt;STRONG style="font-family: Tahoma;"&gt;Sales&amp;nbsp;&amp;nbsp; deal&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: gainsboro gainsboro gainsboro #333333; width: 74pt; background-color: whitesmoke;" width="98"&gt;&lt;STRONG style="font-family: Tahoma;"&gt;Length of Sales&amp;nbsp;&amp;nbsp; Deal Field&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: gainsboro gainsboro gainsboro #333333; width: 74pt; background-color: whitesmoke;" width="98"&gt;&lt;STRONG style="font-family: Tahoma;"&gt;Count of Sales&amp;nbsp;&amp;nbsp; Deal&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 gainsboro gainsboro; height: 12.75pt; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;z&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;221&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 gainsboro gainsboro; height: 12.75pt; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;z&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;P&gt;&lt;SPAN style="font-family: Tahoma;"&gt;221&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Example with actual data that did not have an empty field&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 367px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border: 0.5pt solid gainsboro; width: 74pt; height: 12.75pt; background-color: whitesmoke;" width="98"&gt;&lt;STRONG style="font-family: Tahoma;"&gt;Sales&amp;nbsp;&amp;nbsp; deal&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: gainsboro gainsboro gainsboro #333333; width: 115pt; background-color: whitesmoke;" width="153"&gt;&lt;STRONG style="font-family: Tahoma;"&gt;Length of Sales&amp;nbsp;&amp;nbsp; Deal Field&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: gainsboro gainsboro gainsboro #333333; width: 87pt; background-color: whitesmoke;" width="116"&gt;&lt;STRONG style="font-family: Tahoma;"&gt;Count of Sales&amp;nbsp;&amp;nbsp; Deal&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 gainsboro gainsboro; height: 12.75pt; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;0000023833&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;4 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 gainsboro gainsboro; height: 12.75pt; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;0000023833&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;SPAN style="font-family: Tahoma;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 gainsboro gainsboro #333333; background-color: white;"&gt;&lt;P&gt;&lt;SPAN style="font-family: Tahoma;"&gt;18 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; How could this sales deal field have a length of 1 and a length of 10 with the same value in this field?&amp;nbsp; I want to be able to delete all records where the sales deal = z and doing an inner join where it's &amp;lt;&amp;gt; 'z' is not working.&amp;nbsp; It did earlier but I am still left with 221 of them.&amp;nbsp; ANy thoughts?Thanks, Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 17:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296841#M706092</guid>
      <dc:creator />
      <dc:date>2012-01-22T17:52:43Z</dc:date>
    </item>
    <item>
      <title>Field Length Issue - Anyone ever see this before?????</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296842#M706093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isnull(field) or field=null() or len(trim(field)) = 0 (or trim(field) = '')&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course 3 and 4 are the same. Remember that null() and isnull(field) is not the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual lenght of the field is not working properly, but maybe you need to post the script and expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 19:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296842#M706093</guid>
      <dc:creator />
      <dc:date>2012-01-22T19:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Field Length Issue - Anyone ever see this before?????</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296843#M706095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A database char field can contain blanks which is not the same as database null. Additionally, there have been issues with consistency of IsNull() on the 64bit platform. There are also differences between blank trimming on database reads and file reads (controlled by Verbatim= variable). I've found the most reliable way to detect "empty" fields for all cases is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;len(trim(field))=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I will admit that your "z" example looks strange. I&amp;nbsp; debug these cases with an listbox expression of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='&amp;gt;' &amp;amp; field &amp;amp; '&amp;lt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What expression are you using for your "Length of Sales Deal Field" field? Is that a calculated dimension or an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 05:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Length-Issue-Anyone-ever-see-this-before/m-p/296843#M706095</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-01-23T05:47:22Z</dc:date>
    </item>
  </channel>
</rss>

