<?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: OnComponentError - Log the error and go to the next record in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300323#M72560</link>
    <description>Dear user 
&lt;BR /&gt;To capture the error message, you should the tLogCapture component. The job design looks like: 
&lt;BR /&gt;parent job: 
&lt;BR /&gt;tFileInputDelimited(read each row from file)---main--tFlowToIterate---iterate--tRunJob(call the child job) 
&lt;BR /&gt;on tRunJob, uncheck the option 'die on error', it will continue to process next records even the child job has an error, pass each row to child job via context variables. 
&lt;BR /&gt;Child job: 
&lt;BR /&gt;tFixedFlowInput--main--tSalesforOutput 
&lt;BR /&gt;tLogCapture--main--tFileOutputDelimited 
&lt;BR /&gt;on tFixedFlowInput, generate each row passed from the parent job. see the following topic to know how to pass each row from parent job to child job: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjPTCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Dynamically-run-a-job/td-p/68161&lt;/A&gt; 
&lt;BR /&gt;on tSalesForOutput, check the option 'die on error' 
&lt;BR /&gt;on tFileOutputDelimited, check the option 'append' to append each error message to the existing file if needed. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 21 Oct 2011 08:04:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-10-21T08:04:02Z</dc:date>
    <item>
      <title>OnComponentError - Log the error and go to the next record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300322#M72559</link>
      <description>Hi Team,
&lt;BR /&gt; In my parent job, the input is the csv file and run the sequence of subjob by onComponentOk event. 
&lt;B&gt;For each record of input file the sequence of subjob has to be executed.&lt;/B&gt; In each subjobs i have checked the checkbox "die on error" to true of tSalesforceOutput component.
&lt;BR /&gt;Please refer ETLJob image
&lt;BR /&gt;
&lt;B&gt;My requirement:&lt;/B&gt;
&lt;BR /&gt; For a particular record if any of subjob is failed at any sequence, I want to login into the output file, and want to continue with the next record of the input csv file.
&lt;BR /&gt;Steps followed:
&lt;BR /&gt; 1. I searched on talend forum, and found i can populate the error message as one of the context variable and i can pass it.
&lt;BR /&gt;2. So onComponentError i adding one tJavaFlex to populate error message and attaching with the output file in each subjob. Please refer LogError_OnComponentOk image
&lt;BR /&gt;I have a idea of create new job to log a errormessage(have tJavaFlex and output file), and attach that job of on onComponentError to present this job simple.
&lt;BR /&gt;
&lt;B&gt;Where I struck up ?&lt;/B&gt;
&lt;BR /&gt; After logging the error message in the output file,where/how can I write code to move to the next record of my INPUT csv file. 
&lt;BR /&gt;Kindly suggest me how to go about it.</description>
      <pubDate>Sat, 16 Nov 2024 12:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300322#M72559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: OnComponentError - Log the error and go to the next record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300323#M72560</link>
      <description>Dear user 
&lt;BR /&gt;To capture the error message, you should the tLogCapture component. The job design looks like: 
&lt;BR /&gt;parent job: 
&lt;BR /&gt;tFileInputDelimited(read each row from file)---main--tFlowToIterate---iterate--tRunJob(call the child job) 
&lt;BR /&gt;on tRunJob, uncheck the option 'die on error', it will continue to process next records even the child job has an error, pass each row to child job via context variables. 
&lt;BR /&gt;Child job: 
&lt;BR /&gt;tFixedFlowInput--main--tSalesforOutput 
&lt;BR /&gt;tLogCapture--main--tFileOutputDelimited 
&lt;BR /&gt;on tFixedFlowInput, generate each row passed from the parent job. see the following topic to know how to pass each row from parent job to child job: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjPTCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Dynamically-run-a-job/td-p/68161&lt;/A&gt; 
&lt;BR /&gt;on tSalesForOutput, check the option 'die on error' 
&lt;BR /&gt;on tFileOutputDelimited, check the option 'append' to append each error message to the existing file if needed. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 21 Oct 2011 08:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300323#M72560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-21T08:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: OnComponentError - Log the error and go to the next record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300324#M72561</link>
      <description>Shong,
&lt;BR /&gt; Thanks for your reply, in child job you mentioned as 
&lt;BR /&gt;1. tFixedFlowInput--main--tSalesforOutput
&lt;BR /&gt;2. tLogCapture--main--tFileOutputDelimited. 
&lt;BR /&gt;I am reading and browsing how to use tFixedFlowInput.
&lt;BR /&gt;I am not sure where to place the components in my child jobs(subjobs).
&lt;BR /&gt;Please have a look on my child jobs and suggest me.</description>
      <pubDate>Fri, 21 Oct 2011 11:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/OnComponentError-Log-the-error-and-go-to-the-next-record/m-p/2300324#M72561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-21T11:21:51Z</dc:date>
    </item>
  </channel>
</rss>

