<?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 Context Variable As Source SQL filter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-As-Source-SQL-filter/m-p/2297576#M70137</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a context variable PERIOD_YEAR and when I am using this variable in my source input SQL as below.&lt;BR /&gt;"SELECT C1,C2 FROM &amp;lt;ABC&amp;gt; WHERE PERIOD_YEAR = '"+context.PERIOD_YEAR"'"&lt;BR /&gt;&lt;STRONG&gt;when I am executing my ETL job, 'tOracleInput' object is throwing error as below&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'java.sql.SQLSyntaxErrorExecution: ORA-01722: invalid number'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Please provide your input to resolve the issue.&lt;/STRONG&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Saket Krishna&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Oct 2015 00:12:59 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-10-03T00:12:59Z</dc:date>
    <item>
      <title>Context Variable As Source SQL filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-As-Source-SQL-filter/m-p/2297576#M70137</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a context variable PERIOD_YEAR and when I am using this variable in my source input SQL as below.&lt;BR /&gt;"SELECT C1,C2 FROM &amp;lt;ABC&amp;gt; WHERE PERIOD_YEAR = '"+context.PERIOD_YEAR"'"&lt;BR /&gt;&lt;STRONG&gt;when I am executing my ETL job, 'tOracleInput' object is throwing error as below&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'java.sql.SQLSyntaxErrorExecution: ORA-01722: invalid number'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Please provide your input to resolve the issue.&lt;/STRONG&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Saket Krishna&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2015 00:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Variable-As-Source-SQL-filter/m-p/2297576#M70137</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-10-03T00:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Context Variable As Source SQL filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-As-Source-SQL-filter/m-p/2297577#M70138</link>
      <description>You need to remove the single quotes from around the value held by the context variable. So instead of this....
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;"SELECT C1,C2 FROM &amp;lt;ABC&amp;gt; WHERE PERIOD_YEAR = '"+context.PERIOD_YEAR"'"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;....try this....
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;"SELECT C1,C2 FROM &amp;lt;ABC&amp;gt; WHERE PERIOD_YEAR = "+context.PERIOD_YEAR&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 03 Oct 2015 01:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Variable-As-Source-SQL-filter/m-p/2297577#M70138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-03T01:07:42Z</dc:date>
    </item>
  </channel>
</rss>

