<?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: Passing context parameters in a tRunJob in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232505#M22445</link>
    <description>Hello&amp;nbsp; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;java.io.FileNotFoundException: C:\\Input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It is a directory rather than file path, it seems the value of&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Source_Filename_Control is not passed correctly from parent job. For testing, try to print the value of&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Source_Dir and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Source_Filename_Control in tRunJob4 to see if they are correct or not.&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Regards&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Wed, 07 Sep 2016 02:38:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-07T02:38:02Z</dc:date>
    <item>
      <title>Passing context parameters in a tRunJob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232504#M22444</link>
      <description>My Talend Job is made up of a control job with four tRun Jobs as children below. 
&lt;BR /&gt;Effectively: Control (TrunJob1) --&amp;gt; TrunJob2 (calls TrunJob3) --&amp;gt; TrunJob3 (calls TrunJob4) --&amp;gt; Trunjob4 
&lt;BR /&gt;(These are jobs wrapped within jobs, not four tRunJobs in one Job) 
&lt;BR /&gt;The context groups are set from the top to bottom. The "transmit whole context" option is ticked at every turn. 
&lt;BR /&gt;In the Trunjob4 there is a tFileRowCount component with the contexts set to look at a file under a directory: 
&lt;BR /&gt;e.g. context.Source_Dir+context.Source_Filename_Control 
&lt;BR /&gt;For some reason it is saying access is denied: 
&lt;BR /&gt; 
&lt;BR /&gt;java.io.FileNotFoundException: C:\\Input (Access is denied) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.FileInputStream.open(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:146) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:101) 
&lt;BR /&gt;There are no access issues. If I run this from TrunJob 2 with hardcoded values in the .properties values this works. 
&lt;BR /&gt;Can anyone make any suggestions of what might be wrong?</description>
      <pubDate>Tue, 06 Sep 2016 15:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232504#M22444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-06T15:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Passing context parameters in a tRunJob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232505#M22445</link>
      <description>Hello&amp;nbsp; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;java.io.FileNotFoundException: C:\\Input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It is a directory rather than file path, it seems the value of&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Source_Filename_Control is not passed correctly from parent job. For testing, try to print the value of&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Source_Dir and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;context.Source_Filename_Control in tRunJob4 to see if they are correct or not.&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Regards&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 07 Sep 2016 02:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232505#M22445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T02:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing context parameters in a tRunJob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232506#M22446</link>
      <description>Thanks Shong yeah it seems the contexts aren't passing through. 
&lt;BR /&gt;I've simplified this a bit more. 
&lt;BR /&gt;In tRunJob (1) (where contexts are initialised) I am trying to take out the contexts so I can pass them to tRunJob2 in the following way. 
&lt;BR /&gt;1) In TRunJob1 I have a subjob with 
&lt;BR /&gt;tFixedRowInput --&amp;gt; tMap --&amp;gt; tBufferOutput (in Tmap I have made a 'contextOut' schema with the context values I need) 
&lt;BR /&gt;2) Outside the TRunJob I output this to a tlogRow by seelcting the 'copy Child Job Schema' and output the values to a tlogRow. This is successful. 
&lt;BR /&gt;3) So now I have: 
&lt;BR /&gt;tRunJob 1 ---&amp;gt; tLogRow 
&lt;BR /&gt;tRunJob2 
&lt;BR /&gt;so now I got the values out how do I pass these values from one TrunJob1 to TRunJob2? I have selected the 'contextOut' schema in the TrunJob settings but that doesn't work. 
&lt;BR /&gt;(This is the free version so I can't use joblets, which might make a difference)</description>
      <pubDate>Thu, 08 Sep 2016 13:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-context-parameters-in-a-tRunJob/m-p/2232506#M22446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T13:10:38Z</dc:date>
    </item>
  </channel>
</rss>

