<?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: [resolved] Setting of Context Variable/Parameter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328356#M97643</link>
    <description>Thank you Pedro..I missed that..I worked now..</description>
    <pubDate>Fri, 27 Apr 2012 20:16:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-27T20:16:38Z</dc:date>
    <item>
      <title>[resolved] Setting of Context Variable/Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328353#M97640</link>
      <description>Hi 
&lt;BR /&gt; I have created a Context File with the following values. 
&lt;BR /&gt;host;localhost 
&lt;BR /&gt;port;9989 
&lt;BR /&gt;database;xyz 
&lt;BR /&gt;uname;root 
&lt;BR /&gt;pass;abc 
&lt;BR /&gt;dbid;1 
&lt;BR /&gt;start_date;2012-03-01 00:00:00 
&lt;BR /&gt;end_date;2012-03-27 00:00:00 
&lt;BR /&gt;Now i wanted to make use one of these variables(start_date) in a select Query. 
&lt;BR /&gt;My Query is 
&lt;BR /&gt;"select orders_id,date_purchased from xyz.orders 
&lt;BR /&gt;where date_purchased &amp;gt;" +context.start_date --&amp;gt; Is this the right way to specify the context variable? 
&lt;BR /&gt;My current flow is 
&lt;BR /&gt;tfileList -&amp;gt; tFileInputDelimited -&amp;gt; tContextLoad -&amp;gt; tMysqlInput -&amp;gt; tLogRow 
&lt;BR /&gt;I have set context.root under Directory in tFileList. 
&lt;BR /&gt;Once i run the job my current log shows as follows. 
&lt;BR /&gt; connecting to socket on port 3508 
&lt;BR /&gt; connected 
&lt;BR /&gt;tContextLoad_1 set key "host" with value "localhost" 
&lt;BR /&gt;tContextLoad_1 set key "port" with value "9989" 
&lt;BR /&gt;tContextLoad_1 set key "database" with value "xyz" 
&lt;BR /&gt;tContextLoad_1 set key "uname" with value "root" 
&lt;BR /&gt;tContextLoad_1 set key "pass" with value "abc" 
&lt;BR /&gt;tContextLoad_1 set key "dbid" with value "1" 
&lt;BR /&gt;tContextLoad_1 set key "start_date" with value "2012-03-01 00:00:00" 
&lt;BR /&gt;tContextLoad_1 set key "end_date" with value "2012-03-27 00:00:00" 
&lt;BR /&gt;Info: Parameter "root" has not been set by tContextLoad_1 ---&amp;gt;Something is wrong here.Why it is not setting? 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: java.lang.Error: Unresolved compilation problem: 
&lt;BR /&gt; start_date cannot be resolved or is not a field 
&lt;BR /&gt; at ereader_bi_etl.parameter_check_job_0_1.Parameter_check_job.tFileList_1Process(Parameter_check_job.java:841) 
&lt;BR /&gt; at ereader_bi_etl.parameter_check_job_0_1.Parameter_check_job.runJobInTOS(Parameter_check_job.java:1407) 
&lt;BR /&gt; at ereader_bi_etl.parameter_check_job_0_1.Parameter_check_job.main(Parameter_check_job.java:1271) 
&lt;BR /&gt;Caused by: java.lang.Error: Unresolved compilation problem: 
&lt;BR /&gt; start_date cannot be resolved or is not a field 
&lt;BR /&gt; disconnected 
&lt;BR /&gt; at ereader_bi_etl.parameter_check_job_0_1.Parameter_check_job.tMysqlInput_2Process(Parameter_check_job.java:1057) 
&lt;BR /&gt; at ereader_bi_etl.parameter_check_job_0_1.Parameter_check_job.tFileList_1Process(Parameter_check_job.java:804) 
&lt;BR /&gt; ... 2 more 
&lt;BR /&gt;Job Parameter_check_job ended at 18:25 26/04/2012.</description>
      <pubDate>Fri, 27 Apr 2012 02:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328353#M97640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T02:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Setting of Context Variable/Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328354#M97641</link>
      <description>can  someone please share some insight on  this.</description>
      <pubDate>Fri, 27 Apr 2012 05:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328354#M97641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T05:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Setting of Context Variable/Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328355#M97642</link>
      <description>Hi&lt;BR /&gt;The reason you get this error is because you forgot to add context variables.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 27 Apr 2012 06:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328355#M97642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T06:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Setting of Context Variable/Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328356#M97643</link>
      <description>Thank you Pedro..I missed that..I worked now..</description>
      <pubDate>Fri, 27 Apr 2012 20:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Setting-of-Context-Variable-Parameter/m-p/2328356#M97643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T20:16:38Z</dc:date>
    </item>
  </channel>
</rss>

