<?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 java.sql.SQLSyntaxErrorException: ORA-00936: missing expression using tELTOracleOutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLSyntaxErrorException-ORA-00936-missing-expression/m-p/2358779#M123741</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to s&lt;SPAN&gt;et up a basic Oracle ELT job with a MERGE "Action on data" for update/insert. The specific error when I run my ELT job is "Exception in component tELTOracleOutput_1 (D_Lead_Inc_ELT)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;java.sql.SQLSyntaxErrorException: ORA-00936: missing expression"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Attached is my job. Any pointers here are greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 22:41:29 GMT</pubDate>
    <dc:creator>js_support</dc:creator>
    <dc:date>2018-05-31T22:41:29Z</dc:date>
    <item>
      <title>java.sql.SQLSyntaxErrorException: ORA-00936: missing expression using tELTOracleOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLSyntaxErrorException-ORA-00936-missing-expression/m-p/2358779#M123741</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to s&lt;SPAN&gt;et up a basic Oracle ELT job with a MERGE "Action on data" for update/insert. The specific error when I run my ELT job is "Exception in component tELTOracleOutput_1 (D_Lead_Inc_ELT)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;java.sql.SQLSyntaxErrorException: ORA-00936: missing expression"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Attached is my job. Any pointers here are greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 22:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLSyntaxErrorException-ORA-00936-missing-expression/m-p/2358779#M123741</guid>
      <dc:creator>js_support</dc:creator>
      <dc:date>2018-05-31T22:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLSyntaxErrorException: ORA-00936: missing expression using tELTOracleOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLSyntaxErrorException-ORA-00936-missing-expression/m-p/2358780#M123742</link>
      <description>&lt;P&gt;in Your original Job design - You are not define keys for Output table (on picture - modified, right LEAD_ID was missed):&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-06-01 at 10.21.09.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LynD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151064i4B8C2F98070B5F59/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LynD.png" alt="0683p000009LynD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in this case Talend generate construction like:&lt;/P&gt; 
&lt;PRE&gt;				String mergeQuery = "MERGE INTO "
						+ tableName_tELTOracleOutput_1 + " target" + " USING ("
						+ select_query_tELTOracleOutput_1 + ") source &lt;FONT color="#FF0000"&gt;ON (" +

						"" + ")";&lt;/FONT&gt;

				mergeQuery += " WHEN MATCHED THEN UPDATE SET target.LEAD_TYPE=source.LEAD_TYPE, SKIPPED for make it shorter ";

				mergeQuery += "WHERE " + "source.lead_id = target.lead_id";&lt;/PRE&gt; 
&lt;P&gt;this construction - illegal&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;when You define Key for source and target, it would be:&lt;/P&gt; 
&lt;PRE&gt;				String mergeQuery = "MERGE INTO "
						+ tableName_tELTOracleOutput_1 + " target" + " USING ("
						+ select_query_tELTOracleOutput_1 + ") source&lt;FONT color="#FF0000"&gt; ON (" +

						"target.LEAD_ID=source.LEAD_ID" + ")";&lt;/FONT&gt;

				mergeQuery += " WHEN MATCHED THEN UPDATE SET target.LEAD_TYPE=source.LEAD_TYPE,SKIPPED ";

				mergeQuery += "WHERE " + "source.lead_id = target.lead_id";&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 23:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLSyntaxErrorException-ORA-00936-missing-expression/m-p/2358780#M123742</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-05-31T23:24:59Z</dc:date>
    </item>
  </channel>
</rss>

