<?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: tELTOracleOutput MERGE : option Use Merge Insert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201158#M3355</link>
    <description>I just encountered the same issue. Did you find a resolution?</description>
    <pubDate>Thu, 14 Apr 2016 15:18:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-14T15:18:15Z</dc:date>
    <item>
      <title>tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201154#M3351</link>
      <description>Context : very basic ELT mapping to merge from source table into target table.
&lt;BR /&gt;It looks like the tELTOracleOutput "Use Merge Insert" - that should allow to pick which target columns should actually be inserted - is not working properly.
&lt;BR /&gt;Out of many available schema column, I check those I do want to insert but the final generated statement yields :
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;MERGE INTO TARGET (...)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN NOT MATCHED THEN INSERT (COL1,COL2,,,,,,,,,,,,,,,,,,,,,,,,,,,,)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES (source.COL1,source.COL2,,,,,,,,,,,,,,,,,,,,,,,,,,,,) &lt;/PRE&gt;
&lt;BR /&gt;...which in turns leads at run-time to :
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tELTOracleOutput_1 java.sql.SQLSyntaxErrorException: ORA-00947: nombre de valeurs insuffisant&lt;/PRE&gt;
&lt;BR /&gt;Conversely, if I actually reduce my target schema to the insertable columns (which is extremely unpractical if I want to incrementally develop my merge mapping), it yields the proper MERGE statement.
&lt;BR /&gt;Is there something I haven't understood from the component's option ?
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 23 Feb 2016 11:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201154#M3351</guid>
      <dc:creator>XKB</dc:creator>
      <dc:date>2016-02-23T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201155#M3352</link>
      <description>Hi,&lt;BR /&gt;Have you already checked the component reference with related scenario?&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=tELTOracleOutput&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tELTOracleOutput&amp;amp;content-lang=en&lt;/A&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 29 Feb 2016 04:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201155#M3352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-29T04:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201156#M3353</link>
      <description>Hello Sabrina,
&lt;BR /&gt;Of course I started by reading the fine manual : it says "Select the check box corresponding to the name of the column you want to insert"
&lt;BR /&gt;...and it quite makes sense to me.
&lt;BR /&gt;It just doesn't work in the end because if I do not select all columns, it still generates a bunch of commas for those unselected ones.
&lt;BR /&gt;Only workaround : suppressing columns from target schema (which is pretty unpractical although it works)
&lt;BR /&gt;I would expect, whilst keeping all my target schema columns, that those unchecked from Insert list would just not appear in the insert part of the statement (isn't it what is implied by the gui ?).
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 29 Feb 2016 11:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201156#M3353</guid>
      <dc:creator>XKB</dc:creator>
      <dc:date>2016-02-29T11:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201157#M3354</link>
      <description>Hi,
&lt;BR /&gt;Little bump on this ; I'm still encountering the problem and generated ELT Oracle code is syntaxically incorrect (when insert check boxes aren't all selected)
&lt;BR /&gt;Haven't found any similar case in Jira.
&lt;BR /&gt;Should I open one ? (or first ask to support ?)
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 22 Mar 2016 14:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201157#M3354</guid>
      <dc:creator>XKB</dc:creator>
      <dc:date>2016-03-22T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201158#M3355</link>
      <description>I just encountered the same issue. Did you find a resolution?</description>
      <pubDate>Thu, 14 Apr 2016 15:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201158#M3355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-14T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201159#M3356</link>
      <description>I believe I found the issue in this block of code:&lt;BR /&gt;&lt;PRE&gt;		if(!useMergeInsert)&lt;BR /&gt;			useInsertWhere = false;&lt;BR /&gt;		if (useMergeInsert) {&lt;BR /&gt;		    boolean isfirstInsertWhere = true;&lt;BR /&gt;		    String keyColumnName=null;&lt;BR /&gt;			for(Map&amp;lt;String, String&amp;gt; keyColumn:insertColumns){&lt;BR /&gt;				if (isfirstInsertWhere) {&lt;BR /&gt;	 			 	isfirstInsertWhere = false;&lt;BR /&gt;				}else {&lt;BR /&gt;					mergeInsertName.append(",");&lt;BR /&gt;					mergeInsertValue.append(",");&lt;BR /&gt;					&lt;BR /&gt;				}&lt;BR /&gt;				if (keyColumn.get("INSERT").equals("true")) {&lt;BR /&gt;					keyColumnName=keyColumn.get("SCHEMA_COLUMN");&lt;BR /&gt;					keyColumnName = new Column(metadata.getColumn(keyColumnName)).getName();&lt;BR /&gt;					mergeInsertName.append(keyColumnName);&lt;BR /&gt;					mergeInsertValue.append("source." + keyColumnName);&lt;BR /&gt;				}				&lt;BR /&gt;			}&lt;BR /&gt;			%&amp;gt;&lt;BR /&gt;				mergeQuery += " WHEN NOT MATCHED THEN INSERT ( &amp;lt;%=mergeInsertName%&amp;gt;) VALUES ( &amp;lt;%=mergeInsertValue%&amp;gt;) ";&lt;BR /&gt;			&amp;lt;%&lt;BR /&gt;			}&lt;/PRE&gt;&lt;BR /&gt;Commas are being appended to the insert variables before checking whether or not INSERT is true.</description>
      <pubDate>Thu, 14 Apr 2016 15:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201159#M3356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-14T15:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: tELTOracleOutput MERGE : option Use Merge Insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201160#M3357</link>
      <description>Great job jesseg!</description>
      <pubDate>Fri, 15 Apr 2016 21:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tELTOracleOutput-MERGE-option-Use-Merge-Insert/m-p/2201160#M3357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-15T21:39:41Z</dc:date>
    </item>
  </channel>
</rss>

