<?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 Qlik Sense - Issue when retrieving data through MySQL, Amazon RDS in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Issue-when-retrieving-data-through-MySQL-Amazon-RDS/m-p/1684397#M5017</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we're experiencing intermittent issues while retrieving data when connecting &lt;FONT color="#333333"&gt;&lt;STRONG&gt;Qlik Sense (June 2019 Patch 2)&lt;/STRONG&gt;&lt;/FONT&gt; to a &lt;FONT color="#333333"&gt;&lt;STRONG&gt;MySQL&lt;/STRONG&gt; &lt;STRONG&gt;Database&lt;/STRONG&gt;&lt;/FONT&gt; hosted on &lt;FONT color="#333333"&gt;&lt;STRONG&gt;Amazon&lt;/STRONG&gt; &lt;STRONG&gt;RDS&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;In short, the problem we're experiencing is as follows: Four times out of ten (on average) our extraction scripts terminates with errors due to a missing field:&amp;nbsp;&lt;FONT color="#808080"&gt;&lt;EM&gt;Field &amp;lt;field_name&amp;gt; not found.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Please also note that the database structure is stable as we're not working on a development environment so nobody is making unsolicited changes to the underlying database/schema/table structures.&lt;/P&gt;&lt;P&gt;A more detailed explanation is provided below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Connection Drivers used:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- &lt;FONT color="#333333"&gt;&lt;STRONG&gt;MySQL Database - Amazon RDS&lt;/STRONG&gt;&amp;nbsp; - &lt;STRONG&gt;QlikSense&lt;/STRONG&gt; &lt;EM&gt;--&amp;gt; ODBC&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;5.3(w)&amp;nbsp;Driver&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our extraction application works as follows:&lt;/P&gt;&lt;P&gt;We use an Excel file to store the names of tables and fields we need to load. This file is then processed by our script to generate a load statement that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
	Load
    	FIELD_ONE,
        FIELD_TWO,
        FIELD_THREE,
        FIELD_FOUR
   ;
   SQL SELECT
   		FIELD_ONE as FIELD_ONE,
        FIELD_TWO as FIELD_TWO,
        cast(FIELD_THREE as char) as FIELD_THREE,
        FIELD_FOUR as FIELD_FOUR
  FROM  Schema.Table1;

  STORE Table1 INTO [lib://Folder_Connection/Table1.qvd](qvd);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, we may or may not run into the aforementioned error: "Field &amp;lt;field_name&amp;gt; not found" (e.g.:"Field FIELD_FOUR not found").&lt;/P&gt;&lt;P&gt;We've done some preliminary testing to better understand possible causes and:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It seems that field names, transformations and aliasing have nothing to do with the errors thrown as it can happen to any field regardless of the complexity of the name, transformation or whether we assigned a DB alias to it while querying the data source or not.&lt;/LI&gt;&lt;LI&gt;It seems that the error is caused by the preceding load as we never encounter errors while running the query directly or by using "Load *" while using the preceding load. Please also note that we'd rather avoid using Load * as we need to perform some operations right after data is loaded from the Database and we have to know the exact field names for further transformations in later stages.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I cannot stress enough that most of the time the load script works correctly and no errors are thrown. It looks like sometimes field names get misinterpreted more that anything else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever experienced issues similar to this before? How did you solve them?&lt;/P&gt;&lt;P&gt;Any bit of help is truly appreciated.&lt;/P&gt;&lt;P&gt;Please, let me know if I can provide any further detail to better explain the issue.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 15:24:59 GMT</pubDate>
    <dc:creator>MatteoMonni</dc:creator>
    <dc:date>2021-12-22T15:24:59Z</dc:date>
    <item>
      <title>Qlik Sense - Issue when retrieving data through MySQL, Amazon RDS</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Issue-when-retrieving-data-through-MySQL-Amazon-RDS/m-p/1684397#M5017</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we're experiencing intermittent issues while retrieving data when connecting &lt;FONT color="#333333"&gt;&lt;STRONG&gt;Qlik Sense (June 2019 Patch 2)&lt;/STRONG&gt;&lt;/FONT&gt; to a &lt;FONT color="#333333"&gt;&lt;STRONG&gt;MySQL&lt;/STRONG&gt; &lt;STRONG&gt;Database&lt;/STRONG&gt;&lt;/FONT&gt; hosted on &lt;FONT color="#333333"&gt;&lt;STRONG&gt;Amazon&lt;/STRONG&gt; &lt;STRONG&gt;RDS&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;In short, the problem we're experiencing is as follows: Four times out of ten (on average) our extraction scripts terminates with errors due to a missing field:&amp;nbsp;&lt;FONT color="#808080"&gt;&lt;EM&gt;Field &amp;lt;field_name&amp;gt; not found.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Please also note that the database structure is stable as we're not working on a development environment so nobody is making unsolicited changes to the underlying database/schema/table structures.&lt;/P&gt;&lt;P&gt;A more detailed explanation is provided below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Connection Drivers used:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- &lt;FONT color="#333333"&gt;&lt;STRONG&gt;MySQL Database - Amazon RDS&lt;/STRONG&gt;&amp;nbsp; - &lt;STRONG&gt;QlikSense&lt;/STRONG&gt; &lt;EM&gt;--&amp;gt; ODBC&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;5.3(w)&amp;nbsp;Driver&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our extraction application works as follows:&lt;/P&gt;&lt;P&gt;We use an Excel file to store the names of tables and fields we need to load. This file is then processed by our script to generate a load statement that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
	Load
    	FIELD_ONE,
        FIELD_TWO,
        FIELD_THREE,
        FIELD_FOUR
   ;
   SQL SELECT
   		FIELD_ONE as FIELD_ONE,
        FIELD_TWO as FIELD_TWO,
        cast(FIELD_THREE as char) as FIELD_THREE,
        FIELD_FOUR as FIELD_FOUR
  FROM  Schema.Table1;

  STORE Table1 INTO [lib://Folder_Connection/Table1.qvd](qvd);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, we may or may not run into the aforementioned error: "Field &amp;lt;field_name&amp;gt; not found" (e.g.:"Field FIELD_FOUR not found").&lt;/P&gt;&lt;P&gt;We've done some preliminary testing to better understand possible causes and:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It seems that field names, transformations and aliasing have nothing to do with the errors thrown as it can happen to any field regardless of the complexity of the name, transformation or whether we assigned a DB alias to it while querying the data source or not.&lt;/LI&gt;&lt;LI&gt;It seems that the error is caused by the preceding load as we never encounter errors while running the query directly or by using "Load *" while using the preceding load. Please also note that we'd rather avoid using Load * as we need to perform some operations right after data is loaded from the Database and we have to know the exact field names for further transformations in later stages.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I cannot stress enough that most of the time the load script works correctly and no errors are thrown. It looks like sometimes field names get misinterpreted more that anything else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever experienced issues similar to this before? How did you solve them?&lt;/P&gt;&lt;P&gt;Any bit of help is truly appreciated.&lt;/P&gt;&lt;P&gt;Please, let me know if I can provide any further detail to better explain the issue.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Issue-when-retrieving-data-through-MySQL-Amazon-RDS/m-p/1684397#M5017</guid>
      <dc:creator>MatteoMonni</dc:creator>
      <dc:date>2021-12-22T15:24:59Z</dc:date>
    </item>
  </channel>
</rss>

