<?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 a decent error message for stored procs that fail? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250927#M35029</link>
    <description>Hi Scott 
&lt;BR /&gt;OK, let's discuss your new question in your another topic.&amp;nbsp; 
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 08 Oct 2015 06:29:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-08T06:29:41Z</dc:date>
    <item>
      <title>How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250922#M35024</link>
      <description>Hi there, 
&lt;BR /&gt;I have a job that runs a stored proc using tMysqlSP and it is currently failing with the following error message. 
&lt;BR /&gt;There is zero information in this error message that actually tells me what went wrong. &amp;nbsp;When I run this proc from PHP I get an error message that includes a message from the database telling me what the actual problem is:&amp;nbsp; 
&lt;BR /&gt;"Unknown column 'param_ErrorMessage' in 'field list'". 
&lt;BR /&gt;How do I get that level of information using Talend? &amp;nbsp;The database will be passing this message in the exception it throws to Talend. &amp;nbsp;Why is it not passing this on? &amp;nbsp;Or is there a component I need to use to get this, or an option I need to turn on? 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job VerifySupplierForDIFImport at 11:09 08/10/2015.&lt;BR /&gt; connecting to socket on port 3347&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tMysqlSP_1&lt;BR /&gt;java.sql.SQLException: boo!&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1084)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:973)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:918)&lt;BR /&gt;	at com.mysql.jdbc.CallableStatement.setOutParams(CallableStatement.java:2413)&lt;BR /&gt;	at com.mysql.jdbc.CallableStatement.execute(CallableStatement.java:919)&lt;BR /&gt;	at test.verifysupplierfordifimport_0_1.VerifySupplierForDIFImport.tFixedFlowInput_1Process(VerifySupplierForDIFImport.java:1401)&lt;BR /&gt;	at test.verifysupplierfordifimport_0_1.VerifySupplierForDIFImport.tMysqlConnection_1Process(VerifySupplierForDIFImport.java:508)&lt;BR /&gt;	at test.verifysupplierfordifimport_0_1.VerifySupplierForDIFImport.runJobInTOS(VerifySupplierForDIFImport.java:2061)&lt;BR /&gt;	at test.verifysupplierfordifimport_0_1.VerifySupplierForDIFImport.main(VerifySupplierForDIFImport.java:1883)&lt;BR /&gt; disconnected&lt;BR /&gt;Job VerifySupplierForDIFImport ended at 11:09 08/10/2015. &lt;/PRE&gt; 
&lt;BR /&gt;Thanks for your time, 
&lt;BR /&gt;Scott</description>
      <pubDate>Sat, 16 Nov 2024 11:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250922#M35024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250923#M35025</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;This is the Java exception thrown by Mysql Java API, so it is impossible to get more detailed error message from Talend console. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 08 Oct 2015 04:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250923#M35025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T04:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250924#M35026</link>
      <description>Shong, 
&lt;BR /&gt;Thanks for the response mate. &amp;nbsp;Ok so the Talend job is generated java code which makes the request from MySQL server. &amp;nbsp;So the exception will be thrown from MySQL back to that java code, the same way it is when you make a request from PHP. &amp;nbsp; 
&lt;BR /&gt;Here is a screen shot of the job that calls a stored proc that I have put an error in on purpose to test this. &amp;nbsp;I have debugged the Talend job calling this proc. &amp;nbsp; 
&lt;BR /&gt;You can clearly see in the bottom left region the exception is being caught, and that exception object (e) is being wrapped in a TalendException. 
&lt;BR /&gt;You can also see in the top right where I have put the exception object e in the Variables window that it contains the error message from MySQL server. 
&lt;BR /&gt;Clearly Talend could pass this message on to be logged. &amp;nbsp;However instead the only message I get is: 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;"java.sql.SQLException: boo!"&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Which may appear funny the first time you see it, is really not useful at all... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141965i9E5278080D547AA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkX.png" alt="0683p000009MBkX.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I really think it would save developers a lot of time if meaningful error messages were piped through to the logs instead of hidden in TalendExceptions. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Scott</description>
      <pubDate>Thu, 08 Oct 2015 05:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250924#M35026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250925#M35027</link>
      <description>Hi &amp;nbsp;Scott 
&lt;BR /&gt;I understand the problem right now, I have seen the same issues reported for other database such as Postgresql before, I usually suggest the user to debug the Java code of job to see the real error message as you did, we have nothing to do on the component. I don't understand why &amp;nbsp;the detailed message is hidden &amp;nbsp;in TalendException, I would like you to report a jira issue on our bugtracker and discuss with our developers. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 08 Oct 2015 05:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250925#M35027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T05:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250926#M35028</link>
      <description>Shong, 
&lt;BR /&gt;Thanks for taking a second look. &amp;nbsp;No problems mate I will log the issue. 
&lt;BR /&gt;While I have the ear of one of the Talend Team, can you take a look at this post for me please mate. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCwdsCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-The-correct-way-to-assign-the-value-of-context/td-p/70922&lt;/A&gt; 
&lt;BR /&gt;We really need to get an official response from Talend on this, as there seems to be a lot of conflicting thoughts on this in the forum. 
&lt;BR /&gt;Thanks for your time, 
&lt;BR /&gt;Scott</description>
      <pubDate>Thu, 08 Oct 2015 05:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250926#M35028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T05:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250927#M35029</link>
      <description>Hi Scott 
&lt;BR /&gt;OK, let's discuss your new question in your another topic.&amp;nbsp; 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 08 Oct 2015 06:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250927#M35029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a decent error message for stored procs that fail?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250928#M35030</link>
      <description>Shong, 
&lt;BR /&gt;Ok great thanks mate. &amp;nbsp;We use the post I created for that topic here: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCwdsCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-The-correct-way-to-assign-the-value-of-context/td-p/70922&lt;/A&gt; 
&lt;BR /&gt;You can respond to that post as it is dedicated to the new topic &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; 
&lt;BR /&gt;The subject of that post is: 
&lt;BR /&gt;"Context Variables -Can we get an official response from Talend please?" 
&lt;BR /&gt;Thanks for your time, 
&lt;BR /&gt;Scott</description>
      <pubDate>Thu, 08 Oct 2015 06:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-a-decent-error-message-for-stored-procs-that-fail/m-p/2250928#M35030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T06:32:58Z</dc:date>
    </item>
  </channel>
</rss>

