<?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 pass a context parameter to a subjob on Component error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371051#M134030</link>
    <description>Hi
&lt;BR /&gt;I've uploaded the screenshot of a sample job that I've created. 
&lt;BR /&gt;In this scenario, on an error occuring in any component in the job, it will go to subjob1 (tRunJob1). The problem is that I want to pass a value that I've retrieved from database. 
&lt;BR /&gt;Say I queried 10 rows and row 5 caused the error. So I want to pass the id of this row5 to subjob1 so that it can use this id to do some roll backs.
&lt;BR /&gt;Ive tried adding a context variable in subjob1. And in the main job I've tried to pass it as row1.id , but an error occurs stating "row1 not found". Since the main flow doesn't include subjob1, this is logically correct.
&lt;BR /&gt;Can some one please enlighten me on a method by which I can pass some parameter from the mail flow to the error flow?
&lt;BR /&gt;I've tried tJavaRow and tJava components. They don't work. I can't access row1.id in the Java component also (Otherwise I could have set some global context variable and passed it via that)</description>
    <pubDate>Sat, 16 Nov 2024 13:39:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:39:35Z</dc:date>
    <item>
      <title>How to pass a context parameter to a subjob on Component error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371051#M134030</link>
      <description>Hi
&lt;BR /&gt;I've uploaded the screenshot of a sample job that I've created. 
&lt;BR /&gt;In this scenario, on an error occuring in any component in the job, it will go to subjob1 (tRunJob1). The problem is that I want to pass a value that I've retrieved from database. 
&lt;BR /&gt;Say I queried 10 rows and row 5 caused the error. So I want to pass the id of this row5 to subjob1 so that it can use this id to do some roll backs.
&lt;BR /&gt;Ive tried adding a context variable in subjob1. And in the main job I've tried to pass it as row1.id , but an error occurs stating "row1 not found". Since the main flow doesn't include subjob1, this is logically correct.
&lt;BR /&gt;Can some one please enlighten me on a method by which I can pass some parameter from the mail flow to the error flow?
&lt;BR /&gt;I've tried tJavaRow and tJava components. They don't work. I can't access row1.id in the Java component also (Otherwise I could have set some global context variable and passed it via that)</description>
      <pubDate>Sat, 16 Nov 2024 13:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371051#M134030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a context parameter to a subjob on Component error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371052#M134031</link>
      <description>A little help?</description>
      <pubDate>Fri, 04 Dec 2009 04:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371052#M134031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-04T04:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a context parameter to a subjob on Component error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371053#M134032</link>
      <description>Hello 
&lt;BR /&gt;First, define a context var errorID in the father job, use tJavaRow to replace tJava component.
&lt;BR /&gt;on tJavaRow:
&lt;BR /&gt;context.errorID=input_row.id
&lt;BR /&gt;then, pass the value of errorID to child job via tRunJob_1, see 1654.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 04 Dec 2009 05:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-a-context-parameter-to-a-subjob-on-Component-error/m-p/2371053#M134032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-04T05:10:03Z</dc:date>
    </item>
  </channel>
</rss>

