<?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>question Implicit conversion error in PutSQL date field in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Implicit-conversion-error-in-PutSQL-date-field/m-p/316854#M226924</link>
    <description>&lt;P&gt;I am using apache nifi to read csv file data and store the result in an Oracle Database.&lt;/P&gt;&lt;P&gt;The dataflow i used in nifi is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetFile&lt;/P&gt;&lt;P&gt;ConvertRecord (&lt;SPAN&gt;&amp;nbsp;here just to convert csv to Json)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ConvertJsonToSQL (just to convert Json to SQL INSERT query)&lt;/P&gt;&lt;P&gt;UpdateAttribute (which formats CreateDate using the following format ${sql.args.5.value:toDate("dd-MMM-yy"):format("dd-MMM-yy")}&lt;/P&gt;&lt;P&gt;PutSQL (to execute the insert statement created from previous flow)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 5 is where i encounter the error below and i've tried for a couple of resources online and it didn't help. I need some advice on how to properly configure and insert a data on a date column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR LOG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;due to java.sql.SQLDataException: The value of the sql.args.5.value is '20-May-21', which cannot be converted to a timestamp; routing to failure: java.sql.SQLDataException: The value of the sql.args.5.value is '20-May-21', which cannot be converted to a timestamp&lt;/P&gt;&lt;P&gt;DB Schema&lt;/P&gt;&lt;P&gt;CreateDate DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UpdateAttribute Outgoing&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modified Data&lt;/P&gt;&lt;P&gt;20-May-21&lt;/P&gt;&lt;P&gt;Previous data&lt;/P&gt;&lt;P&gt;20-MAY-21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sql.args.39.type&lt;/P&gt;&lt;P&gt;93&lt;/P&gt;&lt;P&gt;sql.args.39.value&lt;/P&gt;&lt;P&gt;20-May-21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried removing update attribute and directly change the sql statement property using insert statement. That also didn't work. Encountered the same exception mentioned above. Please suggest with the solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Insert into table(CreateDate,...)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Values ($CreateDate:toDate("dd-MMM-yy"):format("dd-MMM-yy")&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 06:35:55 GMT</pubDate>
    <dc:creator>Chakkara</dc:creator>
    <dc:date>2021-05-21T06:35:55Z</dc:date>
  </channel>
</rss>

