<?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 Joblet cannot use INPUT in conjunction with subjobs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200499#M2970</link>
    <description>I have a joblet that requires the use of subjobs, but that also takes an input.&lt;BR /&gt;Many of my joblets have subjobs (eg open DB connection, read file, write to DB, close DB connection).  I can do this using the TRIGGER_INPUT component to start the joblet, and each subjob is connected using a Trigger from the previous one.&lt;BR /&gt;However, in a joblet that requires a data input, I need to use the INPUT component, and you cannot set a trigger on this component.  If you can't set a trigger, you can't create a second subjob in the joblet.&lt;BR /&gt;Essentially in my job, I read an input and send this through a tMap to several tHashOutputs, all linked.  I then read in the (now merged) tHashInput and write this to a database.&lt;BR /&gt;I know I can use a TRIGGER_OUTPUT and an OUTPUT component in the same joblet because the examples in the documentation say so, but I can't use a TRIGGER_INPUT and an INPUT component in the same joblet because the subjob would then not be the start of a subjob and therefore cannot take a trigger.&lt;BR /&gt;How can I create a subjob that takes input, but that also allows me to use subjobs inside it?</description>
    <pubDate>Wed, 06 Nov 2013 12:39:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-06T12:39:53Z</dc:date>
    <item>
      <title>Joblet cannot use INPUT in conjunction with subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200499#M2970</link>
      <description>I have a joblet that requires the use of subjobs, but that also takes an input.&lt;BR /&gt;Many of my joblets have subjobs (eg open DB connection, read file, write to DB, close DB connection).  I can do this using the TRIGGER_INPUT component to start the joblet, and each subjob is connected using a Trigger from the previous one.&lt;BR /&gt;However, in a joblet that requires a data input, I need to use the INPUT component, and you cannot set a trigger on this component.  If you can't set a trigger, you can't create a second subjob in the joblet.&lt;BR /&gt;Essentially in my job, I read an input and send this through a tMap to several tHashOutputs, all linked.  I then read in the (now merged) tHashInput and write this to a database.&lt;BR /&gt;I know I can use a TRIGGER_OUTPUT and an OUTPUT component in the same joblet because the examples in the documentation say so, but I can't use a TRIGGER_INPUT and an INPUT component in the same joblet because the subjob would then not be the start of a subjob and therefore cannot take a trigger.&lt;BR /&gt;How can I create a subjob that takes input, but that also allows me to use subjobs inside it?</description>
      <pubDate>Wed, 06 Nov 2013 12:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200499#M2970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-06T12:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Joblet cannot use INPUT in conjunction with subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200500#M2971</link>
      <description>Hi, &lt;BR /&gt;Is the &lt;A href="https://help.talend.com/search/all?query=tRunJob&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;trunjob&lt;/A&gt; set in Joblet working for your case? Is there any expected result screenshot for your workflow?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 07 Nov 2013 09:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200500#M2971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T09:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Joblet cannot use INPUT in conjunction with subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200501#M2972</link>
      <description>Hi, sorry, but I don't understand how this would help.  I don't understand how using a tRunJob fixes the problem of not being able to receive an input data stream vian an INPUT component *and* using subjobs in the same joblet.&lt;BR /&gt;If I define a job with subjobs, how can I define an input of data that the job will receive and process?&lt;BR /&gt;If I define an input data flow, eg using the INPUT component, I cannot set up subjobs inside it.  Subjobs are mandatory because I have multiple tHashOutputs and a single connected tHashInput in the same job.  It is how I take data from fields 100 repeating fields and split it out into 20 records of five fields each.&lt;BR /&gt;I'm also not sure what you want me to screenshot.&lt;BR /&gt;I can't screenshot the expected output because that requires me to create the job in the first place, and that's what the case is about.  All I have are components floating around that I can't join up.&lt;BR /&gt;A screenshot of the data is irrelevant to the problem because the joblet has no output data flow, it just loads a database table.  It is the *input* that I'm struggling with.&lt;BR /&gt;&lt;BR /&gt;How does a tRunJob help, and what would you like me to screenshot for you?</description>
      <pubDate>Thu, 07 Nov 2013 12:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200501#M2972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T12:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Joblet cannot use INPUT in conjunction with subjobs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200502#M2973</link>
      <description>(Note - again this is mavdo, but talendforge won't let me login properly. I log in but it still has a "Log in" box at the top of the page and forces me to post as a guest. Clicking the "Log in" button shows my username and profile details, but it otherwise acts as if I'm not logged in. Genius(!))
&lt;BR /&gt;Hi
&lt;BR /&gt;I have found a solution to this.
&lt;BR /&gt;Read in the data through an INPUT component and send it to a tHashOutput.
&lt;BR /&gt;Set an "OnComponentOK" trigger from this tHashOutput and attach it to the next subjob.
&lt;BR /&gt;Continue with the rest of the joblet as normal, utilising OnSubjobOK triggers between all other subjobs.
&lt;BR /&gt;End the joblet with an OUTPUT or TRIGGER_OUTPUT component (possibly both).
&lt;BR /&gt;I have tested this and found it to work very well.
&lt;BR /&gt;If your first subjob ends with a single component, you could just use this to attach the OnComponentOK trigger. Unfortunately mine had multiple exit points, and although there was an order to them, I wanted to guarantee that they had all completed under all circumstances.
&lt;BR /&gt;mavdo</description>
      <pubDate>Tue, 12 Nov 2013 14:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Joblet-cannot-use-INPUT-in-conjunction-with-subjobs/m-p/2200502#M2973</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-12T14:30:07Z</dc:date>
    </item>
  </channel>
</rss>

