<?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: Flag not updating based on condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254604#M37571</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Thanks your quick response&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have followed your job flow as expected I got an output for flag column coming to date&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.for new rec its start_date as 'sys date' works fine.&lt;/P&gt; 
&lt;P&gt;2.for the record which flag changed from "I" to "U" start_date becomes "null" end_date as "sysdate"&lt;/P&gt; 
&lt;P&gt;my requirement is that start_date should change based on the record coming data.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;I hope you can understand the logic which is missing here&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;have a look at below screenshot&lt;/P&gt; 
&lt;P&gt;I would like to achieve that&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Exp_scd2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuWx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148552iC4C13709405A58CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuWx.png" alt="0683p000009LuWx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2017 08:58:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-12T08:58:05Z</dc:date>
    <item>
      <title>Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254589#M37556</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;My requirement is to load data from excel&amp;nbsp;to oracle table with below conditions&lt;/P&gt; 
&lt;P&gt;Table columns are&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;cust_no,Name,Item,Orders,Location,Flag&lt;/P&gt; 
&lt;P&gt;cust_001, John, Watch,3, Mumbai, I--------------------&amp;gt;flag should change&lt;/P&gt; 
&lt;P&gt;1.If record already exists in table then FLAG column should change from "I" to "U"&lt;/P&gt; 
&lt;P&gt;Expected output:&lt;/P&gt; 
&lt;P&gt;cust_no,Name,Item,Orders,Location,Flag&lt;/P&gt; 
&lt;P&gt;cust_001, John, Watch,3, Mumbai, U----------------------&amp;gt;Already existing record on table&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;cust_002, Mathew, Bag, 3, Bangalore, I&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;cust_001, John, Watch,3, Mumbai, I--------------------&amp;gt;record from excel should insert like this&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;My job design looks like below screenshot&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UpFlag.PNG" style="width: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtiL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155849i2B39700CA8EA4722/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtiL.png" alt="0683p000009LtiL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JOb design.PNG" style="width: 894px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LutW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131171iD9D8E40C00287A6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LutW.png" alt="0683p000009LutW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="map.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luqs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130774i1635D3F156F5D809/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luqs.png" alt="0683p000009Luqs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is new records from excel inserting with flag "I" but &amp;nbsp;existing record flag is not Insert as the new record it just update the existing record Flag&lt;/P&gt; 
&lt;P&gt;1.InsertRec---&amp;gt;output--&amp;gt;action on table ---&amp;gt;Insert&lt;/P&gt; 
&lt;P&gt;2.Update --&amp;gt;output--&amp;gt;action on table --&amp;gt;Tried with Insert or update &amp;nbsp;,update or insert,update but it's not &amp;nbsp;inserting as new record&lt;/P&gt; 
&lt;P&gt;When I tried with Insert as action on table it is inserting the record which is already in table is as below&lt;/P&gt; 
&lt;P&gt;cust_no,Name,Item,Orders,Location,Flag&lt;/P&gt; 
&lt;P&gt;cust_001, John, Watch,3, Mumbai, U&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;when I work with start_date,end_date using SCD component it's giving me exactly what I'm&amp;nbsp;looking for.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you understand the problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As soon as possible please help me to resolve this!&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 07:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254589#M37556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254590#M37557</link>
      <description>&lt;P&gt;Hi Sara,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are setted the "Catch lookup inner join reject" option on both output flows?&lt;/P&gt;
&lt;P&gt;It should be "True" for Insertrec flow, and "False" to Update flow.&lt;/P&gt;
&lt;P&gt;Also, you can hard code the FLAG value for both flows, "I" for&amp;nbsp;&lt;SPAN&gt;Insertrec and "U" for Update.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 08:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254590#M37557</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-06T08:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254591#M37558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Like you said already I kept the same, please have a look at the below screenshot&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TRF.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lutl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133389i67FBDE6EA1B32FE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lutl.png" alt="0683p000009Lutl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;am I doing any mistake in the variables "updateFlag" and "InsertFlag"?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254591#M37558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T09:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254592#M37559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;If I understand your request well, you want to insert the source record also into db even though it already exists. There is a design issue in your job, the existing records always go to the update output on tMap and are updated in db.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254592#M37559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T09:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254593#M37560</link>
      <description>&lt;P&gt;Hi &amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;I just replaced variable and hard code as "i" &amp;nbsp;and "U"&lt;/P&gt; 
&lt;P&gt;and I got below output&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.PNG" style="width: 424px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lutv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135892iDC5C7240D0A4E345/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lutv.png" alt="0683p000009Lutv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I kept Action on table for both output is as "INSERT" only&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254593#M37560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T09:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254594#M37561</link>
      <description>&lt;P&gt;How is the "Catch lookup inner join" option for Insertrec flow?&lt;/P&gt; 
&lt;P&gt;Regarding the&amp;nbsp;&lt;SPAN&gt;variable "InsertFlag", as soon as the record is not found in db because it is a new one,&amp;nbsp;you should simply hard code the value ("I") in the output flow like this:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuqK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149433i357EFD166E0FBF49/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuqK.png" alt="0683p000009LuqK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Also think you can do the same for Update flow with the value "U", don't you?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254594#M37561</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-06T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254595#M37562</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Ya you got my requirement, but I don't know &amp;nbsp;what mistake I did&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254595#M37562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254596#M37563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Catch lookup inner join reject for "Insertrec" is true only&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254596#M37563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T09:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254597#M37564</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I got output like I shown the above screenshot.&lt;/P&gt;&lt;P&gt;I just want to make sure whether it works fine by adding date column.&lt;/P&gt;&lt;P&gt;Something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;start_date and End_date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will work on it and get back to you if I face any problem&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254597#M37564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254598#M37565</link>
      <description>&lt;P&gt;I've just read again you original post,&amp;nbsp;so I understand every record from Excel file must be inserted into the db with a value of "I" if it doesn't exists yet in the db, and a value of "U" if it exists.&lt;/P&gt; 
&lt;P&gt;IMHO, "Action on data" should always be set to "Insert" and you just need 1 output flow for both new and exisiting records.&lt;/P&gt; 
&lt;P&gt;For this, use an "Left Outer&amp;nbsp;Join" in tMap, then decide the value of the flag field depending on the join result (field will be null for new records, so you just have to replace the value by "I" in this case):&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuFN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144616i6C61D9A4D1EEFA0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuFN.png" alt="0683p000009LuFN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I've not tested but should works.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 09:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254598#M37565</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-06T09:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254599#M37566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@TRF,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my expected attached for your perusal, please have a look at it.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lutr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146182i0A6EB83140B3F311/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lutr.png" alt="0683p000009Lutr.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.PNG" style="width: 652px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LukW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147173iF374320D5CE02316/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LukW.png" alt="0683p000009LukW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Expected Output:&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="expected_op.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luso.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150028iADDC54C95CCA4F0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luso.png" alt="0683p000009Luso.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254599#M37566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T11:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254600#M37567</link>
      <description>&lt;P&gt;You want hour after the date?&lt;/P&gt;&lt;P&gt;Try to use TalendDate.formatDate("MM/dd/yyyy hh:mm:ss",TalendDate.getCurrentDate())&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254600#M37567</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-06T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254601#M37568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;NO, I don't want hour you can notice data In which 5 records already exists in a table with the start_date as 5/24/2017 and flag as "I" .(ie.for&lt;/P&gt; 
&lt;P&gt;cust_001,cust_002,cust_003,cust_004,cust_005)&lt;/P&gt; 
&lt;P&gt;In Excel Records presents are (cust_006,cust_007,cust_008,cust_009,cust_001)&lt;/P&gt; 
&lt;P&gt;so here cust_001 already exists in the table with start_date 5/24/2017.&lt;/P&gt; 
&lt;P&gt;what I expect is those records which are already in the table should update its flag from "I" into "U" and start_date&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.update its flag from "I" into "U" and&lt;/P&gt; 
&lt;P&gt;2.start_date is same as the date in the table ie(5/24/2017) and end_date becomes the system date.&lt;/P&gt; 
&lt;P&gt;3.record from Excel should insert as new record&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;that is (cust_001, john, HandBag, 2,&amp;nbsp;Chennai, I, current&amp;nbsp;date.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254601#M37568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T11:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254602#M37569</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to get the solution for my scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you understand the scenario!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 06:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254602#M37569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T06:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254603#M37570</link>
      <description>&lt;P&gt;Hi Sara&lt;BR /&gt;I think there is a design issue, should be:&lt;BR /&gt;tFileInputEexcel--main--tMap1(inner join)---update..tMysqlOutput (for upate)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lookup&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tMysqlOutput&lt;BR /&gt; |&lt;BR /&gt;onsubjobok&lt;BR /&gt; |&lt;BR /&gt;tFileInputExcel--main--tMap2----tMysqlOuput(insert)&lt;BR /&gt;&lt;BR /&gt;on tMap1: do an inner join to get only the records onlywhich already exists in target db, these records will be updated. &lt;BR /&gt;Set the flag column to "U"&lt;BR /&gt;Set the end date column as TalendDate.getCurrentDate()&lt;BR /&gt;&lt;BR /&gt;on tMap2: just add two new columns in the output table&lt;BR /&gt;flag: set it to "I"&lt;BR /&gt;start date: set it to TalendDate.getCurrentDate()&lt;BR /&gt;&lt;BR /&gt;Let me know if it works.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 07:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254603#M37570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254604#M37571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Thanks your quick response&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have followed your job flow as expected I got an output for flag column coming to date&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.for new rec its start_date as 'sys date' works fine.&lt;/P&gt; 
&lt;P&gt;2.for the record which flag changed from "I" to "U" start_date becomes "null" end_date as "sysdate"&lt;/P&gt; 
&lt;P&gt;my requirement is that start_date should change based on the record coming data.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;I hope you can understand the logic which is missing here&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;have a look at below screenshot&lt;/P&gt; 
&lt;P&gt;I would like to achieve that&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Exp_scd2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuWx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148552iC4C13709405A58CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuWx.png" alt="0683p000009LuWx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254604#M37571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T08:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254605#M37572</link>
      <description>2.for the record which flag changed from "I" to "U" start_date becomes "null" end_date as "sysdate" 
&lt;BR /&gt;-&amp;gt;I think the job need two changes: 
&lt;BR /&gt;1. Add a filter condition in the lookup table to query only the "I" records, eg: 
&lt;BR /&gt;"select * from tableName where flat='I'" 
&lt;BR /&gt;the start_date of output table on tMap1 maps the start_date column of the lookup table. 
&lt;BR /&gt;2. On the schema of tMysqlouput for update, set the two columns as key: cust_no and start_date 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jun 2017 09:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254605#M37572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254606#M37573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a million&lt;/P&gt; 
&lt;P&gt;Finally, I got my expected result.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result.PNG" style="width: 662px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lug8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155917iD1776C9289395FD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lug8.png" alt="0683p000009Lug8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you don't mind can you explain me in short what is the concept blind this, it would be helpful for me!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 09:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254606#M37573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T09:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254607#M37574</link>
      <description>Glad to see it helps you! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Hard to say what is the concept, It's just my experience.</description>
      <pubDate>Mon, 12 Jun 2017 10:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254607#M37574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T10:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Flag not updating based on condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254608#M37575</link>
      <description>&lt;P&gt;You are great!&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flag-not-updating-based-on-condition/m-p/2254608#M37575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T10:02:44Z</dc:date>
    </item>
  </channel>
</rss>

