<?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: Date Column null validation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220020#M14593</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLw1AAG"&gt;@ArvinRapt&lt;/A&gt;&amp;nbsp;: Thank you! your method is working fine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLxuAAG"&gt;@rchinta&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLomAAG"&gt;@SachinD&lt;/A&gt;&amp;nbsp;as my data type for both source and target is DATE data type so your &amp;nbsp;method is not working, maybe it works for string to string&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks to all.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 12:29:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-24T12:29:43Z</dc:date>
    <item>
      <title>Date Column null validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220015#M14588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone say how to do validation for the below requirement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Loading from excel to Oracle table.&lt;/P&gt;&lt;P&gt;In excel If date column is null or empty, I want to insert sys date&amp;nbsp;into the oracle table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel ----&amp;gt;tmap---&amp;gt; OracleOutput&lt;/P&gt;&lt;P&gt;in tmap source date column is Date type and Target date column is also Date type.&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>Wed, 24 May 2017 11:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220015#M14588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Column null validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220016#M14589</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.CREATION_DATE == null? TalendDate.getCurrentDate(): row1.CREATION_DATE&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code is working fine for date type to date type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But If I want to check empty it is not working:&lt;/P&gt;&lt;P&gt;row1.CREATION_DATE == " "? TalendDate.getCurrentDate(): row1.CREATION_DATE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to check for empty?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 11:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220016#M14589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T11:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date Column null validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220017#M14590</link>
      <description>&lt;P&gt;This is the simplest way to handle nulls assuming you are getting dates in the proper format.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input_row.dateColumn==null||input_row.dateColumn.toString().trim().length()==0?TalendDate.getCurrentDate():input_row.dateColumn&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 11:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220017#M14590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T11:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Column null validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220018#M14591</link>
      <description>&lt;P&gt;In tMap use like below. Try either in variables or in the output column derivation.&lt;/P&gt; 
&lt;P&gt;DateCol==null?TalendDate.parseDate("yyyy-MM-dd HH:mm:ss", TalendDate.getDate("yyyy-MM-dd HH:mm:ss"))&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;ateCol&lt;/P&gt; 
&lt;P&gt;OR&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;DateCol==""?TalendDate.parseDate("yyyy-MM-dd HH:mm:ss", TalendDate.getDate("yyyy-MM-dd HH:mm:ss"))&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;ateCol&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 12:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220018#M14591</guid>
      <dc:creator>brama</dc:creator>
      <dc:date>2017-05-24T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date Column null validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220019#M14592</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please add Variable in tMap&lt;/P&gt; 
&lt;P&gt;(row14.Date.equals("null") || row14.Date.equals(""))? TalendDate.getDate("yyyy-MM-dd") : row14.Date&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv6L.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140787i80BD192EB8B8B221/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv6L.png" alt="0683p000009Lv6L.png" /&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;</description>
      <pubDate>Wed, 24 May 2017 12:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220019#M14592</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2017-05-24T12:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Column null validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220020#M14593</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLw1AAG"&gt;@ArvinRapt&lt;/A&gt;&amp;nbsp;: Thank you! your method is working fine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLxuAAG"&gt;@rchinta&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLomAAG"&gt;@SachinD&lt;/A&gt;&amp;nbsp;as my data type for both source and target is DATE data type so your &amp;nbsp;method is not working, maybe it works for string to string&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks to all.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 12:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Column-null-validation/m-p/2220020#M14593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T12:29:43Z</dc:date>
    </item>
  </channel>
</rss>

