<?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: Output rejection based on specific condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Output-rejection-based-on-specific-condition/m-p/2329859#M99005</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU" target="_self"&gt;@rhall&lt;/A&gt;&lt;BR /&gt;If another word i want to output the file only if it contain a row&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 10:50:07 GMT</pubDate>
    <dc:creator>RA6</dc:creator>
    <dc:date>2018-03-23T10:50:07Z</dc:date>
    <item>
      <title>Output rejection based on specific condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-rejection-based-on-specific-condition/m-p/2329858#M99004</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My&amp;nbsp;idea is to :&lt;/P&gt; 
&lt;P&gt;1. count the delimiters per line&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tjavarow&lt;/P&gt; 
&lt;P&gt;output_row.line = input_row.line;&lt;BR /&gt;context.DelCount = StringHandling.COUNT(input_row.line, ";");&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2.&amp;nbsp;gather rows not equal&amp;nbsp;the default delimiters&amp;nbsp;value&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tmap =&amp;gt; Expression filter&lt;/P&gt; 
&lt;P&gt;context.DelCount &amp;lt; 10&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3. Finally i used a tjavaflex to check if i have any rejection.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if(nb==0){&lt;BR /&gt;globalMap.put("hasData",false);&lt;BR /&gt;}else {&lt;BR /&gt;globalMap.put("hasData",true);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdf.JPG" style="width: 858px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt6k.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147809i48313C6A80277335/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt6k.jpg" alt="0683p000009Lt6k.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What i&amp;nbsp;am not able to do:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If there is any rejection&amp;nbsp;&lt;SPAN&gt;("hasData",true), i want to output all the rows in a file then finally die.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tjavaflex cannot get the schema from the tmap i guess.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Any idea how to handle this?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;asadasing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-rejection-based-on-specific-condition/m-p/2329858#M99004</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2024-11-16T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Output rejection based on specific condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-rejection-based-on-specific-condition/m-p/2329859#M99005</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU" target="_self"&gt;@rhall&lt;/A&gt;&lt;BR /&gt;If another word i want to output the file only if it contain a row&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 10:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-rejection-based-on-specific-condition/m-p/2329859#M99005</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2018-03-23T10:50:07Z</dc:date>
    </item>
  </channel>
</rss>

