2

From This Answer

Same issue but no luck in my case i'm using ConvertJsonToSql---->(Relationship--SQL,Original)---->Update Attribute(Poperty from your answer)------>PutSql. java.sql.SQLDataException :The value of the sql.args.28.value is Mon Oct 09 23:55:23 which cannot be converted to a timestamp.

  1. In Database date is storing in mysql datetime format 2017-09-11 14:26:13.
  2. NiFi flow file from Capture Change Mysql is showing like Mon Sep 11 19:56:13 IST 2017.
  3. JoltTransform Json also same and while converting form json to sql flow file attribute value of sql.args.27.type is 93 and sql.args.27.value is Mon Oct 09 23:38:55.

any suggestions are welcome and appreciated.

rakesh
  • 85
  • 12

1 Answers1

4

I got answer for this In updateattribute processor property: sql.args.27.value and value :${sql.args.27.value:toDate("EEE MMM dd HH:mm:ss z yyyy"):toNumber():format("yyyy-MM-dd HH:mm:ss.SSS")}

rakesh
  • 85
  • 12