<?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>article Missing fields when reading MongoDB table in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/ta-p/1715233</link>
    <description>&lt;P&gt;When selecting data from MongoDB table using MongoDB connector (Qlik ODBC Connector package), some fields&amp;nbsp;are not recognized by the connector. These fields do exist in certain documents of the table, but does not show up in the &lt;I&gt;"Select data to load"&lt;/I&gt; wizard.&lt;BR /&gt;This happens when loading the whole table. When separating the sample problematic entries to a new MongoDB collection, the issue does not happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;For better performance, Qlik MongoDB does not scan all documents in the source table to build up table metadata. Instead, it follows a sampling strategy to pick up a sample set of documents. Default sampling strategy is to take the first 100 documents.&lt;BR /&gt;&lt;BR /&gt;If a filed does not appear in the sampled documents, it will not be captured in metadata of the table in and thus does't show up in&amp;nbsp;&lt;I&gt;"Select data to load"&lt;/I&gt; wizard.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik ODBC Connector Package" id="qlikODBC"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;, all versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check if the missing fields exists within the first 100 documents of the source table.&lt;BR /&gt;&lt;BR /&gt;If it is not, configure the following &lt;I&gt;&lt;STRONG&gt;Advanced &lt;/STRONG&gt;&lt;/I&gt;parameters&amp;nbsp;appropriately to make sure at least one document containing the missing fields is captured in the samples.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;SamplingLimit&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="margin-left: 40px;"&gt;Default value: 100&lt;/LI&gt;
&lt;LI style="margin-left: 40px;"&gt;The maximum number of records that the driver can sample to generate a temporary schema definition.&amp;nbsp;&lt;/LI&gt;
&lt;LI style="margin-left: 40px;"&gt;When this option is set to 0, the driver samples every document in the database.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;SamplingStrategy&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Default value : Forward&lt;/LI&gt;
&lt;LI&gt;This options specifies how the driver samples data when generating a temporary schema definition.&lt;/LI&gt;
&lt;LI&gt;Possible values:
&lt;UL&gt;
&lt;LI&gt;Forward: The driver samples data starting from the first record in the database, then samples the next record, and so on.&lt;/LI&gt;
&lt;LI&gt;Backwards: The driver samples data starting from the last record in the database, then samples the preceding record, and so on.&lt;/LI&gt;
&lt;LI&gt;Random: The driver selects sample records from the data source at random until the sampling limit is reached.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="margin-left: 40px;"&gt;Note: The random sampling strategy is only supported by MongoDB Server 3.2 or higher.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;SamplingStepSize&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Default Value : 1&lt;/LI&gt;
&lt;LI&gt;The interval at which the driver samples records when scanning through the database to generate a temporary schema definition. For example, if you set this option to 2, then the driver samples every second record in the database.&lt;/LI&gt;
&lt;LI&gt;If the Sampling Method is set to Random, this setting is ignored.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="000058321a.png" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56085iBC52243189201EB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="000058321a.png" alt="000058321a.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can find more details about advanced parameters in Simba' help site (the third party provider for Qlik ODBC Connector package) at &lt;A href="https://www.simba.com/products/MongoDB/doc/ODBC_InstallGuide/win/content/odbc/m2/options/options-schema.htm" target="_blank" rel="noopener"&gt;Simba MongoDB ODBC Driver - Schema Definition Driver Configuration Options&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 16:09:53 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-06-01T16:09:53Z</dc:date>
    <item>
      <title>Missing fields when reading MongoDB table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/ta-p/1715233</link>
      <description>&lt;P&gt;When selecting data from MongoDB table using MongoDB connector (Qlik ODBC Connector package), some fields&amp;nbsp;are not recognized by the connector. These fields do exist in certain documents of the table, but does not show up in the &lt;I&gt;"Select data to load"&lt;/I&gt; wizard.&lt;BR /&gt;This happens when loading the whole table. When separating the sample problematic entries to a new MongoDB collection, the issue does not happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;For better performance, Qlik MongoDB does not scan all documents in the source table to build up table metadata. Instead, it follows a sampling strategy to pick up a sample set of documents. Default sampling strategy is to take the first 100 documents.&lt;BR /&gt;&lt;BR /&gt;If a filed does not appear in the sampled documents, it will not be captured in metadata of the table in and thus does't show up in&amp;nbsp;&lt;I&gt;"Select data to load"&lt;/I&gt; wizard.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik ODBC Connector Package" id="qlikODBC"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;, all versions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check if the missing fields exists within the first 100 documents of the source table.&lt;BR /&gt;&lt;BR /&gt;If it is not, configure the following &lt;I&gt;&lt;STRONG&gt;Advanced &lt;/STRONG&gt;&lt;/I&gt;parameters&amp;nbsp;appropriately to make sure at least one document containing the missing fields is captured in the samples.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;SamplingLimit&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="margin-left: 40px;"&gt;Default value: 100&lt;/LI&gt;
&lt;LI style="margin-left: 40px;"&gt;The maximum number of records that the driver can sample to generate a temporary schema definition.&amp;nbsp;&lt;/LI&gt;
&lt;LI style="margin-left: 40px;"&gt;When this option is set to 0, the driver samples every document in the database.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;SamplingStrategy&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Default value : Forward&lt;/LI&gt;
&lt;LI&gt;This options specifies how the driver samples data when generating a temporary schema definition.&lt;/LI&gt;
&lt;LI&gt;Possible values:
&lt;UL&gt;
&lt;LI&gt;Forward: The driver samples data starting from the first record in the database, then samples the next record, and so on.&lt;/LI&gt;
&lt;LI&gt;Backwards: The driver samples data starting from the last record in the database, then samples the preceding record, and so on.&lt;/LI&gt;
&lt;LI&gt;Random: The driver selects sample records from the data source at random until the sampling limit is reached.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="margin-left: 40px;"&gt;Note: The random sampling strategy is only supported by MongoDB Server 3.2 or higher.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;SamplingStepSize&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Default Value : 1&lt;/LI&gt;
&lt;LI&gt;The interval at which the driver samples records when scanning through the database to generate a temporary schema definition. For example, if you set this option to 2, then the driver samples every second record in the database.&lt;/LI&gt;
&lt;LI&gt;If the Sampling Method is set to Random, this setting is ignored.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="000058321a.png" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56085iBC52243189201EB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="000058321a.png" alt="000058321a.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can find more details about advanced parameters in Simba' help site (the third party provider for Qlik ODBC Connector package) at &lt;A href="https://www.simba.com/products/MongoDB/doc/ODBC_InstallGuide/win/content/odbc/m2/options/options-schema.htm" target="_blank" rel="noopener"&gt;Simba MongoDB ODBC Driver - Schema Definition Driver Configuration Options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/ta-p/1715233</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-06-01T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Missing fields when reading MongoDB table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2060036#M8925</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;It does not works for us. Seems that Qliksense always set Forward method even setting Backwards. Could be a kind of issue of the software?&lt;/P&gt;
&lt;P&gt;Any alternatives?&lt;/P&gt;
&lt;P&gt;It occurs using:&lt;/P&gt;
&lt;P&gt;Mongo version 3.7.1&lt;BR /&gt;ODBC connector 6.166.1&lt;BR /&gt;QlikSense Descktop February 2022 (14.54.2)&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 12:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2060036#M8925</guid>
      <dc:creator>vmontano</dc:creator>
      <dc:date>2023-04-13T12:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing fields when reading MongoDB table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2062391#M8965</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/225886"&gt;@vmontano&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order for us to investigate this further, a support case may be necessary. Please contact support and report your findings, providing the information you gave in this article.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2062391#M8965</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-04-20T07:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Missing fields when reading MongoDB table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2084168#M9449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First of all, thanks a lot for your response. I've found that support was moved to community. What is the process to open a ticket and where, it is, could you share the link?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 08:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2084168#M9449</guid>
      <dc:creator>vmontano</dc:creator>
      <dc:date>2023-06-15T08:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Missing fields when reading MongoDB table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2084197#M9453</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/225886"&gt;@vmontano&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to contact support is to use our chat bot. You can see it in the bottom right corner, the green bubble with&amp;nbsp;&lt;STRONG&gt;CHAT NOW&lt;/STRONG&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 09:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2084197#M9453</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-06-15T09:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Missing fields when reading MongoDB table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2156784#M10999</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/225886" target="_blank"&gt;@vmontano&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, did you get resolution on the Forward/Backwards issue?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 21:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Missing-fields-when-reading-MongoDB-table/tac-p/2156784#M10999</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2023-12-28T21:45:14Z</dc:date>
    </item>
  </channel>
</rss>

