<?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: tMysqlRow - how to capture sql error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294688#M67539</link>
    <description>Shong, I misunderstood your statement. I do want the job to fail if there is any error thrown in that component during runtime. so I should check 'die on error'.
&lt;BR /&gt;thanks.</description>
    <pubDate>Tue, 02 Mar 2010 07:24:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-02T07:24:45Z</dc:date>
    <item>
      <title>tMysqlRow - how to capture sql error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294684#M67535</link>
      <description>Hi!&lt;BR /&gt;I am using tMysqlRow component and when there is an error in SQL, the return code of the component is 0.  This is problematic since I have subsequent jobs that have a dependency on the success of this job.&lt;BR /&gt;To replicate, in a tMysqlRow component, write a simple insert sql with syntax error.  Run the job.  In the console, the error is shown but the exit code is 0.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sarah</description>
      <pubDate>Sat, 16 Nov 2024 13:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294684#M67535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: tMysqlRow - how to capture sql error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294685#M67536</link>
      <description>Hello 
&lt;BR /&gt;There is a 'die on error' option on the component, uncheck this option. The job will capture the exception and continue to process the next subJobs.
&lt;BR /&gt;If there is a syntax error in the sql, the job can't run as there are some compilation error in generated code. You should correct the compilation error first.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 02 Mar 2010 01:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294685#M67536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T01:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: tMysqlRow - how to capture sql error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294686#M67537</link>
      <description>Thanks shong. Sure, syntax error should be fixed. but a more realistic error is at runtime, such as unique constraint / integrity contraint that can only be known at runtime. But based on your suggestion, 'die on error' will not stop the entire job in this particular case, it will only capture the exception. So does that mean that it won't have an exit code of 1? thanks!</description>
      <pubDate>Tue, 02 Mar 2010 07:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294686#M67537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T07:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: tMysqlRow - how to capture sql error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294687#M67538</link>
      <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;'die on error' will not stop the entire job in this particular case, it will only capture the exception. So does that mean that it won't have an exit code of 1? thanks!&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;yes, there is not exception message printted on console and the job works fine, the exit code will be 0.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 02 Mar 2010 07:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294687#M67538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T07:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: tMysqlRow - how to capture sql error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294688#M67539</link>
      <description>Shong, I misunderstood your statement. I do want the job to fail if there is any error thrown in that component during runtime. so I should check 'die on error'.
&lt;BR /&gt;thanks.</description>
      <pubDate>Tue, 02 Mar 2010 07:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294688#M67539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: tMysqlRow - how to capture sql error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294689#M67540</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I do want the job to fail if there is any error thrown in that component during runtime. so I should check 'die on error'.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 02 Mar 2010 07:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlRow-how-to-capture-sql-error/m-p/2294689#M67540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T07:27:50Z</dc:date>
    </item>
  </channel>
</rss>

