<?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: Extract year from a date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357562#M122822</link>
    <description>Once again you need to protect yourself again null value for consultation.Date</description>
    <pubDate>Tue, 13 Feb 2018 18:34:02 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-02-13T18:34:02Z</dc:date>
    <item>
      <title>Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357552#M122812</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want extract a year from a date by using this function :&lt;/P&gt;&lt;P&gt;Integer.parseInt(TalendDate.formatDate("yyyy",consultation.Date))&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find a java error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please i request your help to resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357552#M122812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357553#M122813</link>
      <description>Hi,&lt;BR /&gt;What is the error message?&lt;BR /&gt;Is it compilation error or a runtime error?&lt;BR /&gt;What is the datatype for consultation.Date?</description>
      <pubDate>Tue, 13 Feb 2018 15:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357553#M122813</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T15:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357554#M122814</link>
      <description>&lt;P&gt;Thank you for this speed.&lt;/P&gt;&lt;P&gt;i receive this error message:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Exception in component tMap_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.lang.NullPointerException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at java.util.Calendar.setTime(Unknown Source)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at java.text.SimpleDateFormat.format(Unknown Source)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at java.text.SimpleDateFormat.format(Unknown Source)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at java.text.DateFormat.format(Unknown Source)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at routines.TalendDate.formatDate(TalendDate.java:135)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at testcubeolap.extract_year_0_1.extract_year.tFileInputExcel_1Process(extract_year.java:1206)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at testcubeolap.extract_year_0_1.extract_year.runJobInTOS(extract_year.java:1612)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at testcubeolap.extract_year_0_1.extract_year.main(extract_year.java:1469)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;my date format is&amp;nbsp;"dd-MM-yyyy"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you .&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357554#M122814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T16:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357555#M122815</link>
      <description>This error will arrive as soon as a record contains a null value for consultation.Date. Try to replace with the following:&lt;BR /&gt;consultation.Date != null ?&lt;BR /&gt;Integer.parseInt(TalendDate.formatDate("yyyy",consultation.Date)) : null</description>
      <pubDate>Tue, 13 Feb 2018 16:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357555#M122815</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T16:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357556#M122816</link>
      <description>&lt;P&gt;Thank you ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but here i receive this :&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Exception in component tMap_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.lang.NullPointerException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at testcubeolap.extract_year_0_1.extract_year.tFileInputExcel_1Process(extract_year.java:1208)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at testcubeolap.extract_year_0_1.extract_year.runJobInTOS(extract_year.java:1613)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at testcubeolap.extract_year_0_1.extract_year.main(extract_year.java:1470)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Furthermore, i'm sure that i don't have a null value on my source table.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;what i do now, i'm blocked here.&lt;/FONT&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;</description>
      <pubDate>Tue, 13 Feb 2018 16:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357556#M122816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T16:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357557#M122817</link>
      <description>Share your tMap, related expression and schema definition</description>
      <pubDate>Tue, 13 Feb 2018 16:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357557#M122817</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T16:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357558#M122818</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsBD"&gt;year.png&lt;/A&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357558#M122818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357559#M122819</link>
      <description>&lt;P&gt;i tried this function :&lt;/P&gt;&lt;P&gt;(consultation.Date != null) ?&lt;BR /&gt;TalendDate.getPartOfDate("yyyy",consultation.Date) : 100&lt;/P&gt;&lt;P&gt;and i find a lot of 0 and the last value is 100.&lt;/P&gt;&lt;P&gt;do you say something about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 17:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357559#M122819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357560#M122820</link>
      <description>I say try to replace "yyyy" by "YEAR".&lt;BR /&gt;If it doesn't work,share the whole job design.</description>
      <pubDate>Tue, 13 Feb 2018 18:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357560#M122820</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T18:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357561#M122821</link>
      <description>&lt;P&gt;&amp;nbsp;OK,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try with this function:&lt;/P&gt;&lt;P&gt;TalendDate.getPartOfDate("YEAR",consultation.Date)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i receive the good value but :&lt;/P&gt;&lt;P&gt;1- the last value is 0&lt;/P&gt;&lt;P&gt;2- i find error on red and i can visualise what are.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lrs3"&gt;ERROR.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsBN"&gt;JOB.png&lt;/A&gt;</description>
      <pubDate>Tue, 13 Feb 2018 18:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357561#M122821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T18:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357562#M122822</link>
      <description>Once again you need to protect yourself again null value for consultation.Date</description>
      <pubDate>Tue, 13 Feb 2018 18:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357562#M122822</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T18:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357563#M122823</link>
      <description>&lt;P&gt;Thank you for your generosity.&lt;/P&gt; 
&lt;P&gt;Please, now i need another help.&lt;/P&gt; 
&lt;P&gt;I have&amp;nbsp; 2 tables "consultation" et "beneficiaire" and i want count&amp;nbsp;the number of consultations per beneficiary.&lt;/P&gt; 
&lt;P&gt;Unfortunately, I do not know how to express this in talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for all.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsBS"&gt;NombreTotal.png&lt;/A&gt;</description>
      <pubDate>Tue, 13 Feb 2018 18:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357563#M122823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T18:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357564#M122824</link>
      <description>&lt;P&gt;Please what do you think about this :&lt;/P&gt;
&lt;P&gt;(consultation.idBeneficiaire == beneficiaire.idBeneficiaire ) ?&lt;BR /&gt;NombreTotal = NombreTotal+1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 18:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357564#M122824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357565#M122825</link>
      <description>The rule is to have 1 question per topic.&lt;BR /&gt;Please, accept the preceding then open a new one.</description>
      <pubDate>Tue, 13 Feb 2018 19:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357565#M122825</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T19:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract year from a date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357566#M122826</link>
      <description>The rule is to have 1 question per topic.&lt;BR /&gt;Please, accept the preceding then open a new one.</description>
      <pubDate>Tue, 13 Feb 2018 19:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-year-from-a-date/m-p/2357566#M122826</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T19:32:50Z</dc:date>
    </item>
  </channel>
</rss>

