<?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: tHMap ExtractFromDateTime function - the specified date/time does not match the specified pattern in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234140#M23603</link>
    <description>&lt;P&gt;I am currently concatenating Start Date and Start Time from input to StartTS in output in Talend Data Mapper but both the field I am taking as String.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How should I change the datatype in output JSON to Date ??&lt;/P&gt;
&lt;P&gt;Inputs needed please..&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 13:26:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-07T13:26:09Z</dc:date>
    <item>
      <title>tHMap ExtractFromDateTime function - the specified date/time does not match the specified pattern</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234136#M23599</link>
      <description>&lt;P&gt;6.4.1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a tHMap mapper map; that is throwing this error at runtime:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;20: Error - The specified date/time does not match the specified pattern. (336) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Map: /DIH_PENDINGBUSINESS/Maps/case_mapping.xml - Map Element: out$/Root/applicationReceivedDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Pattern - EEE MMM dd HH:mm:ss z yyyy&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Value: Fri Oct 20 05:00:00 UTC 2017&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The value above is being passed as a jSon String property.&lt;BR /&gt;I am not seeing anything wrong with the above pattern; and why it is not matching.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;When I run this in designtime; using the Mapper Test feature on the field; with the same input value; the design-time Test result for the field doesn't error; and returns back:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;2017-10-20 as expected.&lt;BR /&gt;&lt;BR /&gt;It is only failing at runtime with the above error.&lt;BR /&gt;&lt;BR /&gt;Any ideas on why it is failing at runtime but works in testmode at design time?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here are relevant screencaps from the mapper:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Input field is: hoReceiptDate; output field is applicationReceivedDate:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 763px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M063.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156899iA34F2C19A694249A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M063.jpg" alt="0683p000009M063.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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The input Json sample test value:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.JPG" style="width: 536px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M08X.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156214iC9BEC8CE5E5284A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M08X.jpg" alt="0683p000009M08X.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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;the output mapping Util logic:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2a.JPG" style="width: 391px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzy5.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131239iA7268D816C809D77/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzy5.jpg" alt="0683p000009Lzy5.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; 
&lt;P&gt;the output mapping Value logic:&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 501px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M06I.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156387i55AAD1C14106E773/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M06I.jpg" alt="0683p000009M06I.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; 
&lt;P&gt;the designtime TestRun results:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.JPG" style="width: 619px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M077.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150703iF3EE9083CB64610D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M077.jpg" alt="0683p000009M077.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 02:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234136#M23599</guid>
      <dc:creator>DaveTaylor</dc:creator>
      <dc:date>2018-10-02T02:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: tHMap ExtractFromDateTime function - the specified date/time does not match the specified pattern</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234137#M23600</link>
      <description>you can check the server configuration timezone and country.&lt;BR /&gt;fri Oct are in English&lt;BR /&gt;if server is in french it is waiting for Ven Oct</description>
      <pubDate>Tue, 02 Oct 2018 10:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234137#M23600</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-10-02T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: tHMap ExtractFromDateTime function - the specified date/time does not match the specified pattern</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234138#M23601</link>
      <description>&lt;P&gt;Thanks server is usa not french.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I said above;&amp;nbsp; the mapper 'test run output' works fine as expected at runtime for the same value that it is raising the error on at runtime (&lt;FONT color="#FF0000"&gt;&lt;EM&gt;The specified date/time does not match the specified pattern.&lt;/EM&gt;&lt;/FONT&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else seen this issue on Mapper converting a json string date in the format of '&lt;SPAN&gt;Fri Oct 20 05:00:00 UTC 2017' into a json string date in the format of '2017-10-20'?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 16:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234138#M23601</guid>
      <dc:creator>DaveTaylor</dc:creator>
      <dc:date>2018-10-02T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: tHMap ExtractFromDateTime function - the specified date/time does not match the specified pattern</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234139#M23602</link>
      <description>&lt;P&gt;I think&amp;nbsp; ultimately the mapper's&amp;nbsp;ParseDateTime&amp;nbsp;&lt;SPAN&gt;function doesn't appear to provide a parameter for you to provide the locale.&lt;BR /&gt;Because of that; the ExtractFromDateTime is not working on the ParseDateTime above.&lt;BR /&gt;&lt;BR /&gt;I changed my mapper expression to drop the use of the ParseDateTime&amp;nbsp;function; and instead call the TalendDate.parseDateLocale function as follows, and it works fine at both TestRun (designtime) and at runtime:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.JPG" style="width: 469px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LztA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156714iB854D66BA2F66789/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LztA.jpg" alt="0683p000009LztA.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234139#M23602</guid>
      <dc:creator>DaveTaylor</dc:creator>
      <dc:date>2018-10-02T18:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: tHMap ExtractFromDateTime function - the specified date/time does not match the specified pattern</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234140#M23603</link>
      <description>&lt;P&gt;I am currently concatenating Start Date and Start Time from input to StartTS in output in Talend Data Mapper but both the field I am taking as String.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How should I change the datatype in output JSON to Date ??&lt;/P&gt;
&lt;P&gt;Inputs needed please..&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHMap-ExtractFromDateTime-function-the-specified-date-time-does/m-p/2234140#M23603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T13:26:09Z</dc:date>
    </item>
  </channel>
</rss>

