<?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: tFileOutput not recognizing global variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361815#M126084</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please read this &lt;A href="https://help.talend.com/r/en-US/8.0/component-code-generate-model/component-cogen-model" alt="https://help.talend.com/r/en-US/8.0/component-code-generate-model/component-cogen-model" target="_blank"&gt;documentation page to&lt;/A&gt; learn the code generated mode. In this case, tFileOutputDelimited is initialized before tJavaRow, so change the job design as below, tFileOutputDelimited will have the value of global variable. &lt;/P&gt;&lt;P&gt;tDBInput --&amp;gt; TWriteJSONField --&amp;gt; tJavaRow --&amp;gt;tFlowToIterate--iterate--tFixedFlowInput--main--&amp;gt; tFileOutputDelimited --&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2023 17:56:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-14T17:56:19Z</dc:date>
    <item>
      <title>tFileOutput not recognizing global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361814#M126083</link>
      <description>&lt;P&gt;I have a job that does this tDBInput --&amp;gt; TWriteJSONField --&amp;gt; tJavaRow --&amp;gt; tFileOutputDelimited --&amp;gt; tJavaRow.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I the first tJavaRow I set a global variable for the file name.  I also print out the variable so I can confirm it is correct.  &lt;/P&gt;&lt;P&gt;I also have a print line in the second tJavaRow that again prints out the variable so I can confirm it is still set.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;But when I use the global variable in the tFileOutputDelimited it comes across as null.  If I set the global variable to a default value that default value is used in the tFileOutputDelimited filename so I know it can read the variable.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Is there a reason the tFileOutputDelimited cannot see the global variable value when it is changed? &lt;/P&gt;&lt;P&gt;It may be a logic thing with Talend I am not understanding.  I asked Talend support and they sent me the canned response on context variables.  I tried using a context variable but got the same results.  &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361814#M126083</guid>
      <dc:creator>bob_lemley</dc:creator>
      <dc:date>2024-11-15T21:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutput not recognizing global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361815#M126084</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Please read this &lt;A href="https://help.talend.com/r/en-US/8.0/component-code-generate-model/component-cogen-model" alt="https://help.talend.com/r/en-US/8.0/component-code-generate-model/component-cogen-model" target="_blank"&gt;documentation page to&lt;/A&gt; learn the code generated mode. In this case, tFileOutputDelimited is initialized before tJavaRow, so change the job design as below, tFileOutputDelimited will have the value of global variable. &lt;/P&gt;&lt;P&gt;tDBInput --&amp;gt; TWriteJSONField --&amp;gt; tJavaRow --&amp;gt;tFlowToIterate--iterate--tFixedFlowInput--main--&amp;gt; tFileOutputDelimited --&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 17:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361815#M126084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-14T17:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutput not recognizing global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361816#M126085</link>
      <description>&lt;P&gt;Thank you, this worked for me.  And thanks for the link, it had some very useful information.  &lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-not-recognizing-global-variable/m-p/2361816#M126085</guid>
      <dc:creator>bob_lemley</dc:creator>
      <dc:date>2023-10-18T15:48:31Z</dc:date>
    </item>
  </channel>
</rss>

