<?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: Cannot get context to survive between subjobs in one job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542275#M149397</link>
    <description>&lt;P&gt;Restarted Studio, reset context - now it works..&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 12:46:42 GMT</pubDate>
    <dc:creator>StefanBackstrand</dc:creator>
    <dc:date>2026-02-03T12:46:42Z</dc:date>
    <item>
      <title>Cannot get context to survive between subjobs in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542263#M149395</link>
      <description>&lt;P&gt;I'm trying to use a context variable in two places in my job - once in the first subjob, then again in a subsequent subjob (linked with OnSubjobOk). So this should be sequential execution - to avoid any timing issues/race conditions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is driving me insane, because if I write both context and the globalmap variable to console in tJava_2, I get values. But in tJava_1 (earlier) they are null, AND in the tFileDelete (which is order: 1, after tJava_2) it's also null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't make any sense. Isn't OnSubjobOk supposed to be sequential? I'm also using globalMap to be thread safe. What's happening?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 11:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542263#M149395</guid>
      <dc:creator>StefanBackstrand</dc:creator>
      <dc:date>2026-02-03T11:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get context to survive between subjobs in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542265#M149396</link>
      <description>&lt;P&gt;Here is the log showing the values, and the tJavaFlex_1 where I set the globalMap variable I'm also trying to use.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 11:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542265#M149396</guid>
      <dc:creator>StefanBackstrand</dc:creator>
      <dc:date>2026-02-03T11:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get context to survive between subjobs in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542275#M149397</link>
      <description>&lt;P&gt;Restarted Studio, reset context - now it works..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 12:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2542275#M149397</guid>
      <dc:creator>StefanBackstrand</dc:creator>
      <dc:date>2026-02-03T12:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get context to survive between subjobs in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2543801#M149429</link>
      <description>&lt;P data-end="295" data-start="63"&gt;I’ve run into the same issue before — it can be really confusing because even though &lt;STRONG data-end="162" data-start="148"&gt;OnSubjobOk&lt;/STRONG&gt; guarantees sequential execution, context variables in Talend don’t automatically propagate back if you overwrite them in a subjob.&lt;/P&gt;
&lt;P data-end="333" data-start="297"&gt;A couple of things that helped me:&lt;/P&gt;
&lt;UL data-end="798" data-start="334"&gt;
&lt;LI data-end="493" data-start="334"&gt;
&lt;P data-end="493" data-start="336"&gt;Make sure you’re &lt;STRONG data-end="393" data-start="353"&gt;updating the context variable itself&lt;/STRONG&gt;, not just assigning a local copy in tJava. For example: &lt;CODE data-end="491" data-start="450"&gt;context.myVar = globalMap.get("myVar");&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-end="647" data-start="494"&gt;
&lt;P data-end="647" data-start="496"&gt;Use &lt;STRONG data-end="513" data-start="500"&gt;globalMap&lt;/STRONG&gt; consistently to pass values between subjobs; then explicitly assign them back to context if needed at the start of the next subjob.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-end="798" data-start="648"&gt;
&lt;P data-end="798" data-start="650"&gt;Double-check the &lt;STRONG data-end="686" data-start="667"&gt;execution order&lt;/STRONG&gt; in the job designer — sometimes a tRunJob or parallel branch can run unexpectedly if not carefully connected.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-end="954" data-start="800"&gt;Basically, treat globalMap as the “shared memory” and context as your configuration snapshot. That usually fixes the null problem in subsequent subjobs.&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="1058" data-start="956"&gt;It’s tricky, but once you set the assignment pattern consistently, the values survive between subjobs.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 06:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-get-context-to-survive-between-subjobs-in-one-job/m-p/2543801#M149429</guid>
      <dc:creator>ReggieHunter-4451</dc:creator>
      <dc:date>2026-02-26T06:49:23Z</dc:date>
    </item>
  </channel>
</rss>

