<?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 Catch error from a tDBOutput caused by a foreign Key in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308780#M80069</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check this link :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/question/0D53p00007vCsXgCAK/foreign-key-same-table-error?language=en_US&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/question/0D53p00007vCnXCCA0/can-talend-handle-foreign-key-dependencies?language=en_US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Wed, 22 Jun 2022 12:03:14 GMT</pubDate>
    <dc:creator>ppatel</dc:creator>
    <dc:date>2022-06-22T12:03:14Z</dc:date>
    <item>
      <title>how to Catch error from a tDBOutput caused by a foreign Key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308779#M80068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an API job (Talend Studio 7.3.1)  which try to insert data into a table (postgreSQL). There is a FK between this table and an other one. when a line can't be inserted because of the FK how can i trap this event to use it in the API response ? if i plug a tlogrow  after my tDBOutput's "onComponentError"  he NEVER go in...&lt;/P&gt;&lt;P&gt;but into the execution log i see an "[ERROR] ********tDBOutput******viole la contrainte de clé étrangère « fk_******_ »&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your ideas !&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sylvain&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308779#M80068</guid>
      <dc:creator>Sylcha</dc:creator>
      <dc:date>2024-11-15T22:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to Catch error from a tDBOutput caused by a foreign Key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308780#M80069</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check this link :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/question/0D53p00007vCsXgCAK/foreign-key-same-table-error?language=en_US&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/question/0D53p00007vCnXCCA0/can-talend-handle-foreign-key-dependencies?language=en_US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Wed, 22 Jun 2022 12:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308780#M80069</guid>
      <dc:creator>ppatel</dc:creator>
      <dc:date>2022-06-22T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to Catch error from a tDBOutput caused by a foreign Key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308781#M80070</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you would like to catch sql exception in your flow, please try this approach and let me know if it helps:&lt;/P&gt;&lt;P&gt;Check the "Die on error" option.&lt;/P&gt;&lt;P&gt;As all the error message has been included in the SQLException, you do not need to call getNextException() again.&lt;/P&gt;&lt;P&gt;Just handling the current SQLException is enough.&lt;/P&gt;&lt;P&gt;And log4j is also flexible, you could just add more appender in log4j to redirect the error log to the target you want.&lt;/P&gt;&lt;P&gt;Here is also a topic about How to get Call getNextException in talend.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/question/0D53p00007vCozxCAC/call-getnextexception-in-talend?language=en_US" alt="https://community.talend.com/s/question/0D53p00007vCozxCAC/call-getnextexception-in-talend?language=en_US" target="_blank"&gt;https://community.talend.com/s/question/0D53p00007vCozxCAC/call-getnextexception-in-talend?language=en_US&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps for your use case.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 09:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Catch-error-from-a-tDBOutput-caused-by-a-foreign-Key/m-p/2308781#M80070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-23T09:00:53Z</dc:date>
    </item>
  </channel>
</rss>

