<?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: tUniqRow not working with tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236228#M25012</link>
    <description>When you do colA + "\n" + colB in tMap, you don't receive 2 rows in tUniq, you receive 1 row with a linefeed in the middle.
&lt;BR /&gt;Try to add a tFileOutputDelimited after the tMap. Then add a subjob starting with a tFileInputDelimited + tUniqRow + what you want. This subjob must be connected to the previous one by a onSubjobOk trigger. As rows are written to a file, when you read the file again you will get 2 rows as expected.</description>
    <pubDate>Thu, 23 Aug 2018 23:05:40 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-08-23T23:05:40Z</dc:date>
    <item>
      <title>tUniqRow not working with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236227#M25011</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Created a test flow with tFileInputDelimited --&amp;gt; tUniqRow --&amp;gt; tFileOutputDelimited/tLogRow and everything works perfectly.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I slightly modified the flow to obtain the information from the original source, tUniqRow does not seem to work. Here's my&amp;nbsp;required flow:&lt;/P&gt; 
&lt;P&gt;tFileInputJSON --&amp;gt; tExtractJSONFields --&amp;gt; tMap --&amp;gt; tUniqRow --&amp;gt; tFileOutputDelimited/tLogRow.&amp;nbsp;This doesn't seem to give me the distinct values.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My configuration of tFileInputJSON, tExtractJSONFields, tMap and tFileOutputDelimited/tLogRow are correct since the data is being parsed and mapped correctly. I just can't seem to do the distinct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;From the JSON, I parsed "baseAsset" and "quoteAsset" in two separate&amp;nbsp;columns, which I then combined using tMap. From the tMap combined values, I need to do a distinct but it's not working.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example, parsing the JSON gave me the values&lt;/P&gt; 
&lt;P&gt;EUR, PES, DIN in column A&lt;/P&gt; 
&lt;P&gt;USD, USD, EUR in column B&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Using tMap, I put all values in column A - EUR, PES, DIN, USD, USD, EUR&lt;/P&gt; 
&lt;P&gt;Now I need to do a distinct and get the values EUR, PES, DIN, USD&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I'm attaching the screenshots of tExtractJSONFields, tMap and tUniqRow. Any help would be greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236227#M25011</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2018-08-23T22:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: tUniqRow not working with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236228#M25012</link>
      <description>When you do colA + "\n" + colB in tMap, you don't receive 2 rows in tUniq, you receive 1 row with a linefeed in the middle.
&lt;BR /&gt;Try to add a tFileOutputDelimited after the tMap. Then add a subjob starting with a tFileInputDelimited + tUniqRow + what you want. This subjob must be connected to the previous one by a onSubjobOk trigger. As rows are written to a file, when you read the file again you will get 2 rows as expected.</description>
      <pubDate>Thu, 23 Aug 2018 23:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236228#M25012</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-23T23:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: tUniqRow not working with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236229#M25013</link>
      <description>&lt;P&gt;Thank you, TRF, for getting back to me. I think I've found another solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In tMap, instead of combining the columns using "\n", I used "Join table output2 linked with output1". Now, if I go through the flow tExtractJSONFields --&amp;gt; tMap --&amp;gt; tUniqueRow --&amp;gt; any output, it gives the desired results.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtZz"&gt;tMap join outputs.jpg&lt;/A&gt;</description>
      <pubDate>Fri, 24 Aug 2018 00:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tUniqRow-not-working-with-tMap/m-p/2236229#M25013</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2018-08-24T00:29:08Z</dc:date>
    </item>
  </channel>
</rss>

