<?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: my context variable is null in the tMysqlInput query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/my-context-variable-is-null-in-the-tMysqlInput-query/m-p/2317560#M87994</link>
    <description>&lt;P&gt;I think this because of the link between the components. could you please try removing iterate link from tInputFileDelimited_1 and connect javarow1 to java4 with onComponentOK link.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 07:20:07 GMT</pubDate>
    <dc:creator>Vishu1</dc:creator>
    <dc:date>2018-03-21T07:20:07Z</dc:date>
    <item>
      <title>my context variable is null in the tMysqlInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/my-context-variable-is-null-in-the-tMysqlInput-query/m-p/2317559#M87993</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt; 
&lt;P&gt;I have a problem with my job when I want to make a query with 2 context variables. I attached photos with my job and my components and when I run the job, it's giving me this error:&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Exception in component tMysqlInput_1 (facebook_amazon_us)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;java.lang.NullPointerException&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at mava.facebook_amazon_us_0_1.facebook_amazon_us.tWaitForFile_1Process(facebook_amazon_us.java:2058)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at mava.facebook_amazon_us_0_1.facebook_amazon_us.tMysqlConnection_1Process(facebook_amazon_us.java:798)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at mava.facebook_amazon_us_0_1.facebook_amazon_us.runJobInTOS(facebook_amazon_us.java:5363)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at mava.facebook_amazon_us_0_1.facebook_amazon_us.main(facebook_amazon_us.java:5085)&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;What I want to do in this job: I have a csv&amp;nbsp;file with multiple columns. The first one is called Reporting_Starts. I want to get the first registration from that column and put it in the query for a select like: SELECT * FROM my_table WHERE MONTH(my_table.Reporting_Starts)='"+context.month+"'. I cannot get why my tJava_4 sees the variables and tMysqlInput don't.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my tJava_4 I have the following code:&lt;/P&gt; 
&lt;PRE&gt;System.out.println(context.month);&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please let me know if you need any additional information about the job.&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/my-context-variable-is-null-in-the-tMysqlInput-query/m-p/2317559#M87993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: my context variable is null in the tMysqlInput query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/my-context-variable-is-null-in-the-tMysqlInput-query/m-p/2317560#M87994</link>
      <description>&lt;P&gt;I think this because of the link between the components. could you please try removing iterate link from tInputFileDelimited_1 and connect javarow1 to java4 with onComponentOK link.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 07:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/my-context-variable-is-null-in-the-tMysqlInput-query/m-p/2317560#M87994</guid>
      <dc:creator>Vishu1</dc:creator>
      <dc:date>2018-03-21T07:20:07Z</dc:date>
    </item>
  </channel>
</rss>

