<?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 Loading zeros in MongoDB in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-zeros-in-MongoDB/m-p/1755979#M5498</link>
    <description>&lt;P&gt;Hi there, in one of the projects I am involved in we have a MongoDB source. While we are still not able to use the built in connector (see my other unanswered &lt;A href="https://community.qlik.com/t5/Qlik-Connectors-Discussions/Issue-with-Qlik-Sense-Businesss-Cloud-and-MongoDB-Beta-connector/m-p/1686651#M2055" target="_self"&gt;post&lt;/A&gt;), we discovered that, for some reasons, Qlik Sense is randomly adding some leading zeros when reading a field. Sometimes it adds leading zeros; sometimes it does not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me clarify with an example.&lt;/P&gt;&lt;P&gt;From &lt;EM&gt;products&lt;/EM&gt;&amp;nbsp;I get&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Tenant ID&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant1&lt;/TD&gt;&lt;TD&gt;000020767&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant2&lt;/TD&gt;&lt;TD&gt;000020767&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the right value, the one users see in Mongo, is&amp;nbsp;20767 and this is causing the application of a map to fail because, for example, from &lt;I&gt;movements&amp;nbsp;&lt;/I&gt;I get&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Tenant ID&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant1&lt;/TD&gt;&lt;TD&gt;20767&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant2&lt;/TD&gt;&lt;TD&gt;20767&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curiously, though, if I left join these two tables it succeeds, probably because Qlik Sense uses the numeric representation rather than textual values.&lt;/P&gt;&lt;P&gt;I already tried to apply any kind of transformation and formatting function without success. &lt;EM&gt;text(...)&lt;/EM&gt; was the first (in preceding load), but I also tried &lt;EM&gt;cast/convert&lt;/EM&gt; (both explicit and implicit, directly applied to the SQL code).&lt;/P&gt;&lt;P&gt;It sounds like some sort of driver issue to me, but I'm using the latest available (1.4.2). Don't know the BI Connector version though.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 20:04:06 GMT</pubDate>
    <dc:creator>AG-gugelbisolutions</dc:creator>
    <dc:date>2021-12-23T20:04:06Z</dc:date>
    <item>
      <title>Loading zeros in MongoDB</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-zeros-in-MongoDB/m-p/1755979#M5498</link>
      <description>&lt;P&gt;Hi there, in one of the projects I am involved in we have a MongoDB source. While we are still not able to use the built in connector (see my other unanswered &lt;A href="https://community.qlik.com/t5/Qlik-Connectors-Discussions/Issue-with-Qlik-Sense-Businesss-Cloud-and-MongoDB-Beta-connector/m-p/1686651#M2055" target="_self"&gt;post&lt;/A&gt;), we discovered that, for some reasons, Qlik Sense is randomly adding some leading zeros when reading a field. Sometimes it adds leading zeros; sometimes it does not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me clarify with an example.&lt;/P&gt;&lt;P&gt;From &lt;EM&gt;products&lt;/EM&gt;&amp;nbsp;I get&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Tenant ID&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant1&lt;/TD&gt;&lt;TD&gt;000020767&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant2&lt;/TD&gt;&lt;TD&gt;000020767&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the right value, the one users see in Mongo, is&amp;nbsp;20767 and this is causing the application of a map to fail because, for example, from &lt;I&gt;movements&amp;nbsp;&lt;/I&gt;I get&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Tenant ID&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant1&lt;/TD&gt;&lt;TD&gt;20767&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tenant2&lt;/TD&gt;&lt;TD&gt;20767&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curiously, though, if I left join these two tables it succeeds, probably because Qlik Sense uses the numeric representation rather than textual values.&lt;/P&gt;&lt;P&gt;I already tried to apply any kind of transformation and formatting function without success. &lt;EM&gt;text(...)&lt;/EM&gt; was the first (in preceding load), but I also tried &lt;EM&gt;cast/convert&lt;/EM&gt; (both explicit and implicit, directly applied to the SQL code).&lt;/P&gt;&lt;P&gt;It sounds like some sort of driver issue to me, but I'm using the latest available (1.4.2). Don't know the BI Connector version though.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 20:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loading-zeros-in-MongoDB/m-p/1755979#M5498</guid>
      <dc:creator>AG-gugelbisolutions</dc:creator>
      <dc:date>2021-12-23T20:04:06Z</dc:date>
    </item>
  </channel>
</rss>

