<?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: Data load problem in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117059#M12803</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tested this on QlikView 12.80.&lt;/P&gt;
&lt;P&gt;I assume you are using Qlik Sense. The behaviour should be the same (since they share the QIX engine).&lt;/P&gt;
&lt;P&gt;If possible,&amp;nbsp; can you post the qvd file (or just a part of it)?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 15:50:24 GMT</pubDate>
    <dc:creator>Fabiano_Martino_Intelco</dc:creator>
    <dc:date>2023-09-14T15:50:24Z</dc:date>
    <item>
      <title>Data load problem</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2116766#M12797</link>
      <description>&lt;P&gt;Hi guys. I have this problem.&lt;/P&gt;
&lt;P&gt;We have an Informix database; and one table have the information about our product's colours. In the table, there may be duplicate color codes; because we have several companies.&lt;/P&gt;
&lt;P&gt;The database connection is through odbc.&lt;/P&gt;
&lt;P&gt;Each record has the company code and the color code as its primary key. We also have a text type field; the problem we have is that when the information is extracted from the database to a qvd file; for some reason the text field that is loaded does not maintain the original data format as it's in the database.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For example, in one company there is color 00023, in the other there is color 023.&lt;BR /&gt;When the qvd file is loaded and examined both records are presented as 00023.&lt;/P&gt;
&lt;P&gt;When extract the data, I use this:&lt;/P&gt;
&lt;P&gt;SQL Select * from colour_table where state = 'A';&lt;/P&gt;
&lt;P&gt;Store colour into [lib://QVDs/colour.qvd];&lt;BR /&gt;Drop Table colour;&lt;BR /&gt;&lt;BR /&gt;Why does this happen and how can it be corrected?&lt;BR /&gt;I appreciate your help in solving this.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 05:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2116766#M12797</guid>
      <dc:creator>mcelleri</dc:creator>
      <dc:date>2023-09-14T05:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data load problem</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2116784#M12798</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/169837"&gt;@mcelleri&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;this behaviour depends on how Qlik Sense stores the values.&lt;/P&gt;
&lt;P&gt;When you read the value 00023 Qlik stores the value and its numerical representatio (23) as a dual value.&lt;/P&gt;
&lt;P&gt;When you read 023 it has already the number 23 in memory (the symbols table) so it considers 023 a duplicate of 23.&lt;/P&gt;
&lt;P&gt;If you need to preserve the leading zeroes I suggest the Text() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple example:&lt;/P&gt;
&lt;P&gt;Values:&lt;BR /&gt;Load *,&lt;BR /&gt;Text(Field) AS TextField,&lt;BR /&gt;Num(Field) AS NumberField;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Field&lt;BR /&gt;01&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;0004&lt;BR /&gt;004&lt;BR /&gt;04&lt;BR /&gt;5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;I also added the Num() function to get the numeric value of the field.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 06:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2116784#M12798</guid>
      <dc:creator>Fabiano_Martino_Intelco</dc:creator>
      <dc:date>2023-09-14T06:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data load problem</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117027#M12800</link>
      <description>&lt;P&gt;Thanks Fabiano.&lt;/P&gt;
&lt;P&gt;Only one question, the use of text() put in later on another script section?&lt;/P&gt;
&lt;P&gt;In the first load (directly from de informix database), the data loads 023 and 00023. I mentioned in my initial post;&lt;/P&gt;
&lt;P&gt;when extract the data, in the QVD, loads wrong data.&lt;/P&gt;
&lt;P&gt;SQL Select * from colour_table where state = 'A';&lt;/P&gt;
&lt;P&gt;Store colour into [lib://QVDs/colour.qvd];&lt;BR /&gt;Drop Table colour;&lt;/P&gt;
&lt;P&gt;In the select query, directly from the database; the text() function don't be resolve.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117027#M12800</guid>
      <dc:creator>mcelleri</dc:creator>
      <dc:date>2023-09-14T14:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data load problem</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117040#M12801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/169837"&gt;@mcelleri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I would put the Text() function in a LOAD directly above the SQL command towards Informix DB.&lt;/P&gt;
&lt;P&gt;The function needs to be used on the data as soon as it is loaded.&lt;/P&gt;
&lt;P&gt;If this doesn't work I ask you to post the related script section for a review.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117040#M12801</guid>
      <dc:creator>Fabiano_Martino_Intelco</dc:creator>
      <dc:date>2023-09-14T15:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data load problem</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117045#M12802</link>
      <description>&lt;P&gt;colour:&lt;/P&gt;
&lt;P&gt;load *,text(field) as new_field;&lt;/P&gt;
&lt;P&gt;SQL Select * from colour_table where state = 'A';&lt;/P&gt;
&lt;P&gt;Store colour into [lib://QVDs/colour.qvd];&lt;BR /&gt;Drop Table colour;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117045#M12802</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2023-09-14T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data load problem</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117059#M12803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tested this on QlikView 12.80.&lt;/P&gt;
&lt;P&gt;I assume you are using Qlik Sense. The behaviour should be the same (since they share the QIX engine).&lt;/P&gt;
&lt;P&gt;If possible,&amp;nbsp; can you post the qvd file (or just a part of it)?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-load-problem/m-p/2117059#M12803</guid>
      <dc:creator>Fabiano_Martino_Intelco</dc:creator>
      <dc:date>2023-09-14T15:50:24Z</dc:date>
    </item>
  </channel>
</rss>

