<?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: tMap with InnerJoin and Rejected Rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195969#M321</link>
    <description>The fist thing you have to do is to create in you flow for the orders a new column for the CustomerId.
&lt;BR /&gt;This can be done with simple regularly expressions. I suggest using the component tExtractRegexFields.
&lt;BR /&gt;This component should get as input the column OrderDesc. You have to create a new column called CustomerId and use this expression:
&lt;BR /&gt;
&lt;PRE&gt;"({1,4})"&lt;/PRE&gt;
&lt;BR /&gt;The group describes the content which the mentioned component uses for the next unused field --&amp;gt; you new CustomerId field.
&lt;BR /&gt;Now you have a lookup flow containing the CustomerId and you can use the possibilities of the tMap to join (and even to get the flow which does not fit to the join condition --&amp;gt; inner join reject)</description>
    <pubDate>Wed, 29 Jan 2014 22:01:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-29T22:01:16Z</dc:date>
    <item>
      <title>tMap with InnerJoin and Rejected Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195968#M320</link>
      <description>Hi,
&lt;BR /&gt;I am new to talend. I don't know how to get matched and unmatched rows from tmap with inner join.
&lt;BR /&gt;I have two csv files. one for customer details and another one for order details. eg:
&lt;BR /&gt;Customer.csv (Master file)
&lt;BR /&gt;CutomerId, CustomerName
&lt;BR /&gt;101, Raj
&lt;BR /&gt;1002, Kumar
&lt;BR /&gt;Order.csv (Lookup file, OrderDesc filed have CustomerId with other string)
&lt;BR /&gt;OrderId, OrderDesc
&lt;BR /&gt;201, Order Booking 101
&lt;BR /&gt;202, Order Delivered 102
&lt;BR /&gt;203, Order Booking 103
&lt;BR /&gt;204, Order Booking 104
&lt;BR /&gt;I don't know to get matched and unmatched CustomerId with order csv file in tmap joins. 
&lt;BR /&gt;Output Example:
&lt;BR /&gt;Matched.csv
&lt;BR /&gt;CutomerId, CustomerName, OrderId
&lt;BR /&gt;101, Raj, 201
&lt;BR /&gt;Unmatched.csv
&lt;BR /&gt;CutomerId, CustomerName
&lt;BR /&gt;1002, Kumar
&lt;BR /&gt;Please help me..
&lt;BR /&gt;Thanks
&lt;BR /&gt;Iyyappan S</description>
      <pubDate>Sat, 16 Nov 2024 11:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195968#M320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with InnerJoin and Rejected Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195969#M321</link>
      <description>The fist thing you have to do is to create in you flow for the orders a new column for the CustomerId.
&lt;BR /&gt;This can be done with simple regularly expressions. I suggest using the component tExtractRegexFields.
&lt;BR /&gt;This component should get as input the column OrderDesc. You have to create a new column called CustomerId and use this expression:
&lt;BR /&gt;
&lt;PRE&gt;"({1,4})"&lt;/PRE&gt;
&lt;BR /&gt;The group describes the content which the mentioned component uses for the next unused field --&amp;gt; you new CustomerId field.
&lt;BR /&gt;Now you have a lookup flow containing the CustomerId and you can use the possibilities of the tMap to join (and even to get the flow which does not fit to the join condition --&amp;gt; inner join reject)</description>
      <pubDate>Wed, 29 Jan 2014 22:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195969#M321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T22:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with InnerJoin and Rejected Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195970#M322</link>
      <description>Hi jlolling, 
&lt;BR /&gt;Thank you very much for you suggest me to use tExtractRegexFields component with the Regular Expression in my job. As per your suggestion, I have changed my job. It is working fine to get matched and unmatched records. But I have encountered a problem using the regular expression on customer id in two cases . 
&lt;BR /&gt;1. Customer id is alpha numeric value 
&lt;BR /&gt;2. In the future customer id length may be varying. 
&lt;BR /&gt;Yesterday I have got an idea for my job. But I don't know how to do with the talend. When I am trying to run the job it is show the below errors.Please suggest me is it possible in talend or not. 
&lt;BR /&gt;Unresolved compilation problems: 
&lt;BR /&gt; row2 cannot be resolved 
&lt;BR /&gt; row2 cannot be resolved to a variable 
&lt;BR /&gt;I have attached tMap mapping screenshot with expression builder. Is it possible in Expr.key to check master column value with current lookup column value. Is there any other way to get row2.OrderDesc value without using row2 variable name in Expr.Key field. 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you very much for your reply. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Iyyappan S 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Thu, 30 Jan 2014 07:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195970#M322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-30T07:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with InnerJoin and Rejected Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195971#M323</link>
      <description>You idea could work but not at this place! 
&lt;BR /&gt;The error happens because the expression you write cannot reference to the lookup flow. 
&lt;BR /&gt;Please keep in mind you are editing the right side of a Java assignment. 
&lt;BR /&gt;I would put a further tMap in the lookup flow (currently row2) and transform the field here.</description>
      <pubDate>Thu, 30 Jan 2014 22:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195971#M323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-30T22:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: tMap with InnerJoin and Rejected Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195972#M324</link>
      <description>Hi jlolling,
&lt;BR /&gt;Thank you very much. I have completed my job with tExtractRegexFields component.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Iyyappan S</description>
      <pubDate>Fri, 31 Jan 2014 05:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-with-InnerJoin-and-Rejected-Rows/m-p/2195972#M324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T05:32:04Z</dc:date>
    </item>
  </channel>
</rss>

