<?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 Getting rejects vs successes after a tDBRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321572#M91591</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm looking for log successes and errors after using a tDBRow (see screenshot).&lt;/P&gt; 
&lt;P&gt;The problem is that during the first iteration, errors and successes are both not null (next iteration are ok).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the code of the first tJava :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;if (errors == null) {
	System.out.println("################## Success");
}

System.out.println("---------------" + (String) globalMap.get("currentTableToFlush"));
System.out.println(errors == null ? "Errors is null" : "Errors is not null");
System.out.println(successes == null ? "Successes is null" : "Successes is not null");&lt;/PRE&gt; 
&lt;P&gt;of the second one :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;if (errors != null) {
	System.out.println("################## Error");
}&lt;/PRE&gt; 
&lt;P&gt;and the result ("null" database name is volontary used to generate an error) :&lt;/P&gt; 
&lt;PRE&gt;############## DELETE FROM null.wrk_import
---------------wrk_import
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Errors is not null
Successes is not null&lt;/STRONG&gt;&lt;/FONT&gt;
################## Error
############## DELETE FROM null.wrk_deviationexplanation
---------------wrk_deviationexplanation
Errors is not null
Successes is null
################## Error
############## DELETE FROM null.wrk_projectimprovment
---------------wrk_projectimprovment
Errors is not null
Successes is null
################## Error&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One more question : is there a way to use a computed parameter in tWarn priority ?&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 17:14:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-21T17:14:34Z</dc:date>
    <item>
      <title>Getting rejects vs successes after a tDBRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321572#M91591</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm looking for log successes and errors after using a tDBRow (see screenshot).&lt;/P&gt; 
&lt;P&gt;The problem is that during the first iteration, errors and successes are both not null (next iteration are ok).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the code of the first tJava :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;if (errors == null) {
	System.out.println("################## Success");
}

System.out.println("---------------" + (String) globalMap.get("currentTableToFlush"));
System.out.println(errors == null ? "Errors is null" : "Errors is not null");
System.out.println(successes == null ? "Successes is null" : "Successes is not null");&lt;/PRE&gt; 
&lt;P&gt;of the second one :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;if (errors != null) {
	System.out.println("################## Error");
}&lt;/PRE&gt; 
&lt;P&gt;and the result ("null" database name is volontary used to generate an error) :&lt;/P&gt; 
&lt;PRE&gt;############## DELETE FROM null.wrk_import
---------------wrk_import
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Errors is not null
Successes is not null&lt;/STRONG&gt;&lt;/FONT&gt;
################## Error
############## DELETE FROM null.wrk_deviationexplanation
---------------wrk_deviationexplanation
Errors is not null
Successes is null
################## Error
############## DELETE FROM null.wrk_projectimprovment
---------------wrk_projectimprovment
Errors is not null
Successes is null
################## Error&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One more question : is there a way to use a computed parameter in tWarn priority ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 17:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321572#M91591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T17:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rejects vs successes after a tDBRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321573#M91592</link>
      <description>&lt;P&gt;What is the success message in the first iteration?&amp;nbsp; Did you try using a tDBOutput component instead?&amp;nbsp; You could also keep a counter and just handle the first row specially.&lt;/P&gt;&lt;P&gt;I don't think you can set the priority in a tWarn with a variable.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 06:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321573#M91592</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-05-22T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rejects vs successes after a tDBRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321574#M91593</link>
      <description>&lt;P&gt;I can't (or don't know how) use a tDBOutput, table structures are completly different (no common field).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What do you mean by "success message" ?&lt;/P&gt; 
&lt;P&gt;On success :&lt;/P&gt; 
&lt;P&gt;- resultSet/success is a single but null value flow&lt;/P&gt; 
&lt;P&gt;- error is an empty flow&lt;/P&gt; 
&lt;PRE&gt;.---------.
|tLogRow_1|
|=-------=|
|resultSet|
|=-------=|
|null     |
'---------'

.------------+---------+------------.
|             tLogRow_4             |
|=-----------+---------+-----------=|
|tableToFlush|errorCode|errorMessage|
|=-----------+---------+-----------=|
'------------+---------+------------'&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On error :&lt;/P&gt; 
&lt;P&gt;- resultSet/success is an empty flow&lt;/P&gt; 
&lt;P&gt;- error is a single line with corresponding error&lt;/P&gt; 
&lt;PRE&gt;.---------. &lt;BR /&gt;|tLogRow_1|
|=-------=|
|resultSet|
|=-------=|
'---------'

.------------+---------+-------------------------------------------------.
|                               tLogRow_4                                |
|=-----------+---------+------------------------------------------------=|
|tableToFlush|errorCode|errorMessage                                     |
|=-----------+---------+------------------------------------------------=|
|null        |42S02    |Table 'delivery_ods.null' doesn't exist - Line: 0|
'------------+---------+-------------------------------------------------'&lt;/PRE&gt; 
&lt;P&gt;And "ERROR_MESSAGE" is always null.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 09:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321574#M91593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T09:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rejects vs successes after a tDBRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321575#M91594</link>
      <description>&lt;P&gt;Nobody?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2019 16:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321575#M91594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-26T16:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rejects vs successes after a tDBRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321576#M91595</link>
      <description>&lt;P&gt;What type are the variables successes and errors?&amp;nbsp; What is the value of the resultSet of the success row on the first execution of malformed SQL?&lt;/P&gt;&lt;P&gt;Can you show the schema of the tDbRow component?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 04:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321576#M91595</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-05-27T04:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rejects vs successes after a tDBRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321577#M91596</link>
      <description>&lt;P&gt;Thanks for your reply. All requested elements in attached screenshots.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvmH"&gt;2019-05-27 09_28_13-Talend Open Studio for Data Integration (7.1.1.20181026_1147) _ GettingStarted (.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvba"&gt;2019-05-27 09_28_37-Talend Open Studio for Data Integration (7.1.1.20181026_1147) _ GettingStarted (.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvdC"&gt;2019-05-27 09_28_59-Talend Open Studio for Data Integration (7.1.1.20181026_1147) _ GettingStarted (.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuR2"&gt;2019-05-27 09_29_22-Talend Open Studio for Data Integration (7.1.1.20181026_1147) _ GettingStarted (.png&lt;/A&gt;</description>
      <pubDate>Mon, 27 May 2019 08:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-rejects-vs-successes-after-a-tDBRow/m-p/2321577#M91596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T08:30:36Z</dc:date>
    </item>
  </channel>
</rss>

