<?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: Type Mismatch:cannot convert from String to Date error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335370#M103940</link>
    <description>Thanks.&lt;BR /&gt;When i do that, i am getting this error ,&lt;BR /&gt;ORA-00984: column not allowed here&lt;BR /&gt;Is it becoz the column in not nullable in DB? &lt;BR /&gt;In the tmap out, i have the column type as Date and format as "yyyymmdd"&lt;BR /&gt;Am i still missing something?&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Manju</description>
    <pubDate>Tue, 01 May 2012 17:29:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-01T17:29:36Z</dc:date>
    <item>
      <title>Type Mismatch:cannot convert from String to Date error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335366#M103936</link>
      <description>Hi,&lt;BR /&gt;I am getting the following error for the tmap configuration attached. Can anyone please advice me on how to go about this?&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Manju</description>
      <pubDate>Tue, 01 May 2012 15:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335366#M103936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T15:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Type Mismatch:cannot convert from String to Date error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335367#M103937</link>
      <description>Manju, it is a bit tricky because the date has backslashes instead of forward slashes. This means you need to escape the backslashes when parsing the date.
&lt;BR /&gt;You can use:
&lt;BR /&gt;TalendDate.parseDate("MM\\dd\\yyyy",StringHandling.CHANGE(row1.Column4,"d","")) 
&lt;BR /&gt;and then format the output field as "MMddyyyy" in the tMap schema</description>
      <pubDate>Tue, 01 May 2012 16:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335367#M103937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Type Mismatch:cannot convert from String to Date error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335368#M103938</link>
      <description>Hi, 
&lt;BR /&gt;Thanks for your reply. There are no back slashes in the data. 
&lt;BR /&gt;The input data looks like this , ""d20120327"" 
&lt;BR /&gt;So inorder to remove the extra "" i am using this, (StringHandling.CHANGE(row1.Column4,"\"","") 
&lt;BR /&gt;and then i need to remove d , so i am using StringHandling.CHANGE(StringHandling.CHANGE(row1.Column4,"\"",""),"d","") 
&lt;BR /&gt;So the actual string which i need to convert is "20120327" 
&lt;BR /&gt; 
&lt;BR /&gt;In the expression editor , if i only provide 
&lt;BR /&gt;TalendDate.parseDate("YYYYMMDD",StringHandling.CHANGE(StringHandling.CHANGE(row1.Column4,"\"",""),"d","")) 
&lt;BR /&gt;i get ORA-00984: column not allowed here in the console. 
&lt;BR /&gt;if i give this 
&lt;BR /&gt;TalendDate.formatDate("yyyymmdd", TalendDate.parseDate("YYYYMMDD",StringHandling.CHANGE(StringHandling.CHANGE(row1.Column4,"\"",""),"d",""))) 
&lt;BR /&gt;i get the type mismatch error. 
&lt;BR /&gt; 
&lt;BR /&gt;Please guide me on this. 
&lt;BR /&gt; 
&lt;BR /&gt;Many Thanks, 
&lt;BR /&gt;Manju</description>
      <pubDate>Tue, 01 May 2012 17:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335368#M103938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T17:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Type Mismatch:cannot convert from String to Date error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335369#M103939</link>
      <description>You can get rid of the TalendDate.formatDate because formatDate returns a string.
&lt;BR /&gt;Enter this in the field
&lt;BR /&gt;TalendDate.parseDate("yyyyMMdd",StringHandling.CHANGE(StringHandling.CHANGE(row1.Column4,"d",""),"\"","")) 
&lt;BR /&gt;and do the formatting in the schema on the tMap out.</description>
      <pubDate>Tue, 01 May 2012 17:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335369#M103939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T17:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Type Mismatch:cannot convert from String to Date error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335370#M103940</link>
      <description>Thanks.&lt;BR /&gt;When i do that, i am getting this error ,&lt;BR /&gt;ORA-00984: column not allowed here&lt;BR /&gt;Is it becoz the column in not nullable in DB? &lt;BR /&gt;In the tmap out, i have the column type as Date and format as "yyyymmdd"&lt;BR /&gt;Am i still missing something?&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Manju</description>
      <pubDate>Tue, 01 May 2012 17:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335370#M103940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Type Mismatch:cannot convert from String to Date error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335371#M103941</link>
      <description>OK, well the good news is we have gotten past the Talend errors and have moved on to the database errors 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I found a relevant thread, but it looks like you need to format your date output to: "yyyy-MM-dd HH:mm:ss" 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCshhCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Always-get-ora-00984-error-when-executing/td-p/58924&lt;/A&gt; 
&lt;BR /&gt;Either that or keep the output data type a string and use the following format in the expression: 
&lt;BR /&gt;TalendDate.formatDate("MM/dd/yyyy",TalendDate.parseDate("yyyyMMdd",StringHandling.CHANGE(StringHandling.CHANGE(row1.Column4,"d",""),"\"","")) 
&lt;BR /&gt;Curious to see which solution works.</description>
      <pubDate>Tue, 01 May 2012 18:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-Mismatch-cannot-convert-from-String-to-Date-error/m-p/2335371#M103941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T18:07:25Z</dc:date>
    </item>
  </channel>
</rss>

