<?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: Leading zeros problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918574#M75538</link>
    <description>&lt;P&gt;This is most likely a connector setting/problem. The Qlik engine does not reformat any number, unless you specify that it should.&lt;/P&gt;&lt;P&gt;Also, the fact that the Load statement doesn't change the format when you use the TO_CHAR function in the SELECT statement shows this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 12:56:44 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2022-04-14T12:56:44Z</dc:date>
    <item>
      <title>Leading zeros problem</title>
      <link>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918518#M75537</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm reading data from an oracle database and from 2 tables (GACCENTRYD, and ATEXTRA) a fact and a dimension table respectively&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;there is a field that contains values like 60000, 0302008, 000701, 42A000, etc....&lt;BR /&gt;what is the approach to have the values read by Qlik as they are in the database?&lt;BR /&gt;I have a field called Ident2_0 in ATEXTRA table&lt;BR /&gt;&lt;BR /&gt;the value 0302008 is coming as &lt;STRONG&gt;302008&lt;/STRONG&gt;&lt;BR /&gt;the value 000701 comes as &lt;STRONG&gt;000701&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;if in the load statement I use text(Ident2_0) then&lt;BR /&gt;the value 0302008 comes as &lt;STRONG&gt;0302008&lt;/STRONG&gt;&lt;BR /&gt;the value 000701 comes as &lt;STRONG&gt;701&lt;/STRONG&gt; !!!&lt;BR /&gt;&lt;BR /&gt;if in the sql part of the load statement I use to_char function then&lt;BR /&gt;the value 0302008 comes as &lt;STRONG&gt;302008&lt;/STRONG&gt;&lt;BR /&gt;the value 000701 comes as &lt;STRONG&gt;000701&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1649934206826.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77135i08B8FB1AE5F9F024/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1649934206826.png" alt="ali_hijazi_0-1649934206826.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 11:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918518#M75537</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-04-14T11:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros problem</title>
      <link>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918574#M75538</link>
      <description>&lt;P&gt;This is most likely a connector setting/problem. The Qlik engine does not reformat any number, unless you specify that it should.&lt;/P&gt;&lt;P&gt;Also, the fact that the Load statement doesn't change the format when you use the TO_CHAR function in the SELECT statement shows this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 12:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918574#M75538</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-04-14T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros problem</title>
      <link>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918575#M75539</link>
      <description>&lt;P&gt;I'm using OLEDB connector&lt;BR /&gt;is there a setting that solves my problem?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 13:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918575#M75539</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-04-14T13:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Leading zeros problem</title>
      <link>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918592#M75541</link>
      <description>&lt;P&gt;I don't know. You'll have to check the ORACLE OLE DB documentation.&lt;/P&gt;&lt;P&gt;But it seems to me as if the OLE DB connector reformats the value if it thinks it is a number, and then the Qlik engine gets&amp;nbsp;&lt;STRONG&gt;701&lt;/STRONG&gt;. But when you use the TO_CHAR function, the connector treats it as a string, and then the Qlik engine gets&amp;nbsp;&lt;STRONG&gt;000701&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 13:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Leading-zeros-problem/m-p/1918592#M75541</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-04-14T13:31:36Z</dc:date>
    </item>
  </channel>
</rss>

