<?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: ParseException: Unparseable date: &amp;quot;dd.MM.yyyy&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254826#M37719</link>
    <description>Does the&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco,"&gt;"Report fÃ¼r Benutzerdefiniert Von: "&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;portion of your string ever vary? &amp;nbsp;If not, you can try something like: 
&lt;BR /&gt; 
&lt;PRE&gt;output_row.Datum = TalendDate.parseDate("dd.MM.yyyy", input_row.Column0.substring(35,46));&lt;/PRE&gt; 
&lt;BR /&gt;Remember, you have full access to Java's String methods. &amp;nbsp;You don't need to rely solely on the ones Talend includes for you.</description>
    <pubDate>Wed, 12 Oct 2016 18:12:01 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2016-10-12T18:12:01Z</dc:date>
    <item>
      <title>ParseException: Unparseable date: "dd.MM.yyyy"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254823#M37716</link>
      <description>hey guys, 
&lt;BR /&gt;i'm using tos for DI 6.2.1 and i need to parse the first date from the following string in a talend open studio job: 
&lt;BR /&gt; 
&lt;PRE&gt;"Report fÃ¼r Benutzerdefiniert Von: 11.10.2016 01:00:00 Bis: 12.10.2016 01:00:00"&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;I build the following expression which is used in tjavarow component to set the date as global var for later usage: 
&lt;BR /&gt; 
&lt;PRE&gt;output_row.Datum = TalendDate.parseDate("dd.MM.yyyy",StringHandling.LEFT(StringHandling.FTRIM(StringHandling.EREPLACE(input_row.Column0,"Report fÃ¼r Benutzerdefiniert Von: ","")),11));&lt;BR /&gt;globalMap.put("datum",output_row.Datum);&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;if i run the job, i just get this error: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tJavaRow_2&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "11.10.2016"&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at routines.TalendDate.parseDate(TalendDate.java:895)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at routines.TalendDate.parseDate(TalendDate.java:839)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at ec_bi.xxxx_logintimes_csv_to_db_0_1.xxxx_LoginTImes_CSV_to_DB.tFileInputDelimited_3Process(xxxx_LoginTImes_CSV_to_DB.java:3184)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at ec_bi.xxxx_logintimes_csv_to_db_0_1.xxxx_LoginTImes_CSV_to_DB.tJavaRow_1_error(xxxx_LoginTImes_CSV_to_DB.java:412)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at ec_bi.xxxx_logintimes_csv_to_db_0_1.xxxx_LoginTImes_CSV_to_DB$TalendException.printStackTrace(xxxx_LoginTImes_CSV_to_DB.java:355)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at ec_bi.xxxx_logintimes_csv_to_db_0_1.xxxx_LoginTImes_CSV_to_DB.runJobInTOS(xxxx_LoginTImes_CSV_to_DB.java:10195)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at xxx.xxxxxx_csv_to_db_0_1.xxxx_LoginTImes_CSV_to_DB.main(xxxx_xxxxx_CSV_to_DB.java:9946)&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "11.10.2016"&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at java.text.DateFormat.parse(DateFormat.java:366)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;at routines.TalendDate.parseDate(TalendDate.java:881)&lt;BR /&gt; &amp;nbsp; &amp;nbsp;... 10 more&lt;/PRE&gt; 
&lt;BR /&gt;the inner expressions result seems to be correct and the reuslt is: "11.10.2016" &amp;nbsp;but whats wrong with&amp;nbsp; 
&lt;BR /&gt;TalendDate.parseDate("dd.MM.yyyy",...) ? 
&lt;BR /&gt;THANKFULLY 
&lt;BR /&gt;christian</description>
      <pubDate>Wed, 12 Oct 2016 06:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254823#M37716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T06:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: ParseException: Unparseable date: "dd.MM.yyyy"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254824#M37717</link>
      <description>UPDATE:&amp;nbsp; 
&lt;BR /&gt;if I run:&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;output_row.datum = TalendDate.parseDate("dd.MM.yyyy",StringHandling.TRIM(StringHandling.LEFT(StringHandling.EREPLACE(input_row.Column0,"Report fÃ¼r Benutzerdefiniert Von: ",""),10)));&lt;/PRE&gt; 
&lt;BR /&gt;i get&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "10.10.201"&lt;/PRE&gt; 
&lt;BR /&gt;what means that there seems to be a character which is not visible, how can i figure out what it is and how can i determine it easily ??</description>
      <pubDate>Wed, 12 Oct 2016 08:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254824#M37717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: ParseException: Unparseable date: "dd.MM.yyyy"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254825#M37718</link>
      <description>and ladies gentlemen, the solution or better the workaround is: 
&lt;BR /&gt; 
&lt;PRE&gt;output_row.datum = TalendDate.parseDate("dd.MM.yyyy",StringHandling.TRIM(StringHandling.RIGHT(StringHandling.LEFT(StringHandling.EREPLACE(input_row.Column0,"Report fÃ¼r Benutzerdefiniert Von: ",""),11),10)));&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;but is there a more&amp;nbsp;glaceful solution?</description>
      <pubDate>Wed, 12 Oct 2016 08:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254825#M37718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T08:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: ParseException: Unparseable date: "dd.MM.yyyy"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254826#M37719</link>
      <description>Does the&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco,"&gt;"Report fÃ¼r Benutzerdefiniert Von: "&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;portion of your string ever vary? &amp;nbsp;If not, you can try something like: 
&lt;BR /&gt; 
&lt;PRE&gt;output_row.Datum = TalendDate.parseDate("dd.MM.yyyy", input_row.Column0.substring(35,46));&lt;/PRE&gt; 
&lt;BR /&gt;Remember, you have full access to Java's String methods. &amp;nbsp;You don't need to rely solely on the ones Talend includes for you.</description>
      <pubDate>Wed, 12 Oct 2016 18:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ParseException-Unparseable-date-quot-dd-MM-yyyy-quot/m-p/2254826#M37719</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2016-10-12T18:12:01Z</dc:date>
    </item>
  </channel>
</rss>

