<?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: csv file load issue: Numeric strings get stored as numbers in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380988#M31385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I guess there must be something triggering the issue, because I actually tried to only load the "messy" column, and that one alone does work as expected.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So am attaching the full csv file, sorry for this. Column "testo1" may contain value "0022 " as well as value "00022".&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the qvf I added a sheet showing that I can only see values "0022" (trimming is ok) instead of "0022" and "00022".&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Am not attaching another similar csv file which I normally incrementally load after this one, which leads to only show value "00022" for the whole table (including those values which previously looked like "0022").&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Hope this is clear...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 16:56:36 GMT</pubDate>
    <dc:creator>llcolombo</dc:creator>
    <dc:date>2017-09-20T16:56:36Z</dc:date>
    <item>
      <title>csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380986#M31383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, am using Qlik Sense Desktop 3.2, and I hit an issue loading data from a csv file where a column contains mixed content - can be text or numbers - which should always be treated as text. I did specify in the load statament "load (text(field1)) as field1 from [...]", but if the content of field1 may be interpreted as a number, then it actually gets stored as such, although it apparently will show as text. &lt;/P&gt;&lt;P&gt;This will prevent from having different text values for strings which would represent the same numeric value. &lt;/P&gt;&lt;P&gt;For example, field1 may contain "00022" in a row, and "0022" in another one. Loading these values as text, I would expect the number of leading zeroes to be preserved correctly for each row. Instead, I get all "00022" or all "0022", depending possibly on the order of occurrencies. &lt;/P&gt;&lt;P&gt;For the time being, the only workaround I found out has been to concatenate an alphabetic char to field1 within the load statement, and then deal with the added char in the app in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be any other way to avoid such strings from being stored as numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lucia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380986#M31383</guid>
      <dc:creator>llcolombo</dc:creator>
      <dc:date>2017-09-20T10:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380987#M31384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;load (text(field1))&lt;/EM&gt;&amp;nbsp; should work as you wish it to - it certainly works for me &amp;amp; keeps the leading zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have just done a quick test with a csv file containing :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;ID ,Value&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;1,00022&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;2,000022&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;3,0222&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;4,123&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;5,0123&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;6,00123&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;And this in the script :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text(Value) as Value&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM [lib://Bill/Data.csv]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;(txt, codepage is 28591, embedded labels, delimiter is ',', msq);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it all worked fine with all the leading zeroes retained in the text.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ***************&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Could you share a sample csv &amp;amp; qvf demonstrating the issue, as there must some other factor in play messing it up.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380987#M31384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380988#M31385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I guess there must be something triggering the issue, because I actually tried to only load the "messy" column, and that one alone does work as expected.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So am attaching the full csv file, sorry for this. Column "testo1" may contain value "0022 " as well as value "00022".&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the qvf I added a sheet showing that I can only see values "0022" (trimming is ok) instead of "0022" and "00022".&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Am not attaching another similar csv file which I normally incrementally load after this one, which leads to only show value "00022" for the whole table (including those values which previously looked like "0022").&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Hope this is clear...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 16:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380988#M31385</guid>
      <dc:creator>llcolombo</dc:creator>
      <dc:date>2017-09-20T16:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380989#M31386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I can see both the values from the qvf you have shared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the screenshot.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177224_Qlik.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the output you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 17:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380989#M31386</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-09-20T17:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380990#M31387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to load field &lt;EM&gt;testo1&lt;/EM&gt; in text format with leading zero's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text(testo1) as testo1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM [lib://test/REGISTRO__2015_maggio-dicembre.CSV]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;(txt, codepage is 28591, embedded labels, delimiter is ';', msq);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I add a &lt;EM style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;trim &lt;/STRONG&gt;&lt;/EM&gt;it misbehaves as you describe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #ff0000;"&gt;trim&lt;/STRONG&gt;(text(testo1))&amp;nbsp; as testo1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;EM&gt;FROM [lib://test/REGISTRO__2015_maggio-dicembre.CSV]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;EM&gt;(txt, codepage is 28591, embedded labels, delimiter is ';', msq);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if do it like this with an outer &lt;EM style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;text &lt;/STRONG&gt;&lt;/EM&gt;wrapper then it behaves ok&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;text&lt;/STRONG&gt;&lt;/SPAN&gt;(trim(text(testo1))) as testo1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM [lib://test/REGISTRO__2015_maggio-dicembre.CSV]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;(txt, codepage is 28591, embedded labels, delimiter is ';', msq);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 17:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380990#M31387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380991#M31388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am expecting 00022 as well, and it looks to me is not in you screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Il 20 Set 2017 19:28, "Kaushik Solanki" &amp;lt;qcwebmaster@qlikview.com&amp;gt; ha&lt;/P&gt;&lt;P&gt;scritto:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380991#M31388</guid>
      <dc:creator>llcolombo</dc:creator>
      <dc:date>2017-09-20T20:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380992#M31389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh really &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks! But I thought trim was a string function and would possibly force a&lt;/P&gt;&lt;P&gt;text behaviour rather than back to mixed... i will text it again...&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Il 20 Set 2017 19:40, "Bill Markham" &amp;lt;qcwebmaster@qlikview.com&amp;gt; ha scritto:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380992#M31389</guid>
      <dc:creator>llcolombo</dc:creator>
      <dc:date>2017-09-20T20:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: csv file load issue: Numeric strings get stored as numbers</title>
      <link>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380993#M31390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, Trim() is a text function, but I guess the &lt;A href="https://community.qlik.com/qlik-blogpost/3186"&gt;Automatic Number Interpretation&lt;/A&gt; kicks in again after the trim has been done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really be nice to have a better control over the Qlik automatisms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, well spotted,Bill!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/csv-file-load-issue-Numeric-strings-get-stored-as-numbers/m-p/1380993#M31390</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-20T20:46:50Z</dc:date>
    </item>
  </channel>
</rss>

