<?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 How to handle rejection when 'Batch Size' enabled in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300992#M73163</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually, I'm using Talend 5.5.1 for my data migration project.I have a requirement such as configuring 'tOracleOutput' component with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;Batch&lt;/SPAN&gt;Sixe enabled and Rejection flow.However, I see, it is not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give me&amp;nbsp;a way to handle rejections when the tOracleOutput&lt;SPAN&gt;&amp;nbsp;with&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;Batch&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;size&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;enabled?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charith&lt;/P&gt;</description>
    <pubDate>Sun, 22 Oct 2017 11:34:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-22T11:34:53Z</dc:date>
    <item>
      <title>How to handle rejection when 'Batch Size' enabled</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300992#M73163</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually, I'm using Talend 5.5.1 for my data migration project.I have a requirement such as configuring 'tOracleOutput' component with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;Batch&lt;/SPAN&gt;Sixe enabled and Rejection flow.However, I see, it is not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give me&amp;nbsp;a way to handle rejections when the tOracleOutput&lt;SPAN&gt;&amp;nbsp;with&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;Batch&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;size&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;enabled?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charith&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 11:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300992#M73163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-22T11:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle rejection when 'Batch Size' enabled</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300993#M73164</link>
      <description>&lt;P&gt;Most common reason for&amp;nbsp; data rejections:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * Duplication of keys&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * Data Truncation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For duplication of data , can be easily identified by custom code.&lt;/P&gt;
&lt;P&gt;For Data truncation , you can make use of component tSchemaCompilanceCheck .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Reject options gets enabled only Die on Error and Batch Option is not enabled.&amp;nbsp;&lt;BR /&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 17:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300993#M73164</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2017-10-22T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle rejection when 'Batch Size' enabled</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300994#M73165</link>
      <description>&lt;P&gt;Hi Charith,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMCuAAO"&gt;@ashif&lt;/A&gt;&amp;nbsp;says, you&amp;nbsp;can handle the most common causes for inserts being rejected by the server in your Talend job, and if you want batch mode enabled, you'll have to, but it's always possible&amp;nbsp;that an insert will fail for some reason which you're not handling, and you won't be able to get anything&amp;nbsp;meaningful unless your output component has the "Rejects" output enabled.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Whilst you may already be aware of this, I thought I'd re-post my reply to another thread earlier which includes an explanation as to why the "Rejects" output isn't always available.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;If you're using t*Row components, there will already be a "Rejects" output, however if&amp;nbsp;you're using t*Output components, you'll need to&amp;nbsp;un-tick "Use Batch Size" in Advanced Settings in order to enable the "Rejects" output.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;In batch mode, Talend sends batches of say 1,000 inserts to the server at a time, and this means that any errors returned aren't usually specific enough to be useful, or to identify the row in which the error occurred, so the "Rejects" output is disabled.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;With batch mode turned off, each&amp;nbsp;insert is sent individually, and you'll get meaningful errors back from the server, so "Rejects" is enabled.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Batch mode is of course quicker,&amp;nbsp;but not an option if you need to know when individual inserts are failing.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;t*Row components always operate on a per-row basis, and so will have the "Rejects" output available.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;There is a "Die on error" option for all of these components, but&amp;nbsp;you'll normally want to deal with errors properly, and at a minimum, log them and continue, rather than aborting the job.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 20:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-rejection-when-Batch-Size-enabled/m-p/2300994#M73165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-23T20:23:48Z</dc:date>
    </item>
  </channel>
</rss>

