<?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: [resolved] tOracleSP throws error and job terminates in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312108#M83086</link>
    <description>Hi,
&lt;BR /&gt;Just to let you know, and for all other users who come across the same issue:
&lt;BR /&gt;I've decided not to use the subjob solution. Instead I changed the tOracleSP component to support a "die on error" functionality.
&lt;BR /&gt;This was in fact a quite easy job. I just added the parameter in the xml file for the component (the same way it is done with a tOracleOutput) and changed the statement_&amp;lt;%=cid%&amp;gt;.execute() statement on line 238 of tOracleSP_main.javajet, into the following code:
&lt;BR /&gt;
&lt;PRE&gt;try {&lt;BR /&gt;                statement_&amp;lt;%=cid%&amp;gt;.execute();&lt;BR /&gt;            } catch(Exception e) {&lt;BR /&gt;                &amp;lt;%&lt;BR /&gt;                if (("true").equals(dieOnError)) {&lt;BR /&gt;                    %&amp;gt;&lt;BR /&gt;                    throw(e);&lt;BR /&gt;                    &amp;lt;%&lt;BR /&gt;                } else {&lt;BR /&gt;                        %&amp;gt;&lt;BR /&gt;                        System.err.print(e.getMessage());&lt;BR /&gt;                        &amp;lt;%&lt;BR /&gt;                } &lt;BR /&gt;                %&amp;gt;&lt;BR /&gt;			}&lt;/PRE&gt;
&lt;BR /&gt;Oh, and at line 42 of the same file (tOracleSP_main.javajet) I added 
&lt;BR /&gt;
&lt;PRE&gt;    String dieOnError = ElementParameterParser.getValue(node, "__DIE_ON_ERROR__");&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
    <pubDate>Wed, 06 Jul 2011 09:49:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-07-06T09:49:01Z</dc:date>
    <item>
      <title>[resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312103#M83081</link>
      <description>Hi,&lt;BR /&gt;When an Oracle stored procedure is called from a job and the stored procedure returns an error (a java.sql.SQLException) the job is terminated.&lt;BR /&gt;There is no option to prevent this "Die on error" behavior, like there is on Oracle output and other components.&lt;BR /&gt;Is there any other way to log these errors and just continue the job "as if nothing happened" ?&lt;BR /&gt;Regards,&lt;BR /&gt;Arno</description>
      <pubDate>Sat, 16 Nov 2024 12:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312103#M83081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312104#M83082</link>
      <description>Hi Arno 
&lt;BR /&gt;Yes, there is no 'die on error' option on tOracleRow component, to get your request works, you need move tOracleRow to a child job, and use a tRunJob to call the child job, uncheck the box 'die on error' on tRunJob. 
&lt;BR /&gt;In the child job, use tLogCather component to capture the exception and log them into a file or database. 
&lt;BR /&gt;Let me know if you have any doubts! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 05 Jul 2011 10:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312104#M83082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-05T10:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312105#M83083</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks for your quick reply. 
&lt;BR /&gt;I'm passing a couple of parameters in the Oracle Stored Procedure. These parameters are on a row (from a tMap). This row can be connected to a tRunJob, but in this subjob I do not see the input row (as I would in a joblet). 
&lt;BR /&gt;Can you explain to me how I should read these parameters from the parent job? 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Arno</description>
      <pubDate>Tue, 05 Jul 2011 14:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312105#M83083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-05T14:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312106#M83084</link>
      <description>Hi 
&lt;BR /&gt;Using the context variables to pass the parameters from parent job to child job. see 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj5rCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Passing-context-parameters-in-a-tRunJob/td-p/66305&lt;/A&gt; 
&lt;BR /&gt;The job looks like: 
&lt;BR /&gt;parent job: 
&lt;BR /&gt;....tMap---tFlowToIterate---iterate--tRunJob 
&lt;BR /&gt;child job: 
&lt;BR /&gt;tFixedFlowInput--main--tOracleSP 
&lt;BR /&gt;tLogcather--main--tFileOutputDelimited 
&lt;BR /&gt;on tRunJob: uncheck the box 'die on error', pass the each row to child job using context variables. 
&lt;BR /&gt;on tFixedFlowInput: generate each row sent by parent job. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 06 Jul 2011 02:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312106#M83084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T02:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312107#M83085</link>
      <description>Hi,&lt;BR /&gt;I haven't tried this option yet (I am about to do so), but it seems to me that this solution will not be a very fast one, as my job has to process a couple of thousand records.&lt;BR /&gt;Is there a technical reason that the tOracleSP doesn't support the "Die on error" functionality, or is it just not there for no specific reason?&lt;BR /&gt;Regards,&lt;BR /&gt;Arno</description>
      <pubDate>Wed, 06 Jul 2011 06:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312107#M83085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T06:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312108#M83086</link>
      <description>Hi,
&lt;BR /&gt;Just to let you know, and for all other users who come across the same issue:
&lt;BR /&gt;I've decided not to use the subjob solution. Instead I changed the tOracleSP component to support a "die on error" functionality.
&lt;BR /&gt;This was in fact a quite easy job. I just added the parameter in the xml file for the component (the same way it is done with a tOracleOutput) and changed the statement_&amp;lt;%=cid%&amp;gt;.execute() statement on line 238 of tOracleSP_main.javajet, into the following code:
&lt;BR /&gt;
&lt;PRE&gt;try {&lt;BR /&gt;                statement_&amp;lt;%=cid%&amp;gt;.execute();&lt;BR /&gt;            } catch(Exception e) {&lt;BR /&gt;                &amp;lt;%&lt;BR /&gt;                if (("true").equals(dieOnError)) {&lt;BR /&gt;                    %&amp;gt;&lt;BR /&gt;                    throw(e);&lt;BR /&gt;                    &amp;lt;%&lt;BR /&gt;                } else {&lt;BR /&gt;                        %&amp;gt;&lt;BR /&gt;                        System.err.print(e.getMessage());&lt;BR /&gt;                        &amp;lt;%&lt;BR /&gt;                } &lt;BR /&gt;                %&amp;gt;&lt;BR /&gt;			}&lt;/PRE&gt;
&lt;BR /&gt;Oh, and at line 42 of the same file (tOracleSP_main.javajet) I added 
&lt;BR /&gt;
&lt;PRE&gt;    String dieOnError = ElementParameterParser.getValue(node, "__DIE_ON_ERROR__");&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Wed, 06 Jul 2011 09:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312108#M83086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T09:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312109#M83087</link>
      <description>Hi Arno 
&lt;BR /&gt;Yes, I agree with you that iterating each row and pass it to a child job has a bad performace for a large of data. Of course, it is better if you can modify the component by yourself and add the 'die on error' option, good job! One thing need to note is you have to migrate also this component to new studio if you will upgrade to new version in future. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 06 Jul 2011 10:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312109#M83087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T10:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312110#M83088</link>
      <description>Hi Shong,
&lt;BR /&gt;Yes, I know I have to migrate the component. Therefore I made a copy of the component and gave it a new name. I have a shared custom components folder where all our custom components reside and I've placed this component in this folder.
&lt;BR /&gt;So now it's available to all other co-workers and I don't have to do anything on migration to a new version.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Wed, 06 Jul 2011 10:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312110#M83088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T10:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312111#M83089</link>
      <description>Hi 
&lt;BR /&gt;Glad to see the clever solution, make a copy of the component and give it a new name, regard it as a custom component. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 06 Jul 2011 12:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312111#M83089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T12:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312112#M83090</link>
      <description>Hi, 
&lt;BR /&gt;Yeah, I tried to keep the same name, and hoped it would override the original component, but unfortunately this didn't work 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Arno</description>
      <pubDate>Wed, 06 Jul 2011 13:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312112#M83090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T13:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312113#M83091</link>
      <description>&lt;P&gt;I tried the solution but i am not getting the "DieOnError" option to either check or uncheck. Please suggest me how I can disable the DieOnError option&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 06:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312113#M83091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-13T06:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tOracleSP throws error and job terminates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312114#M83092</link>
      <description>&lt;P&gt;Owesome!! it worked, thanks to your post &lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 06:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tOracleSP-throws-error-and-job-terminates/m-p/2312114#M83092</guid>
      <dc:creator>MPatidar1649990424</dc:creator>
      <dc:date>2023-01-07T06:39:03Z</dc:date>
    </item>
  </channel>
</rss>

