<?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 Qlik Stitch MySQL Extraction Error-“Streaming Result Set Is Still Active” in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Stitch-MySQL-Extraction-Error-Streaming-Result-Set-Is-Still/ta-p/2531209</link>
    <description>&lt;P&gt;When replicating data from MySQL integration, users may encounter the following extraction error:&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Fatal Error Occurred - Streaming result set com.mysql.cj.protocol.a.result.ResultsetRowsStreaming@xxxx is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Review the extraction logs and what is occurring just before the error, usually you will find the last query Stitch issued before erroring, for example,&lt;BR /&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;2025-09-30 20:30:00,000Z&amp;nbsp;&amp;nbsp;&amp;nbsp; tap - INFO&amp;nbsp; [main] tap-hp-mysql.sync-strategies.common - Querying: SELECT `pk_col`, `col1`, `col2`, `col3` FROM `schema`.`table` WHERE ((`pk_col` &amp;gt; ? OR `pk_col` IS NULL)) AND ((`pk_col` &amp;lt;= ?)) ORDER BY `pk_col` (&amp;lt;last PK value checked&amp;gt;, &amp;lt;max PK value&amp;gt;)&amp;nbsp;&lt;BR /&gt;2025-09-30 20:32:00,000Z&amp;nbsp;&amp;nbsp;&amp;nbsp; tap - FATAL [main] tap-hp-mysql.main - Fatal Error Occurred - Streaming result set com.mysql.cj.protocol.a.result.ResultsetRowsStreaming@XXXX is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Note the time difference between when the query was issued and when the error occurred, this can help isolate what the timeout value is (for example, 2 minutes) which can then help determine what timeout parameter is being exceeded.&lt;/LI&gt;
&lt;LI&gt;You can isolate the impacted table(s) by de-selecting the recently errored table from replication to determine if the issue is with one table or multiple.&lt;/LI&gt;
&lt;LI&gt;Run the query from the extraction logs directly in your source database and observe how long it takes to run and complete, assuming it completes.&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;If it does not complete, you know that the timeout is in your database itself. If it does complete, it is likely due to a network setting in your SSH host.&lt;/LI&gt;
&lt;LI&gt;If the query runs long in the source, you should reach out to your DBA team to make sure it is indexed.&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Example of query syntax to run in the source&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;PRE class="ckeditor_codeblock"&gt;SELECT `pk_col`, `col1`, `col2`, `col3`&lt;BR /&gt;FROM `schema`.`table`
WHERE (`pk_col` IS NULL OR `pk_col` &amp;gt; [last PK value checked])
  AND `pk_col` &amp;lt;= [max PK value]
ORDER BY `pk_col`;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;If the query completes within a reasonable time in the source database, do the following:&amp;nbsp;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Prepare the following queries in your database:
&lt;PRE class="ckeditor_codeblock"&gt;SHOW FULL PROCESSLIST;
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO &lt;BR /&gt;FROM information_schema.PROCESSLIST &lt;BR /&gt;WHERE STATE = 'Sending data';&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Manually start an extraction in the Stitch UI&lt;/LI&gt;
&lt;LI&gt;As the extraction is running, execute those queries and capture the results&lt;/LI&gt;
&lt;LI&gt;Note the status of the process owned by the Stitch user and which query it is executing - if it is sleeping, you can considering killing the process(es)&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Consult with your DBA team to increase the &lt;STRONG&gt;&lt;FONT color="#339966"&gt;net_read_timeout&lt;/FONT&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;FONT color="#339966"&gt;net_write_timeout&lt;/FONT&gt;&lt;/STRONG&gt; parameters in your MySQL configuration, for reference: &lt;A href="https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html" target="_blank" rel="noopener"&gt;Server System Variables | dev.mysql.com/&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you are unable to alleviate the error following the above, please reach out to Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This error occurs when Stitch has an active server-side streaming ResultSet on a MySQL connection and tries to execute another statement on that same connection before the stream is fully consumed and closed. MySQL’s JDBC driver allows only one active statement per connection while a streaming result is open.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Potential Contributors&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Especially large source tables (for example, wide rows, JSON columns)&lt;/LI&gt;
&lt;LI&gt;Long-running queries (due to size or volume of tables)&lt;/LI&gt;
&lt;LI&gt;Slow networks or strict timeout settings (for example, connecting via SSH)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Stitch" id="qlikStitch"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Oct 2025 08:30:50 GMT</pubDate>
    <dc:creator>Mohammed_Messaoudi</dc:creator>
    <dc:date>2025-10-20T08:30:50Z</dc:date>
    <item>
      <title>Qlik Stitch MySQL Extraction Error-“Streaming Result Set Is Still Active”</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Stitch-MySQL-Extraction-Error-Streaming-Result-Set-Is-Still/ta-p/2531209</link>
      <description>&lt;P&gt;When replicating data from MySQL integration, users may encounter the following extraction error:&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Fatal Error Occurred - Streaming result set com.mysql.cj.protocol.a.result.ResultsetRowsStreaming@xxxx is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Review the extraction logs and what is occurring just before the error, usually you will find the last query Stitch issued before erroring, for example,&lt;BR /&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;2025-09-30 20:30:00,000Z&amp;nbsp;&amp;nbsp;&amp;nbsp; tap - INFO&amp;nbsp; [main] tap-hp-mysql.sync-strategies.common - Querying: SELECT `pk_col`, `col1`, `col2`, `col3` FROM `schema`.`table` WHERE ((`pk_col` &amp;gt; ? OR `pk_col` IS NULL)) AND ((`pk_col` &amp;lt;= ?)) ORDER BY `pk_col` (&amp;lt;last PK value checked&amp;gt;, &amp;lt;max PK value&amp;gt;)&amp;nbsp;&lt;BR /&gt;2025-09-30 20:32:00,000Z&amp;nbsp;&amp;nbsp;&amp;nbsp; tap - FATAL [main] tap-hp-mysql.main - Fatal Error Occurred - Streaming result set com.mysql.cj.protocol.a.result.ResultsetRowsStreaming@XXXX is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Note the time difference between when the query was issued and when the error occurred, this can help isolate what the timeout value is (for example, 2 minutes) which can then help determine what timeout parameter is being exceeded.&lt;/LI&gt;
&lt;LI&gt;You can isolate the impacted table(s) by de-selecting the recently errored table from replication to determine if the issue is with one table or multiple.&lt;/LI&gt;
&lt;LI&gt;Run the query from the extraction logs directly in your source database and observe how long it takes to run and complete, assuming it completes.&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;If it does not complete, you know that the timeout is in your database itself. If it does complete, it is likely due to a network setting in your SSH host.&lt;/LI&gt;
&lt;LI&gt;If the query runs long in the source, you should reach out to your DBA team to make sure it is indexed.&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Example of query syntax to run in the source&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;PRE class="ckeditor_codeblock"&gt;SELECT `pk_col`, `col1`, `col2`, `col3`&lt;BR /&gt;FROM `schema`.`table`
WHERE (`pk_col` IS NULL OR `pk_col` &amp;gt; [last PK value checked])
  AND `pk_col` &amp;lt;= [max PK value]
ORDER BY `pk_col`;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;If the query completes within a reasonable time in the source database, do the following:&amp;nbsp;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Prepare the following queries in your database:
&lt;PRE class="ckeditor_codeblock"&gt;SHOW FULL PROCESSLIST;
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO &lt;BR /&gt;FROM information_schema.PROCESSLIST &lt;BR /&gt;WHERE STATE = 'Sending data';&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Manually start an extraction in the Stitch UI&lt;/LI&gt;
&lt;LI&gt;As the extraction is running, execute those queries and capture the results&lt;/LI&gt;
&lt;LI&gt;Note the status of the process owned by the Stitch user and which query it is executing - if it is sleeping, you can considering killing the process(es)&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Consult with your DBA team to increase the &lt;STRONG&gt;&lt;FONT color="#339966"&gt;net_read_timeout&lt;/FONT&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;FONT color="#339966"&gt;net_write_timeout&lt;/FONT&gt;&lt;/STRONG&gt; parameters in your MySQL configuration, for reference: &lt;A href="https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html" target="_blank" rel="noopener"&gt;Server System Variables | dev.mysql.com/&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you are unable to alleviate the error following the above, please reach out to Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This error occurs when Stitch has an active server-side streaming ResultSet on a MySQL connection and tries to execute another statement on that same connection before the stream is fully consumed and closed. MySQL’s JDBC driver allows only one active statement per connection while a streaming result is open.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Potential Contributors&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Especially large source tables (for example, wide rows, JSON columns)&lt;/LI&gt;
&lt;LI&gt;Long-running queries (due to size or volume of tables)&lt;/LI&gt;
&lt;LI&gt;Slow networks or strict timeout settings (for example, connecting via SSH)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Stitch" id="qlikStitch"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 08:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Stitch-MySQL-Extraction-Error-Streaming-Result-Set-Is-Still/ta-p/2531209</guid>
      <dc:creator>Mohammed_Messaoudi</dc:creator>
      <dc:date>2025-10-20T08:30:50Z</dc:date>
    </item>
  </channel>
</rss>

