<?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: Context environment get the wrong value in subjob - Logging process in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260398#M41542</link>
    <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLolAAG"&gt;@lli&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yeah, the subjob work perfectly when I use&amp;nbsp;&lt;SPAN&gt;"Transmit whole context". It is actually working normally with this configuration, but in the log it shows the default context, which in subjobs is always the same DEV. I think I will create a context variable to pass the context information in the main job and use this variable to log the context in all child jobs, but this will be a hard thing to do since I will need to create one more context variable in all subjobs...&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If Talend have some better solution to resolve this, please let me know.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Luiz Ramos&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 22:20:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-18T22:20:53Z</dc:date>
    <item>
      <title>Context environment get the wrong value in subjob - Logging process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260396#M41540</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm facing an issue when trying to pass a different environment context to subjobs by command line. By default I'm passing the DEV environment, but when I run the job by command line passing a different context, (using --context=PRD for example), in the subjobs the environment in the tStatsCatcher "context" variable still get the default, which is DEV. I think that is because in the subjob call, I need to inform which context the subjob should run, like image below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma8I.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150186i8B98FCA1E5367EAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma8I.png" alt="0683p000009Ma8I.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Exist a way that I can replicate the context used in command line by all subjobs?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260396#M41540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Context environment get the wrong value in subjob - Logging process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260397#M41541</link>
      <description>&lt;P&gt;In my experience, if you check the "Transmit whole context", then the subjob will get the values from the main job.&amp;nbsp; But...&amp;nbsp; in the logging I still see the wrong context shown.&amp;nbsp; But it does work and the values are passed as long as the variable names are the same between main and sub.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You should be able to create a small test job to prove this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 21:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260397#M41541</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-18T21:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Context environment get the wrong value in subjob - Logging process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260398#M41542</link>
      <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLolAAG"&gt;@lli&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yeah, the subjob work perfectly when I use&amp;nbsp;&lt;SPAN&gt;"Transmit whole context". It is actually working normally with this configuration, but in the log it shows the default context, which in subjobs is always the same DEV. I think I will create a context variable to pass the context information in the main job and use this variable to log the context in all child jobs, but this will be a hard thing to do since I will need to create one more context variable in all subjobs...&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If Talend have some better solution to resolve this, please let me know.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Luiz Ramos&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 22:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260398#M41542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-18T22:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Context environment get the wrong value in subjob - Logging process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260399#M41543</link>
      <description>&lt;P&gt;Does anyone know how to have accurate logs ?&lt;/P&gt;&lt;P&gt;I came accross the same problem recently, got confused a bit. But context appears to work fine in the end, even when the logs says otherwise. &lt;/P&gt;&lt;P&gt;But having accurate logs is still an important bit of my work. &lt;/P&gt;&lt;P&gt;Does anyone know how to make sure the logs remain accurate ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-environment-get-the-wrong-value-in-subjob-Logging/m-p/2260399#M41543</guid>
      <dc:creator>MBeaujoin1649763554</dc:creator>
      <dc:date>2022-04-12T12:16:00Z</dc:date>
    </item>
  </channel>
</rss>

