<?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: incremental load tMap help in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371939#M134828</link>
    <description>&lt;P&gt;I have mentioned on the original post. The expression is as;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Expression&lt;/TD&gt; 
   &lt;TD&gt;Type&lt;/TD&gt; 
   &lt;TD&gt;Variable&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.updatedtimestamp )&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;format_date&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",TalendDate.getDate("yyyy-MM-dd HH:mm:ss"))&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;Current_date&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.diffDate(Var.Current_date,Var.format_date,"dd") == 126 ?true:false&lt;/TD&gt; 
   &lt;TD&gt;Boolean&lt;/TD&gt; 
   &lt;TD&gt;Out_Flag&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And screenshot;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Var.JPG" style="width: 464px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsOC.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139757iE9929F1A6CA94000/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsOC.jpg" alt="0683p000009LsOC.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2017 19:10:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-26T19:10:05Z</dc:date>
    <item>
      <title>incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371931#M134820</link>
      <description>&lt;P&gt;Hi, I am trying to do the incremental load of XML files. I do have date column on yyyy-MM-dd HH:mm:ss which is row2.updatedtimestamp. On first row I am trying to convert my string type data to date format. On the second row I am trying to get the current time.&lt;/P&gt; 
&lt;P&gt;On the third row I am doing the date differennce with the my date column (row2.updatedtimestamp) with flag.&lt;/P&gt; 
&lt;P&gt;But the problem is that I am keep getting error as;&lt;/P&gt; 
&lt;P&gt;Type mismatch: cannot convert from Date to String.&lt;/P&gt; 
&lt;P&gt;Could you please let me know what is wrong? I also have shared the screenshot of job&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Expression&lt;/TD&gt; 
   &lt;TD&gt;Type&lt;/TD&gt; 
   &lt;TD&gt;Variable&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.updatedtimestamp )&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;format_date&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",TalendDate.getDate("yyyy-MM-dd HH:mm:ss"))&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;Current_date&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.diffDate(Var.Current_date,Var.format_date,"dd") == 126 ?true:false&lt;/TD&gt; 
   &lt;TD&gt;Boolean&lt;/TD&gt; 
   &lt;TD&gt;Out_Flag&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&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="talend tmap date.JPG" style="width: 887px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsG9.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151180i4B44928D87D94366/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsG9.jpg" alt="0683p000009LsG9.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 02:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371931#M134820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T02:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371932#M134821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What's the complete code executed for the "diff_date" var ??&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS : You can activate the Code Mode to see exactly where is the problem !&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371932#M134821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371933#M134822</link>
      <description>&lt;P&gt;Sorry forgot to mention that.&amp;nbsp;That error is at&amp;nbsp;&amp;nbsp;&amp;nbsp;Var.format_date&amp;nbsp; as the code.&lt;/P&gt;&lt;P&gt;And the complete code to date_diff is as;&lt;/P&gt;&lt;P align="left"&gt;Proff_tmp.diff_date = TalendDate&lt;/P&gt;&lt;P align="left"&gt;.diffDate(Var.Current_date,&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Var.format_date, &lt;/FONT&gt;&lt;FONT color="#2a00ff" size="2"&gt;"dd"&lt;/FONT&gt;&lt;FONT size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 19:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371933#M134822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T19:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371934#M134823</link>
      <description>&lt;P&gt;Ok i get it !&lt;/P&gt;
&lt;P&gt;Change type of your updatetimestamp column to date type !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck&lt;/P&gt;
&lt;P&gt;SGV&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 08:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371934#M134823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-22T08:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371935#M134824</link>
      <description>&lt;P&gt;I tried that. It gives following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method parseDate(String, String) in the type TalendDate is not applicable for the arguments (String, Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 12:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371935#M134824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-22T12:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371936#M134825</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The method TalendDate.parseDate() needs String date not Date date. You can use TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("dd/MM/yyyy")) to achieve your goal.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 07:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371936#M134825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-25T07:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371937#M134826</link>
      <description>&lt;P&gt;Thanks for the input but that gets me bellow error;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The method formatDate(String, Date) in the type TalendDate is not applicable for the arguments (String)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 16:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371937#M134826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-25T16:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371938#M134827</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LMPhAAO"&gt;@brawal&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Thanks for the input but that gets me bellow error;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;EM&gt;The method formatDate(String, Date) in the type TalendDate is not applicable for the arguments (String)&lt;/EM&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Would you mind posting your current expression setting screenshot in tMap into forum?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 06:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371938#M134827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T06:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371939#M134828</link>
      <description>&lt;P&gt;I have mentioned on the original post. The expression is as;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Expression&lt;/TD&gt; 
   &lt;TD&gt;Type&lt;/TD&gt; 
   &lt;TD&gt;Variable&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.updatedtimestamp )&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;format_date&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",TalendDate.getDate("yyyy-MM-dd HH:mm:ss"))&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;Current_date&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;TalendDate.diffDate(Var.Current_date,Var.format_date,"dd") == 126 ?true:false&lt;/TD&gt; 
   &lt;TD&gt;Boolean&lt;/TD&gt; 
   &lt;TD&gt;Out_Flag&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And screenshot;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Var.JPG" style="width: 464px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsOC.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139757iE9929F1A6CA94000/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsOC.jpg" alt="0683p000009LsOC.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 19:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371939#M134828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T19:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371940#M134829</link>
      <description>&lt;P&gt;Please let me know if you are not clear.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 05:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371940#M134829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T05:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: incremental load tMap help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371941#M134830</link>
      <description>&lt;BR /&gt;Do This: 
&lt;BR /&gt; 
&lt;BR /&gt;- If row2.updatedtimestamp is of type Date then use below expression for format_date 
&lt;BR /&gt;TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",row2.updatedtimestamp) ) 
&lt;BR /&gt; 
&lt;BR /&gt;- If row2.updatedtimestamp is of type String with value like "23-05-2017" and you want a format like "2017-05-23 12:34:00" then use below expression for format_date 
&lt;BR /&gt;TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",TalendDate.parseDate("dd-MM-yyyy",row2.updatedtimestamp)) 
&lt;BR /&gt; 
&lt;BR /&gt;- Change the data type of variable format_date to String</description>
      <pubDate>Fri, 05 Jan 2018 11:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/incremental-load-tMap-help/m-p/2371941#M134830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T11:45:29Z</dc:date>
    </item>
  </channel>
</rss>

