<?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: Data Mapper - Distinct Child Element on flat file source not working? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317840#M88243</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you try with:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 630px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvj3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135580iFCE8942C27360A5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvj3.png" alt="0683p000009Lvj3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 07:26:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-20T07:26:09Z</dc:date>
    <item>
      <title>Data Mapper - Distinct Child Element on flat file source not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317838#M88241</link>
      <description>&lt;P&gt;Could someone help me figure out why the Distinct Child Element property on a Simple Loop is not working in this situation..&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a simple flat file that has IDs and Zipcodes.&lt;/P&gt; 
&lt;PRE&gt;id;zipcode
1;44100
1;44200
2;69002
2;56410
2;56100&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want the output to look like:&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;Root&amp;gt;
	&amp;lt;Record&amp;gt;
		&amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;
		&amp;lt;Zips&amp;gt;
			&amp;lt;Zipcode&amp;gt;44100&amp;lt;/Zipcode&amp;gt;
			&amp;lt;Zipcode&amp;gt;44200&amp;lt;/Zipcode&amp;gt;
		&amp;lt;/Zips&amp;gt;
	&amp;lt;/Record&amp;gt;
	&amp;lt;Record&amp;gt;
		&amp;lt;id&amp;gt;2&amp;lt;/id&amp;gt;
		&amp;lt;Zips&amp;gt;
			&amp;lt;Zipcode&amp;gt;69002&amp;lt;/Zipcode&amp;gt;
			&amp;lt;Zipcode&amp;gt;56410&amp;lt;/Zipcode&amp;gt;
			&amp;lt;Zipcode&amp;gt;56100&amp;lt;/Zipcode&amp;gt;
		&amp;lt;/Zips&amp;gt;
	&amp;lt;/Record&amp;gt;
&amp;lt;/Root&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;However when I use the Distinct Child Element and set it to "id", it only brings back the first ID, number 1. &amp;nbsp;ID #2 is ignored. &amp;nbsp;The result is:&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;Root&amp;gt;
  &amp;lt;Record&amp;gt;
    &amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;
    &amp;lt;Zips&amp;gt;
      &amp;lt;Zipcode&amp;gt;44100&amp;lt;/Zipcode&amp;gt;
      &amp;lt;Zipcode&amp;gt;44200&amp;lt;/Zipcode&amp;gt;
    &amp;lt;/Zips&amp;gt;
  &amp;lt;/Record&amp;gt;
&amp;lt;/Root&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;Screenshot of the mapping:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 950px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lul9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144181i044A9AD063A67E6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lul9.png" alt="0683p000009Lul9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is odd because this Distinct Child Element component works with an XML input, as can be seen in the &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqsxCAC" target="_self" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/quot-Group-By-quot-in-data-mapper/td-p/177449&lt;/A&gt; &amp;nbsp;But why did the user need to create a 2nd map just to filter&amp;nbsp;get the unique list and why couldn't they have done it in just 1 mapping? &amp;nbsp;Instead they had to create a 2nd mapping just for the Distinct Child Element setting.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 16:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317838#M88241</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-05-19T16:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper - Distinct Child Element on flat file source not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317839#M88242</link>
      <description>&lt;P&gt;Is it possible this could be a bug? &amp;nbsp;I didn't&amp;nbsp;find anything specifically related in the report issues. &lt;A href="https://jira.talendforge.org/browse/TDM-566?jql=text%20~%20%22distinct%20child%20element%22" target="_self" rel="nofollow noopener noreferrer"&gt;This ticket here&lt;/A&gt; might be but the thing I'm trying to do a distinct on is not looping itself, it is within a loop.&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2017 16:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317839#M88242</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-05-20T16:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper - Distinct Child Element on flat file source not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317840#M88243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you try with:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 630px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvj3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135580iFCE8942C27360A5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvj3.png" alt="0683p000009Lvj3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 07:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317840#M88243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-20T07:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper - Distinct Child Element on flat file source not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317841#M88244</link>
      <description>&lt;P&gt;That looks like it worked!! &amp;nbsp;How did you know to use "Flat:"? &amp;nbsp; Also do you know if I have to use something else if my input is a "Map" (dataflow from within Talend) instead of an input of a CSV? &amp;nbsp;I will be testing this out&amp;nbsp;with Map input soon.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 19:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317841#M88244</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-06-20T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper - Distinct Child Element on flat file source not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317842#M88245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that out here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://jira.talendforge.org/browse/TDM-4476" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDM-4476&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://jira.talendforge.org/browse/TDM-562" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDM-562&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you input is Map, yes you have to use prefix Map. When it is XML, you can omit it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 07:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317842#M88245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T07:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper - Distinct Child Element on flat file source not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317843#M88246</link>
      <description>&lt;P&gt;You are f*kin brilliant. &amp;nbsp;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 15:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-Distinct-Child-Element-on-flat-file-source-not/m-p/2317843#M88246</guid>
      <dc:creator>mayo</dc:creator>
      <dc:date>2017-06-21T15:43:25Z</dc:date>
    </item>
  </channel>
</rss>

