<?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: [resolved] Unpivot / Talend component question in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289561#M62933</link>
    <description>I gave up trying to do it with built-in components and ended up writing my own.  I've submitted it to the exchange in case anyone else needs it:&lt;BR /&gt;148</description>
    <pubDate>Fri, 17 Apr 2009 16:35:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-17T16:35:59Z</dc:date>
    <item>
      <title>[resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289557#M62929</link>
      <description>Hi,&lt;BR /&gt;I'm wanting to convert:&lt;BR /&gt;userid, usersignature, prop1, prop2, prop3,prop*&lt;BR /&gt;blah,20090303170000,val1, val2, val3, val*&lt;BR /&gt;into 2 files:&lt;BR /&gt;userid, usersignature&lt;BR /&gt;blah, 20090303170000&lt;BR /&gt;userid, propname, propvalue&lt;BR /&gt;blah, prop1, val1&lt;BR /&gt;blah, prop2, val2&lt;BR /&gt;blah, prop3, val3&lt;BR /&gt;...&lt;BR /&gt;I've searched these forms and found that there's a component that has been created to do this:&lt;BR /&gt;18764&lt;BR /&gt;I've only just worked out (as I'm writing this!) that java projects need java components, and perl projects need perl components - which is why that component doesn't appear within my Java project palette.  I don't really understand how these components work, so I don't know how easy it would be to make the above component available in Java.  Could someone please comment on this?&lt;BR /&gt;Alternatively, does anyone have any advice on how to get the result that I'm looking for above?  The input file will be text, and I'd like the output to be a bulk insert into an Oracle DB.&lt;BR /&gt;Any help would be appreciated</description>
      <pubDate>Sat, 16 Nov 2024 14:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289557#M62929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289558#M62930</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;userid, usersignature&lt;BR /&gt;blah, 20090303170000&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;It is very easy to get the first output file, I think you have got it.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;userid, propname, propvalue&lt;BR /&gt;blah, prop1, val1&lt;BR /&gt;blah, prop2, val2&lt;BR /&gt;blah, prop3, val3&lt;BR /&gt;...&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;See the related 5668, please try to reproduce the job.
&lt;BR /&gt;Feel free to ask for help on forum if you meet any questions!
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 04 Mar 2009 02:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289558#M62930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-04T02:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289559#M62931</link>
      <description>Thanks for the suggestion, however I'm having trouble getting it working. 
&lt;BR /&gt;For an input of: 
&lt;BR /&gt;col1, col2, col3, col4, col5 
&lt;BR /&gt;val11, val12, val13, val14, val15 
&lt;BR /&gt;val21, val22, val23, val24, val25 
&lt;BR /&gt;I'm getting an output of: 
&lt;BR /&gt;col1|val15 
&lt;BR /&gt;col2|val15 
&lt;BR /&gt;col3|val15 
&lt;BR /&gt;col4|val15 
&lt;BR /&gt;col5|val15 
&lt;BR /&gt;i.e. it's giving me the column names correctly, but it always returns the column value as whatever the last value of the 2nd line is. 
&lt;BR /&gt;Any idea what would cause that? I've compared the settings against the example over and over. 
&lt;BR /&gt;AND, it only ever returns the first line of values - nothing from the second line of values is ever output. 
&lt;BR /&gt;Cheers,</description>
      <pubDate>Fri, 06 Mar 2009 19:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289559#M62931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-06T19:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289560#M62932</link>
      <description>Thanks for the update on the other thread Shong, however that now only gives me the output of the first row of data - I now need to work out how to get it to return all rows in my file. 
&lt;BR /&gt;I've tried changing the tSampleRow_2 to return a greater sample range, but it still only returns the first row of data. I tried removing the sampleRow component altogether with the same result. I'm assuming this is because it's tied to only bringing back 1 row from the top half of the process (the headers). 
&lt;BR /&gt;So how do I get the top half to re-run for every row of the bottom half? 
&lt;BR /&gt;Cheers</description>
      <pubDate>Tue, 17 Mar 2009 11:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289560#M62932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-17T11:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289561#M62933</link>
      <description>I gave up trying to do it with built-in components and ended up writing my own.  I've submitted it to the exchange in case anyone else needs it:&lt;BR /&gt;148</description>
      <pubDate>Fri, 17 Apr 2009 16:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289561#M62933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-17T16:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289562#M62934</link>
      <description>Hello daztop 
&lt;BR /&gt;Thanks for your component!!! 
&lt;BR /&gt;Can you share us a use case here? 
&lt;BR /&gt;Thanks again. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 20 Apr 2009 08:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289562#M62934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289563#M62935</link>
      <description>The component seems to work very well, thank you for creating this! 
&lt;BR /&gt;However, it does not handle null values correctly. 
&lt;BR /&gt; 
&lt;PRE&gt;row2.pivot_key = field;&lt;BR /&gt;try {&lt;BR /&gt;	row2.pivot_value = row1.getClass()&lt;BR /&gt;			.getDeclaredField(field).get(row1)&lt;BR /&gt;			.toString();&lt;BR /&gt;} catch (Exception e) {&lt;BR /&gt;	// Can't happen - the field was there to have&lt;BR /&gt;	// created the array in the first place&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;The problem with this is that if the field contains a null value, it will throw a NullPointerException. Since this is caught by the catch-clause, pivot_value will just keep the value of the previous field, which is quite confusing. I'd suggest replacing the "Can't happen"-comment with "row2.pivot_value = null;".</description>
      <pubDate>Fri, 03 Jul 2009 11:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289563#M62935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-03T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289564#M62936</link>
      <description>Hi daztop,
&lt;BR /&gt;I have tested your Java component tUnpivotRow followiing the use case developped by plegall in 18764]. 
&lt;BR /&gt;The scenario works with the Perl component but with the Java component I get the following error message. I have tested the scenario a few times with different files or settings but the error is always the same. 
&lt;BR /&gt;I am not a Java specialist, could someone explain where the error comes from so I can fix it?
&lt;BR /&gt;Thanx</description>
      <pubDate>Thu, 30 Jul 2009 13:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289564#M62936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-30T13:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289565#M62937</link>
      <description>Has anyone got this component to work? From the description, this is exactly what I'm looking for, but I haven't got it to work. I've loaded the component (and surfaced it within the component pallet), but I'm still getting errors when attempting to run.
&lt;BR /&gt;Can anyone provide a quick how-to/tutorial (with screenshots) on the java-based tUnpivotRow component?</description>
      <pubDate>Mon, 30 Nov 2009 16:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289565#M62937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289566#M62938</link>
      <description>Sorry for not responding to your direct email sooner bbeliaso.
&lt;BR /&gt;The most basic example would be:
&lt;BR /&gt;tFileInputDelimited -&amp;gt; tUnpivotRow -&amp;gt; tFileOutputDelimited
&lt;BR /&gt;Connect the 3 components together in that order, and configure the file input and file output accordingly - ensure that you set up the schema for the file input and then cascade it through to the tUnpivotRow.
&lt;BR /&gt;Now click the tUnpivotRow component and view the component configuration tab.
&lt;BR /&gt;Under the Row Keys area, add all the columns that you want to remain fixed.
&lt;BR /&gt;e.g. when the input is:
&lt;BR /&gt;columnKey,property1,property2,property3,property4
&lt;BR /&gt;------------------------------------------------------------
&lt;BR /&gt;myKey,value1,value2,value3,value4
&lt;BR /&gt;And you want:
&lt;BR /&gt;columnkey,keyName,keyValue
&lt;BR /&gt;-----------------------------------
&lt;BR /&gt;myKey,property1,value1
&lt;BR /&gt;myKey,property2,value2
&lt;BR /&gt;myKey,property3,value3
&lt;BR /&gt;myKey,property4,value4
&lt;BR /&gt;Then your row key will just be columnkey - that's the only that you need to add. All other columns then become rows in your output file. You can add as many columns as you like to this, and they'll all be passed through for every line of output.
&lt;BR /&gt;The output schema for the tUnpivotRow component will then be equal to all of your row keys, plus the fixed pivot_key and pivot_value columns.
&lt;BR /&gt;Does that help you out?</description>
      <pubDate>Mon, 30 Nov 2009 21:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289566#M62938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T21:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289567#M62939</link>
      <description>Thanks for the reply Daztop.  Yes, I got this component working.  The part that threw me off was that I had to ad the Key column to the tUnpivotRow schema in order to make it work (even after defining it as an input for "Row keys").  See screen shot to see what my final solution was.  Once I got past this it was fine.&lt;BR /&gt;Thanks,</description>
      <pubDate>Mon, 30 Nov 2009 22:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289567#M62939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T22:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289568#M62940</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;The part that threw me off was that I had to ad the Key column to the tUnpivotRow schema in order to make it work (even after defining it as an input for "Row keys").&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;At the time of writing the component, there was no way to programatically change the output schema (I don't know if this has now changed). It's therefore unfortunately reliant on the user to set it up in both places.
&lt;BR /&gt;Glad you got it working.</description>
      <pubDate>Mon, 30 Nov 2009 23:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289568#M62940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T23:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289569#M62941</link>
      <description>Daztop...hats off to you . Thanks a lot for this component. This helped to resolve my  &lt;A href="http://www.talendforge.org/forum/viewtopic.php?id=13310/" target="_blank" rel="nofollow noopener noreferrer"&gt;problem&lt;/A&gt; .</description>
      <pubDate>Wed, 15 Dec 2010 15:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289569#M62941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-15T15:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289570#M62942</link>
      <description>The component does not work with Talend 4.0.2. Can it be fixed?</description>
      <pubDate>Mon, 21 Mar 2011 19:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289570#M62942</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-03-21T19:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289571#M62943</link>
      <description>Hi, I am able to download this tunpivot component,but it's not showing in pallete,so not able to use the component. Please Help me.</description>
      <pubDate>Tue, 22 Dec 2015 15:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289571#M62943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-22T15:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289572#M62944</link>
      <description>&lt;P&gt;Hi snehasisrath&lt;BR /&gt;I have tried to install this component to Talend Studio 6.0.1 and it works, please refers to this&lt;A title="How to install and update a custom component" href="https://help.talend.com/reader/2AWmA~w4VvlfP3JC7dTR2w/Kvx1JE1dQGJgGhfFoHK8xA" target="_self" rel="nofollow noopener noreferrer"&gt; article &lt;/A&gt;about how to install a custom component to studio.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 06:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289572#M62944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-23T06:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289573#M62945</link>
      <description>&lt;P&gt;Hey, I'd like to see the java's code. I can't find it with the 148, can you provide me the code or the link, please?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 12:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289573#M62945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-08T12:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unpivot / Talend component question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289574#M62946</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;
&lt;P&gt;can any one update the unpivot component to be compatible with talend open studio 7.1&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 04:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unpivot-Talend-component-question/m-p/2289574#M62946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-25T04:29:21Z</dc:date>
    </item>
  </channel>
</rss>

