<?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: Unparseable date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359676#M124420</link>
    <description>&lt;P&gt;@Troy Guillen​&amp;nbsp;Are you referring to my Windows date and region settings? The short date does appear to be the same as the input data. &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfwiAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140978i6EEC29798B2FCE0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfwiAAA.png" alt="0695b00000odfwiAAA.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression was working before when the input date included hyphens instead of forward slashes.  It appears to match the syntax given inside of Talend. Is this what you mean by date parsing library?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfyFAAQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134567iBC52786EE7AF8341/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfyFAAQ.png" alt="0695b00000odfyFAAQ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There error message appears to be failing on the "7/1/2022" value in the first row of the Excel file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfyjAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152926i6545C97A3CB8E597/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfyjAAA.png" alt="0695b00000odfyjAAA.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 12:30:26 GMT</pubDate>
    <dc:creator>JMArtin1594762559</dc:creator>
    <dc:date>2023-09-15T12:30:26Z</dc:date>
    <item>
      <title>Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359672#M124416</link>
      <description>&lt;P&gt;I have seen several similar threads but not quite the same as my issue.&lt;/P&gt;&lt;P&gt;My job was working successfully until the source file string date format changed from yyyy-MM-dd to MM/dd/yyyy.&lt;/P&gt;&lt;P&gt;Previously, this tMap Var Expression was working: &lt;/P&gt;&lt;P&gt;TalendDate.parseDate("yyyy-MM-dd",row1.EffectiveDate )&lt;/P&gt;&lt;P&gt;Now, if I change it to &lt;/P&gt;&lt;P&gt;TalendDate.parseDate("MM/dd/yyyy",row1.EffectiveDate ) &lt;/P&gt;&lt;P&gt;I receive error: &lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (TEST_FILE)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;	at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1439)&lt;/P&gt;&lt;P&gt;	at java.text.DateFormat.parse(DateFormat.java:364)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:929)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:887)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.TEST_FILE.tFileList_1Process(TEST_FILE.java:1535)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.TEST_FILE.runJobInTOS(TEST_FILE.java:3480)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.TEST_FILE.main(TEST_FILE.java:3281)&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;But if I change it to &lt;/P&gt;&lt;P&gt;TalendDate.parseDate("MM -dd-yyyy",row1.EffectiveDate )&lt;/P&gt;&lt;P&gt;I receive error: &lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (TEST_FILE)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "9/14/23"&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:943)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:887)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.TEST_FILE.tFileList_1Process(TEST_FILE.java:1766)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.TEST_FILE.runJobInTOS(TEST_FILE.java:3356)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.TEST_FILE.main(TEST_FILE.java:3106)&lt;/P&gt;&lt;P&gt;Caused by: java.text.ParseException: Unparseable date: "9/14/23"&lt;/P&gt;&lt;P&gt;	at java.text.DateFormat.parse(DateFormat.java:366)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:929) &lt;/P&gt;&lt;P&gt;It seems Talend does not recognize the forward slash(/) but it does recognize the hypen (-).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odXWSAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139187iA9E73A3951F7C4D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odXWSAA2.png" alt="0695b00000odXWSAA2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359672#M124416</guid>
      <dc:creator>JMArtin1594762559</dc:creator>
      <dc:date>2024-11-15T21:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359673#M124417</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;"9/14/23" has the date pattern "MM/dd/yy", so change the expression to be:&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("MM/dd/yy",row1.EffectiveDate )&lt;/P&gt;&lt;P&gt;About NPE, go to check if there exists null value in the column EffectiveDate.&lt;/P&gt;&lt;P&gt;if you want the output to be null when the input data is null, change the expression to be:&lt;/P&gt;&lt;P&gt;row1.EffectiveDate==null?null:TalendDate.parseDate("MM/dd/yy",row1.EffectiveDate )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 02:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359673#M124417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-15T02:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359674#M124418</link>
      <description>&lt;P&gt;HY there i can see your post and i must say&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Locale Considerations: Be aware that date formats can vary by locale. If your date string includes month or day names, ensure that the locale settings are appropriate.&lt;/LI&gt;&lt;LI&gt;Date Parsing Library: Use a dedicated &lt;A href="https://www.militarystarcard.net/" alt="https://www.militarystarcard.net/" target="_blank"&gt;Pay Military Star Card&lt;/A&gt; date parsing library or function provided by your programming language or framework. These libraries are designed to handle various date formats and edge cases.&lt;/LI&gt;&lt;LI&gt;Input Data Validation: Validate the input data before parsing to ensure it conforms to the expected format. This can help prevent errors caused by invalid or unexpected date strings.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;TroyGuillen&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 05:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359674#M124418</guid>
      <dc:creator>RutMitchell</dc:creator>
      <dc:date>2023-09-15T05:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359675#M124419</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;The string format in the Excel file is not "9/14/23". It was actually "9/14/2023".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfvaAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153228i44116D04F5BE9D64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfvaAAA.png" alt="0695b00000odfvaAAA.png" /&gt;&lt;/span&gt;I had manually tried changing the format inside of Excel from General to Date.  That is what caused the year to truncate. Without altering the Excel file, the error message is:&lt;/P&gt;&lt;P&gt;xception in component tMap_1 (T555_TN_FMAP_ATTEST_FILE)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "7/1/2022"&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:943)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:887)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.T555_TN_FMAP_ATTEST_FILE.tFileList_1Process(T555_TN_FMAP_ATTEST_FILE.java:1516)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.T555_TN_FMAP_ATTEST_FILE.runJobInTOS(T555_TN_FMAP_ATTEST_FILE.java:3213)&lt;/P&gt;&lt;P&gt;	at tn_wi.t555_tn_fmap_attest_file_0_1.T555_TN_FMAP_ATTEST_FILE.main(T555_TN_FMAP_ATTEST_FILE.java:3014)&lt;/P&gt;&lt;P&gt;Caused by: java.text.ParseException: Unparseable date: "7/1/2022"&lt;/P&gt;&lt;P&gt;	at java.text.DateFormat.parse(DateFormat.java:366)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:929)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 12:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359675#M124419</guid>
      <dc:creator>JMArtin1594762559</dc:creator>
      <dc:date>2023-09-15T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359676#M124420</link>
      <description>&lt;P&gt;@Troy Guillen​&amp;nbsp;Are you referring to my Windows date and region settings? The short date does appear to be the same as the input data. &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfwiAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140978i6EEC29798B2FCE0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfwiAAA.png" alt="0695b00000odfwiAAA.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression was working before when the input date included hyphens instead of forward slashes.  It appears to match the syntax given inside of Talend. Is this what you mean by date parsing library?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfyFAAQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134567iBC52786EE7AF8341/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfyFAAQ.png" alt="0695b00000odfyFAAQ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There error message appears to be failing on the "7/1/2022" value in the first row of the Excel file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odfyjAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152926i6545C97A3CB8E597/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odfyjAAA.png" alt="0695b00000odfyjAAA.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 12:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359676#M124420</guid>
      <dc:creator>JMArtin1594762559</dc:creator>
      <dc:date>2023-09-15T12:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359677#M124421</link>
      <description>&lt;P&gt;Hi, to resolve problems where dates can change or a given column date format can be different per row, I’ve previously created a Java helper routine that you can pass in the textual value and a delimited string of date formats to try, in order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;ConvertDate(row1.EffectiveDate,”dd/mm/yyyy;yyyy/mm/dd”)&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2023 11:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359677#M124421</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2023-09-17T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359678#M124422</link>
      <description>&lt;P&gt;@Jason MArtin&amp;nbsp;print the data on the console to see what's the data format is read from Excel file before tMap, and use the right format to parse the string date.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 05:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359678#M124422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-18T05:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359679#M124423</link>
      <description>&lt;P&gt;Hello JMArtin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if your date data does not contain leading zeros for month (and/or day), you might try "M/d/yyyy".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 06:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date/m-p/2359679#M124423</guid>
      <dc:creator>ThWabi</dc:creator>
      <dc:date>2023-09-18T06:27:34Z</dc:date>
    </item>
  </channel>
</rss>

