<?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 get OUT parameter from Oracle SP ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-OUT-parameter-from-Oracle-SP/m-p/2237613#M25985</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;The most easy to handle is to catch the error in PLSQL stored procedure using exception block (either specific or use when others)&amp;nbsp; and reroute the problematic data to an error table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can print the output to log file also from the Stored procedure but now a days its not the recommended approach due to Privacy laws and audit policies since nobody want any customer data to be printed to log files.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 14:53:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-19T14:53:22Z</dc:date>
    <item>
      <title>How to get OUT parameter from Oracle SP ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-OUT-parameter-from-Oracle-SP/m-p/2237612#M25984</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="call proc.JPG" style="width: 583px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6fG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137583iB05C1FABEF1E68F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6fG.jpg" alt="0683p000009M6fG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The source is a delimited file, it will call a Stored Proc (tDBSP_1) to update some tables. The SP has 30-40 IN parameters, after calling the SP, a few of them + OUT parameter + tDBSP_1 error message will be printed out.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It works well when all the rows call the SP successfully, the output will be like below:&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#0000FF"&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print Params&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|=--+-------+--------+---------+------------+-------------------+-----------------=|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|no |vupc |vitemnbr|verrorout|create_id |create_time |tDBSP_ErrorMessage|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|=--+-------+--------+---------+------------+-------------------+-----------------=|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|1 |108020|65996 |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|Modify_Items|07/18/2019 13:24:15|null |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|2 |108039|66040 |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|Modify_Items|07/18/2019 13:24:15|null |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|3 |108040|66040 |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|Modify_Items|07/18/2019 13:24:15|null |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;|4 |108078|66097 |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|Modify_Items|07/18/2019 13:24:15|null |&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When SP are called successfully, there is no output for verrorout and tDBSP_ErrorMessge.&lt;/P&gt; 
&lt;P&gt;I would rather to catch them when it fails to call the SP.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When a row on the source file failed to call the SP, I did get an error message out of ((String)globalMap.get("tDBSP_1_ERROR_MESSAGE")) from tWarn_4 ( &amp;amp; same from tDBSP_1):&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#0000FF"&gt;|tWarn_4|ORA-06502: PL/SQL: numeric or value error: character string buffer too small&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#0000FF"&gt;tDBSP_1|java.sql.SQLException&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;RA-06502: PL/SQL: numeric or value error: character string buffer too small&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;But the Oracle error message doesn't help me find out which row is bad -- the "Print Param" (tLogRow) didn't print out the params when a bad row hit the SP.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help me get the OUT param (verrorout) and the bad IN params when the row fails to call the SP.&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-OUT-parameter-from-Oracle-SP/m-p/2237612#M25984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OUT parameter from Oracle SP ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-OUT-parameter-from-Oracle-SP/m-p/2237613#M25985</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;The most easy to handle is to catch the error in PLSQL stored procedure using exception block (either specific or use when others)&amp;nbsp; and reroute the problematic data to an error table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can print the output to log file also from the Stored procedure but now a days its not the recommended approach due to Privacy laws and audit policies since nobody want any customer data to be printed to log files.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-OUT-parameter-from-Oracle-SP/m-p/2237613#M25985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-19T14:53:22Z</dc:date>
    </item>
  </channel>
</rss>

