<?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: Column to Row Transformation -- Output data and log differs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263911#M43920</link>
    <description>as per the error, you need to increase the column length  for key column in database side.</description>
    <pubDate>Tue, 24 Mar 2020 03:43:43 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-03-24T03:43:43Z</dc:date>
    <item>
      <title>Column to Row Transformation -- Output data and log differs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263910#M43919</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I wanted to transform the table from the following source to the expected output below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Input&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input" style="width: 796px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132199i0D3E4B21A4CA16B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qN.png" alt="0683p000009M9qN.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Input&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Expected Output&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expected Output" style="width: 189px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148165iC49B2055FA891E19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qI.png" alt="0683p000009M9qI.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Expected Output&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think I'm getting quite close with the job design below, however there are two issues here.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job Design and Actual Result&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization -- Job Design and Actual Result" style="width: 818px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150395i7D3D631C129A0F93/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qS.png" alt="0683p000009M9qS.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization -- Job Design and Actual Result&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;・ &lt;STRONG&gt;tDBOutput Error&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;tDBOutput_1 Data truncation: Data too long for column 'key' at row 1&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The logged result matched the expected result, however, it seems not to be processed correctly when trying to export to the output database.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;・&lt;STRONG&gt;Improvement on "tMap_1"'s mapping&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;As you can see in the screenshot for &lt;STRONG&gt;"tMap_1"&lt;/STRONG&gt;, I have manually mapped the columns.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there ways to achieve it without manually mapping everything? Is there any expression that could replace manual mapping?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;=================================================================================================&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Component's Setting&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;1.1) tDBInput's Schema&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization --  DBInput's Schema" style="width: 521px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9oI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138988i4416F2DB8D349B7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9oI.png" alt="0683p000009M9oI.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization -- DBInput's Schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.2)&amp;nbsp; tMap_1&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization -- tMap1" style="width: 815px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136407i3BECC23EBB71D28F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qX.png" alt="0683p000009M9qX.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization -- tMap1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;tMap_1's log&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3672
[statistics] connected
&lt;FONT color="#800000"&gt;&lt;STRONG&gt;1|k1;v1;,k2;v2;,k3;v3;,k4;v4;,k5;v5;,k6;v6;,k7;v7&lt;/STRONG&gt;&lt;/FONT&gt;
[statistics] disconnected&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.3) tNormalization&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization" style="width: 861px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9aG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142820iE1EBC76100F9B253/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9aG.png" alt="0683p000009M9aG.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tNormalization's Log&lt;/P&gt; 
&lt;PRE&gt;[statistics] connected
&lt;FONT color="#800000"&gt;1|k1;v1;
1|k2;v2;
1|k3;v3;
1|k4;v4;
1|k5;v5;
1|k6;v6;
1|k7;v7&lt;/FONT&gt;
[statistics] disconnected&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.4) tMap_2&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization -- tMap2" style="width: 930px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134346i00729B4CF9CAE79F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qc.png" alt="0683p000009M9qc.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization -- tMap2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tMap_2's Log&lt;/P&gt; 
&lt;PRE&gt;.--+---+-----.&lt;BR /&gt;| tLogRow_3 |&lt;BR /&gt;&lt;FONT color="#800000"&gt;|=-+---+----=|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|id|key|value|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|=-+---+----=|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|1 |k1 |v1 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|2 |k2 |v2 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|3 |k3 |v3 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|4 |k4 |v4 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|5 |k5 |v5 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|6 |k6 |v6 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;|7 |k7 |v7 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;'--+---+-----'&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;1.5) tDBOutput&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization -- tDBOutput" style="width: 848px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9o8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156008iBB631D5544D4802F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9o8.png" alt="0683p000009M9o8.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization -- tDBOutput&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tDBOutput's Log&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;tDBOutput_1 Data truncation: Data too long for column 'key' at row 1&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;________________________________________________________________________________________________________________&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here again I would like to ask about the following two issues.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;・ &lt;STRONG&gt;tDBOutput Error&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;tDBOutput_1 Data truncation: Data too long for column 'key' at row 1&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The logged result matched the expected result, however, when it comes to tDBOutput, seems like all data were crammed into one line/row....&lt;/P&gt; 
&lt;P&gt;Is there any other components/settings needed when converting to output database?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;・&lt;STRONG&gt;Improvement on "tMap_1"'s mapping&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;As you can see in the screenshot for &lt;STRONG&gt;"tMap_1"&lt;/STRONG&gt;, I have manually mapped the columns.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tNormalization -- tMap1" style="width: 815px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9qX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136407i3BECC23EBB71D28F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9qX.png" alt="0683p000009M9qX.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tNormalization -- tMap1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Are there ways to achieve it without manually mapping everything? Is there any expression that could replace manual mapping?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3672
[statistics] connected
&lt;FONT color="#800000"&gt;&lt;STRONG&gt;1|k1;v1;,k2;v2;,k3;v3;,k4;v4;,k5;v5;,k6;v6;,k7;v7&lt;/STRONG&gt;&lt;/FONT&gt;
[statistics] disconnected&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;===================================&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263910#M43919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Column to Row Transformation -- Output data and log differs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263911#M43920</link>
      <description>as per the error, you need to increase the column length  for key column in database side.</description>
      <pubDate>Tue, 24 Mar 2020 03:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263911#M43920</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-24T03:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Column to Row Transformation -- Output data and log differs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263912#M43921</link>
      <description>Thank you!!&lt;BR /&gt;I found that column length for tMap_1&amp;amp;2 and tDBOutput was blank.&lt;BR /&gt;So when I add a value, it works now.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2020 03:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263912#M43921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T03:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Column to Row Transformation -- Output data and log differs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263913#M43922</link>
      <description>Great.</description>
      <pubDate>Tue, 24 Mar 2020 04:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-to-Row-Transformation-Output-data-and-log-differs/m-p/2263913#M43922</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-24T04:07:16Z</dc:date>
    </item>
  </channel>
</rss>

