<?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 MySQL Set command in a Load Script in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/MySQL-Set-command-in-a-Load-Script/m-p/1784436#M5787</link>
    <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;I have a table located in a transactional MySQL Database. On a reasonably regular interval (I reload Hourly) I get the the first field happens to be id can not be found, If I then reload manually it often simply works. My logic says that possibly the table or a row is locked due to a transaction at the moment I try to read. In SQL Server I would have added a "No Lock" which would ignore the row or bring back uncommitted etc.&lt;/P&gt;&lt;P&gt;In MySQL you need to actually set the session or transaction locking "isolation" level prior to execution of the select statement.&lt;BR /&gt;When entering the relevant set statement ( SET SESSION ISOLATION LEVEL READ UNCOMMITTED &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; in my Qlik Sense script the word isolation is highlighted in red thus not recognised.&lt;BR /&gt;&lt;BR /&gt;Is there a way to execute a set command in Qlik Sense as there is in stored procedures something like exec("Set ....."), I don't have access to the transactional server to add a stored proc to call from Qlik Sense as that was an obvious way that I already thought of.&lt;/P&gt;&lt;P&gt;Failing that is there something similar to on-error goto that could force a retry for the specific table, not ideal however seems like an alternate plan. I did look at error handling however what I found simply allows you to switch it off and on so as to at least complete the rest of the script etc. And of course a way of listing based on error code.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any ideas&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 06:54:43 GMT</pubDate>
    <dc:creator>PRB6803</dc:creator>
    <dc:date>2021-02-21T06:54:43Z</dc:date>
    <item>
      <title>MySQL Set command in a Load Script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/MySQL-Set-command-in-a-Load-Script/m-p/1784436#M5787</link>
      <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;I have a table located in a transactional MySQL Database. On a reasonably regular interval (I reload Hourly) I get the the first field happens to be id can not be found, If I then reload manually it often simply works. My logic says that possibly the table or a row is locked due to a transaction at the moment I try to read. In SQL Server I would have added a "No Lock" which would ignore the row or bring back uncommitted etc.&lt;/P&gt;&lt;P&gt;In MySQL you need to actually set the session or transaction locking "isolation" level prior to execution of the select statement.&lt;BR /&gt;When entering the relevant set statement ( SET SESSION ISOLATION LEVEL READ UNCOMMITTED &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; in my Qlik Sense script the word isolation is highlighted in red thus not recognised.&lt;BR /&gt;&lt;BR /&gt;Is there a way to execute a set command in Qlik Sense as there is in stored procedures something like exec("Set ....."), I don't have access to the transactional server to add a stored proc to call from Qlik Sense as that was an obvious way that I already thought of.&lt;/P&gt;&lt;P&gt;Failing that is there something similar to on-error goto that could force a retry for the specific table, not ideal however seems like an alternate plan. I did look at error handling however what I found simply allows you to switch it off and on so as to at least complete the rest of the script etc. And of course a way of listing based on error code.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any ideas&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 06:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/MySQL-Set-command-in-a-Load-Script/m-p/1784436#M5787</guid>
      <dc:creator>PRB6803</dc:creator>
      <dc:date>2021-02-21T06:54:43Z</dc:date>
    </item>
  </channel>
</rss>

