<?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: context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305235#M76919</link>
    <description>Hi Chitra&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;An "Null Pointer Exception" will occur if your variable is null. Did you get this error in tMap component?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;You &lt;/FONT&gt;&lt;/FONT&gt;need to handle the null value, for example;&lt;BR /&gt;row1.name==null?value if it is null:do your further processing&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Thu, 05 Nov 2015 09:58:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-05T09:58:45Z</dc:date>
    <item>
      <title>context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305224#M76908</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am working on incremental Talend Job and looking for Incremental Extract logic. I did the following steps to achieve this (DB:- Oracle)&lt;BR /&gt;&lt;STRONG&gt;Step1.&lt;/STRONG&gt; Took Max (HEADER_ID) FROM&amp;nbsp;TARGET_TABLE. (header_id datatype is Number)&lt;BR /&gt;&lt;STRONG&gt;Step2.&lt;/STRONG&gt; Then I took tJavaRow component for to assign Step1 value context variable. My Context variable name is HEADER_ID (Datatype is BigDecimal) So the assignment syntax is as below&lt;BR /&gt;context.HEADER_ID=input_row.HEADER_ID;&lt;BR /&gt;&lt;STRONG&gt;Step3.&lt;/STRONG&gt; Next I have my source extract component and have below Query.&lt;BR /&gt;"select C1, C2, HEADER_ID FROM SOURCE_TABLE WHERE HEADER_ID &amp;gt; '+context.HEADER_ID+'"&lt;BR /&gt;Step4. Then i have tMap&lt;BR /&gt;Ste5.&amp;nbsp; Then&amp;nbsp;i have Target Objects&lt;BR /&gt;I am getting Error message on Step3. like '(java.sql.SQLSyntaxErrorException: ORA-01722: invalid number&amp;nbsp; ....)&lt;BR /&gt;It seems that there is datatype mismatch but I am not sure where to Fix.&lt;BR /&gt;Regards&lt;BR /&gt;Saket Krishna&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 23:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305224#M76908</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-10-26T23:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305225#M76909</link>
      <description>Hi Saket Krishna,
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;Can you please upload&amp;nbsp; screenshots of your job settings? It will be useful for us to find out the problem.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;Sabrina&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 27 Oct 2015 03:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305225#M76909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T03:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305226#M76910</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Uploaded screenshots of the job. For your information I created this job to look how we can perform incremental extract logic. So focus is only on extraction not on other logic.
&lt;BR /&gt;Regards
&lt;BR /&gt;Saket Krishna</description>
      <pubDate>Tue, 27 Oct 2015 18:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305226#M76910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T18:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305227#M76911</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Did you get chance to look on the screenshots attached.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Saket Krishna</description>
      <pubDate>Thu, 29 Oct 2015 17:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305227#M76911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-29T17:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305228#M76912</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Can you upload again the screenshots you wanted to show, please? For some reason it didn't make it to your post. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGmX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136947iA281C0E61D28C6D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGmX.png" alt="0683p000009MGmX.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 30 Oct 2015 08:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305228#M76912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-30T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305229#M76913</link>
      <description>Hi Sabrina, 
&lt;BR /&gt;Attaching screen .zip file again kindly have a look. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Saket Krishna</description>
      <pubDate>Fri, 30 Oct 2015 17:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305229#M76913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-30T17:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305230#M76914</link>
      <description>Please upload images (jpg, png o gif). &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't find screen.zip&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Alfonso Borre</description>
      <pubDate>Sat, 31 Oct 2015 10:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305230#M76914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-31T10:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305231#M76915</link>
      <description>Hi,
&lt;BR /&gt;Uploaded Screenshots in .png format.
&lt;BR /&gt;Regards
&lt;BR /&gt;Saket Krishna</description>
      <pubDate>Mon, 02 Nov 2015 21:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305231#M76915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-02T21:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305232#M76916</link>
      <description>&lt;FONT color="#1f497d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;Hi,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;I am not sure if there is any issue with the uploaded screenshots. Meanwhile I mentioning below the issue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="black"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;I have below&amp;nbsp;SQL in tOracleInput. Where Creation Date is Date column and context.CREATION_DT is&amp;nbsp;the context variable&amp;nbsp;defined as date datatype.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;[font=Times New Roman]
&lt;FONT color="black"&gt;&lt;FONT size="3"&gt;Select C1, C2, C3&amp;nbsp;FROM &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;&amp;lt;TABLE&amp;gt;&amp;nbsp;WHERE&amp;nbsp;&amp;lt;TABLE&amp;gt;.CREATION_DATE &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt; TO_DATE('"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;+&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;context.CREATION_DT&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;+&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;"','dd&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;MM&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;yyyy').&lt;/FONT&gt;&lt;/FONT&gt;[/font]
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="black"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;But above SQL is throwing error like&amp;nbsp; “ORA-01858 : a non-numeric character was found where numeric was expected"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="black"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;[size=3][font=Times New Roman]
&lt;FONT color="black"&gt;Saket Krishna&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;[/font][/size]</description>
      <pubDate>Tue, 03 Nov 2015 23:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305232#M76916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-03T23:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305233#M76917</link>
      <description>Hi,
&lt;BR /&gt;A column defined as String and am trying to handle null by adding String function like StringHandling(TRIM(Column).equals(""). But it is giving me "Null Pointer exception" error.
&lt;BR /&gt;Chitra.</description>
      <pubDate>Wed, 04 Nov 2015 11:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305233#M76917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-04T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305234#M76918</link>
      <description>Hi [size=3][font=Times New Roman]
&lt;FONT color="black"&gt;Saket Krishna,&lt;/FONT&gt;[/font][/size]
&lt;BR /&gt;[size=3][font=Times New Roman]
&lt;FONT color="black"&gt;Did you use the "date" (your context variable is a date) as part of a SQL statement in tOracleInput?&lt;/FONT&gt;[/font][/size]
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="3"&gt;&lt;FONT face="Times" new="" roman=""&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305234#M76918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T09:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305235#M76919</link>
      <description>Hi Chitra&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;An "Null Pointer Exception" will occur if your variable is null. Did you get this error in tMap component?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;You &lt;/FONT&gt;&lt;/FONT&gt;need to handle the null value, for example;&lt;BR /&gt;row1.name==null?value if it is null:do your further processing&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 05 Nov 2015 09:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305235#M76919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305236#M76920</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Yes My context variable is defined as Date datatype and the SQL in the tOracleInput is just as below in where condition.
&lt;BR /&gt;
&lt;FONT color="black"&gt;&lt;FONT size="3"&gt;Select C1, C2, C3&amp;nbsp;FROM &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;&amp;lt;TABLE&amp;gt;&amp;nbsp;WHERE&amp;nbsp;&amp;lt;TABLE&amp;gt;.CREATION_DATE &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt; TO_DATE('"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;+&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;context.CREATION_DT&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;+&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;"','dd&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;MM&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="black"&gt;&lt;FONT size="2"&gt;yyyy').&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;I was thinking if possible then&amp;nbsp;I can share my screen with you so that you can have a close look on the code. You can reach me on 
&lt;A href="mailto:skrishna@ctrworld.com" rel="nofollow noopener noreferrer"&gt;skrishna@ctrworld.com&lt;/A&gt;
&lt;BR /&gt;Thanks
&lt;BR /&gt;Saket Krishna</description>
      <pubDate>Thu, 05 Nov 2015 23:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305236#M76920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T23:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305237#M76921</link>
      <description>Hi Saket Krishna,
&lt;BR /&gt;
&lt;BR /&gt;The sql statement should be String not date.
&lt;BR /&gt;You can use the TalendDate.formatDate() method to format the data.
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 06 Nov 2015 03:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-variable/m-p/2305237#M76921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T03:24:12Z</dc:date>
    </item>
  </channel>
</rss>

