<?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: Talend Data Mapper and Date Handling (Comparison, Max, Min) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246337#M31889</link>
    <description>Hello Yiliu, 
&lt;BR /&gt;Thanks for the answer, but for me, it doesn't work : I have this kind of error : 
&lt;BR /&gt;14578: Error - The specified value cannot be converted to the specified type. (307) (INPUT) 
&lt;BR /&gt; Reason - Converting: String -&amp;gt; Number Category 
&lt;BR /&gt; Value: 2013-03-28 
&lt;BR /&gt; Map: /LBBW/Maps/Leg_Map.xml - Map Element: in$/ndm_message/message/deal/inst/Anonymous_choice/derivative/Anonymous_choice/swap/pay_side_list/leg/period_list/period/adj_start_date 
&lt;BR /&gt; Line: 647 column: 37 
&lt;BR /&gt;For the record, I use the Data Mapper provided with Talend Platform for Data Services with Big Data 5.4.1. 
&lt;BR /&gt;This solution would however not be very nice since I have to define the XML Schema using a provided XSD file, that I am not supposed to modify. 
&lt;BR /&gt;However, my source dates are already sorted, so maybe is there a way to select the first occurrence and the last one, instead of using the AgMaximum and AgMinimum functions ! I didn't yet find this kind of solution. 
&lt;BR /&gt; 
&lt;BR /&gt;Actually, I was trying to do it using Data Mapper but I figured, since I have to put the data in a DB afterwards, I could just send that as is into an tXMLMap, get a DI flow with one line for each date, then use a tAggregateRow, I would have the same result at the end. 
&lt;BR /&gt;However, if there is a solution with Data Mapper I would be glad to get it since it would look very nice to the customer ! 
&lt;BR /&gt;Thanks !</description>
    <pubDate>Fri, 25 Apr 2014 09:28:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-25T09:28:51Z</dc:date>
    <item>
      <title>Talend Data Mapper and Date Handling (Comparison, Max, Min)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246335#M31887</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to use the Talend Data Mapper at a client who wants to parse a loop date element and use the maximum and minimum.&lt;BR /&gt;I thought that simply using AgMaximum and AgMinimum functions could do it, but after getting errors and reading online help. &lt;BR /&gt;- It seems these functions take as argument (and return) only Decimals.&lt;BR /&gt;- Date/Time functions don't convert date to decimal/Integer or the other way around.&lt;BR /&gt;Now, I am blocked. &lt;BR /&gt;Would you then know a way to get the earliest and latest date in a looping date Element using the Talend Data Mapper ?&lt;BR /&gt;If not, if I must use an external XMLMap, would you recommend a way to pass simply the looping element out of the Mapper ?&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246335#M31887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Data Mapper and Date Handling (Comparison, Max, Min)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246336#M31888</link>
      <description>Hi mhassine, 
&lt;BR /&gt;Can you set the input date array as type "String"? 
&lt;BR /&gt;Per my test, AgMinimum/Max can be applied to String loop and can return a String as well. 
&lt;BR /&gt;Example: 
&lt;BR /&gt;Input--&amp;gt; 
&lt;BR /&gt;... 
&lt;BR /&gt;&amp;lt;STR_DATES&amp;gt; 
&lt;BR /&gt;&amp;lt;STR_DATE&amp;gt;20140301&amp;lt;/STR_DATE&amp;gt; 
&lt;BR /&gt;&amp;lt;STR_DATE&amp;gt;20130308&amp;lt;/STR_DATE&amp;gt; 
&lt;BR /&gt;&amp;lt;STR_DATE&amp;gt;20121201&amp;lt;/STR_DATE&amp;gt; 
&lt;BR /&gt;&amp;lt;STR_DATE&amp;gt;20140131&amp;lt;/STR_DATE&amp;gt; 
&lt;BR /&gt;&amp;lt;STR_DATE&amp;gt;20140401&amp;lt;/STR_DATE&amp;gt; 
&lt;BR /&gt;&amp;lt;/STR_DATES&amp;gt; 
&lt;BR /&gt;... 
&lt;BR /&gt;--&amp;gt;Map--&amp;gt; 
&lt;BR /&gt;/min_date = AgMinimun(/str_dates/str_date); 
&lt;BR /&gt;/max_date = AgMaximun(/str_dates/str_date); 
&lt;BR /&gt;--&amp;gt;Output 
&lt;BR /&gt;... 
&lt;BR /&gt;&amp;lt;MIN_DATE&amp;gt;20121201&amp;lt;/MIN_DATE&amp;gt; 
&lt;BR /&gt;&amp;lt;MAX_DATE&amp;gt;20140401&amp;lt;/MAX_DATE&amp;gt; 
&lt;BR /&gt;Rgds 
&lt;BR /&gt;Yi</description>
      <pubDate>Fri, 25 Apr 2014 07:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246336#M31888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-25T07:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Data Mapper and Date Handling (Comparison, Max, Min)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246337#M31889</link>
      <description>Hello Yiliu, 
&lt;BR /&gt;Thanks for the answer, but for me, it doesn't work : I have this kind of error : 
&lt;BR /&gt;14578: Error - The specified value cannot be converted to the specified type. (307) (INPUT) 
&lt;BR /&gt; Reason - Converting: String -&amp;gt; Number Category 
&lt;BR /&gt; Value: 2013-03-28 
&lt;BR /&gt; Map: /LBBW/Maps/Leg_Map.xml - Map Element: in$/ndm_message/message/deal/inst/Anonymous_choice/derivative/Anonymous_choice/swap/pay_side_list/leg/period_list/period/adj_start_date 
&lt;BR /&gt; Line: 647 column: 37 
&lt;BR /&gt;For the record, I use the Data Mapper provided with Talend Platform for Data Services with Big Data 5.4.1. 
&lt;BR /&gt;This solution would however not be very nice since I have to define the XML Schema using a provided XSD file, that I am not supposed to modify. 
&lt;BR /&gt;However, my source dates are already sorted, so maybe is there a way to select the first occurrence and the last one, instead of using the AgMaximum and AgMinimum functions ! I didn't yet find this kind of solution. 
&lt;BR /&gt; 
&lt;BR /&gt;Actually, I was trying to do it using Data Mapper but I figured, since I have to put the data in a DB afterwards, I could just send that as is into an tXMLMap, get a DI flow with one line for each date, then use a tAggregateRow, I would have the same result at the end. 
&lt;BR /&gt;However, if there is a solution with Data Mapper I would be glad to get it since it would look very nice to the customer ! 
&lt;BR /&gt;Thanks !</description>
      <pubDate>Fri, 25 Apr 2014 09:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Data-Mapper-and-Date-Handling-Comparison-Max-Min/m-p/2246337#M31889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-25T09:28:51Z</dc:date>
    </item>
  </channel>
</rss>

