<?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 Re: How to handle empty recordset from Stored Procedure in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551736#M149652</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285488"&gt;@Rahul_Kale&lt;/a&gt;&amp;nbsp;- I tried adding a tFlowMeter and the flow does seem to continue through it (with 0 rows):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JackieM_0-1781875881298.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/189004i1C880426A13F37EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JackieM_0-1781875881298.png" alt="JackieM_0-1781875881298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I don't have a NB_LINE available to me from tFlowMeter to work with. I only have ERROR_MESSAGE:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JackieM_1-1781875952142.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/189005iAEC37DF23E2CC823/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JackieM_1-1781875952142.png" alt="JackieM_1-1781875952142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2026 13:33:06 GMT</pubDate>
    <dc:creator>JackieM</dc:creator>
    <dc:date>2026-06-19T13:33:06Z</dc:date>
    <item>
      <title>How to handle empty recordset from Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551717#M149649</link>
      <description>&lt;P&gt;I have a job that calls an Oracle Stored Procedure so I have no ability to make any updates to the Stored Procedure. The Stored Procedure returns data in a cursor. My flow works great if the cursor contains data:&lt;/P&gt;
&lt;P&gt;tDBSP -&amp;gt; tParseRecordSet -&amp;gt; rest of processing&lt;/P&gt;
&lt;P&gt;The issue is that I need to take a specific action if there are no records returned from the SP, i.e. the recordset is empty.&amp;nbsp; But in this situation, I just get 0 records out of the tParseRecordSet and the flow is done.&lt;/P&gt;
&lt;P&gt;How can I handle this situation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 11:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551717#M149649</guid>
      <dc:creator>JackieM</dc:creator>
      <dc:date>2026-06-19T11:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle empty recordset from Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551731#M149650</link>
      <description>&lt;P&gt;Hello JackieM,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the &lt;STRONG&gt;Qlik community&lt;/STRONG&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use a &lt;STRONG&gt;tFlowMeter&lt;/STRONG&gt; or &lt;STRONG&gt;tDBSP → tDBRow with a COUNT check&lt;/STRONG&gt;, then branch the flow.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Common pattern:-&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;tDBSP → tParseRecordSet&lt;/LI&gt;
 &lt;LI&gt;Add &lt;STRONG&gt;tFlowMeter&lt;/STRONG&gt; after tParseRecordSet&lt;/LI&gt;
 &lt;LI&gt;Use &lt;STRONG&gt;Run If&lt;/STRONG&gt; (or OnComponentOk) with condition:tFlowMeter_1.NB_LINE == 0&lt;/LI&gt;
 &lt;LI&gt;Route this to your “no data returned” action.&lt;/LI&gt;
 &lt;LI&gt;Normal flow continues when NB_LINE &amp;gt; 0.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Alternative (simpler):-&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Use &lt;STRONG&gt;tDBRow&lt;/STRONG&gt; before/after the SP to call a SELECT COUNT(*) wrapper query and branch based on the result.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Below are the related Talend documentation that can help you:-&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;tParseRecordSet:&lt;BR /&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/studio-user-guide/tparserecordset" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/studio-user-guide/tparserecordset&lt;/A&gt;&lt;/LI&gt;
 &lt;LI&gt;tFlowMeter:&lt;BR /&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/studio-user-guide/tflowmeter" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/studio-user-guide/tflowmeter&lt;/A&gt;&lt;/LI&gt;
 &lt;LI&gt;Triggers &amp;amp; Run If conditions:&lt;BR /&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/studio-user-guide/using-triggers-and-links" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/studio-user-guide/using-triggers-and-links&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 19 Jun 2026 13:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551731#M149650</guid>
      <dc:creator>Rahul_Kale</dc:creator>
      <dc:date>2026-06-19T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle empty recordset from Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551733#M149651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285488"&gt;@Rahul_Kale&lt;/a&gt;&amp;nbsp;- Thank you for the reply.&amp;nbsp; The issue is that when the cursor is empty, 0 rows come out of tParseRecordSet so it doesn't matter what components I have after tParseRecordSet as the flow dies with tParseRecordSet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your simpler suggestion is great but this is a vendor SP and I don't have access to see the code.&amp;nbsp; So I can't write a select statement based on the query in the SP since I can't see what it is.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 13:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551733#M149651</guid>
      <dc:creator>JackieM</dc:creator>
      <dc:date>2026-06-19T13:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle empty recordset from Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551736#M149652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285488"&gt;@Rahul_Kale&lt;/a&gt;&amp;nbsp;- I tried adding a tFlowMeter and the flow does seem to continue through it (with 0 rows):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JackieM_0-1781875881298.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/189004i1C880426A13F37EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JackieM_0-1781875881298.png" alt="JackieM_0-1781875881298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I don't have a NB_LINE available to me from tFlowMeter to work with. I only have ERROR_MESSAGE:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JackieM_1-1781875952142.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/189005iAEC37DF23E2CC823/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JackieM_1-1781875952142.png" alt="JackieM_1-1781875952142.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 13:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551736#M149652</guid>
      <dc:creator>JackieM</dc:creator>
      <dc:date>2026-06-19T13:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle empty recordset from Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551806#M149653</link>
      <description>&lt;P&gt;I was ultimately able to resolve this issue by writing code in a tJavaRow component linked from&amp;nbsp;&lt;SPAN&gt;tDBSP that determines if cursor is empty and takes appropriate action.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tDBSP -&amp;gt; tJavaRow -&amp;gt; (if cursor has data) -&amp;gt;&amp;nbsp; tParseRecordSet&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; (if cursor doesn't have data) -&amp;gt; processing to handle empty cursor&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2026 14:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551806#M149653</guid>
      <dc:creator>JackieM</dc:creator>
      <dc:date>2026-06-21T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle empty recordset from Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551836#M149654</link>
      <description>&lt;P&gt;Good to know that JackieM &amp;amp; Thank you for updating us.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 12:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-empty-recordset-from-Stored-Procedure/m-p/2551836#M149654</guid>
      <dc:creator>Rahul_Kale</dc:creator>
      <dc:date>2026-06-22T12:01:45Z</dc:date>
    </item>
  </channel>
</rss>

