<?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: Continue to next row in tMap on error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308115#M79485</link>
    <description>Hi, I have a similar issue as this. Here's what I'm trying to do: 
&lt;BR /&gt;- read through a tFileInputDelimited and process each row 
&lt;BR /&gt;- For each row.... 
&lt;BR /&gt; ---if the processing runs successfully, append the processed output row to a tFileOutputDelimited (success) object 
&lt;BR /&gt; ---if the processing fails for whatever reason, append the original failing row to a different (failure) object 
&lt;BR /&gt;Eventually, for each input file to process, I should end up with either one full success file, or two files, one containing success records and the other containing failure records 
&lt;BR /&gt;I'm trying to do what shong mentioned above in terms of breaking the processing out to a subjob, but I'm having some issues: 
&lt;BR /&gt;- How do I append each processed record to the end of a file (whether that file already exists or needs to be created)? 
&lt;BR /&gt;- How come the various pieces of my flow are in separate light-blue boxes (separate jobs?) even when I want them all to be in the same one box? 
&lt;BR /&gt;- Even when I throw junk data into my subjob it still doesn't seem to then trigger the OnComponentError flow...it seems to continue to progress to the next step of the 'main' flow. 
&lt;BR /&gt;Thanks for all your help! 
&lt;BR /&gt;--Josh</description>
    <pubDate>Mon, 14 Feb 2011 20:18:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-02-14T20:18:08Z</dc:date>
    <item>
      <title>Continue to next row in tMap on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308113#M79483</link>
      <description>I have a tFileInputPositional -&amp;gt; tMap -&amp;gt; tMSSqlOutput sequence.  The tMap takes the input (line by line) from tFileInputPositional and does a bunch of processing.  Problem is, sometimes a row will contain bad data causing a java error in the tMap.  I don't control the input files so I cannot ensure all rows are formatted properly.  When the tMap fails on a row, I want it to just continue onto the next row instead of totally failing.  Could somebody please explain how to do this?  It should be something as simple as adding a try/catch block in the loop.  Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 13:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308113#M79483</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Continue to next row in tMap on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308114#M79484</link>
      <description>Hello 
&lt;BR /&gt;There are two ways you can follow: 
&lt;BR /&gt;1)You should filter the records with some condiftion defined by you on tFilterRow or other component and check the data quality before tMap. 
&lt;BR /&gt;2)Put the tMap--&amp;gt;tMssqlOutput in a child job. eg: 
&lt;BR /&gt;on father job: 
&lt;BR /&gt;tFileInputPositional---&amp;gt;tFlowToIterate--tRunJob 
&lt;BR /&gt;on tRunJob: uncheck 'die on error' option, and pass each row to child job via tRunJob. 
&lt;BR /&gt;About how to pass a row/parameters to a child job, see 1918. 
&lt;BR /&gt;If you are working on TIS, you can use the joblet to define a child job and it is easy to pass a flow to child job. 
&lt;BR /&gt;on child job: 
&lt;BR /&gt;tFixedFlowInput--&amp;gt;tMap--&amp;gt;tMssqlOutput 
&lt;BR /&gt;on tFixedFlowInput: generate a input flow passed via tRunJob on father job. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 14 Jan 2010 02:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308114#M79484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-14T02:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Continue to next row in tMap on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308115#M79485</link>
      <description>Hi, I have a similar issue as this. Here's what I'm trying to do: 
&lt;BR /&gt;- read through a tFileInputDelimited and process each row 
&lt;BR /&gt;- For each row.... 
&lt;BR /&gt; ---if the processing runs successfully, append the processed output row to a tFileOutputDelimited (success) object 
&lt;BR /&gt; ---if the processing fails for whatever reason, append the original failing row to a different (failure) object 
&lt;BR /&gt;Eventually, for each input file to process, I should end up with either one full success file, or two files, one containing success records and the other containing failure records 
&lt;BR /&gt;I'm trying to do what shong mentioned above in terms of breaking the processing out to a subjob, but I'm having some issues: 
&lt;BR /&gt;- How do I append each processed record to the end of a file (whether that file already exists or needs to be created)? 
&lt;BR /&gt;- How come the various pieces of my flow are in separate light-blue boxes (separate jobs?) even when I want them all to be in the same one box? 
&lt;BR /&gt;- Even when I throw junk data into my subjob it still doesn't seem to then trigger the OnComponentError flow...it seems to continue to progress to the next step of the 'main' flow. 
&lt;BR /&gt;Thanks for all your help! 
&lt;BR /&gt;--Josh</description>
      <pubDate>Mon, 14 Feb 2011 20:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Continue-to-next-row-in-tMap-on-error/m-p/2308115#M79485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-14T20:18:08Z</dc:date>
    </item>
  </channel>
</rss>

