<?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: Can not call a dynamic global variable in another subjob. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363367#M127260</link>
    <description>&lt;P&gt;The file name used in the tFileOutputDelimited_2 needs to be set before the flow starts - it can’t be part of the incoming flow. Consider using a tFlowToIterate component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 31 Dec 2023 09:14:13 GMT</pubDate>
    <dc:creator>David_Beaty</dc:creator>
    <dc:date>2023-12-31T09:14:13Z</dc:date>
    <item>
      <title>Can not call a dynamic global variable in another subjob.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363366#M127259</link>
      <description>&lt;P&gt;I have this job design:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000rRGfQAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143071iBE82291A29635948/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000rRGfQAAW.png" alt="0695b00000rRGfQAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;F&lt;/P&gt;&lt;P&gt;in tSetGlobalVar_1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000rRGh2AAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133012i4F0F948288F01FB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000rRGh2AAG.png" alt="0695b00000rRGh2AAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; Depending on the value of the Month column I will have different key value pair. For example:&lt;/P&gt;&lt;P&gt;For row8.Month = "JAN"  I will have Key: "file_name_JAN" and Value: &amp;lt;path&amp;gt;/JAN.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 3. subjob I would like to use this global variable to create appropriate file. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000rRGuVAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134887iCFBA4825588C790F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000rRGuVAAW.png" alt="0695b00000rRGuVAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I received a java.lang.NullPointerException in component tFileOutputDelimited_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why could the global variable not be used in the tFileOutputDelimited? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363366#M127259</guid>
      <dc:creator>AnnaSchmd</dc:creator>
      <dc:date>2024-11-15T21:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can not call a dynamic global variable in another subjob.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363367#M127260</link>
      <description>&lt;P&gt;The file name used in the tFileOutputDelimited_2 needs to be set before the flow starts - it can’t be part of the incoming flow. Consider using a tFlowToIterate component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 09:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363367#M127260</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2023-12-31T09:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can not call a dynamic global variable in another subjob.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363368#M127261</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You could use the globalMap to store the name (subjob 2) and retrieve the filename and setting one context with the value you get from the globalMap.get() ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-not-call-a-dynamic-global-variable-in-another-subjob/m-p/2363368#M127261</guid>
      <dc:creator>konvertilo</dc:creator>
      <dc:date>2024-01-11T14:18:33Z</dc:date>
    </item>
  </channel>
</rss>

