Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Apache Nifi - DateTime 0000-00-00 00:00:00 cannot be converted to TimeStamp

avatar
Contributor

I have a JSON data with DateTime as 0000-00-00 00:00:00 & it is not been accepted in SQL

Please Support to resolve this issue for me

J0sh_Apache Nifi.png

 

1 ACCEPTED SOLUTION

avatar
Contributor
3 REPLIES 3

avatar
Super Guru

@J0sh ,

 

You can add a ReplaceText doing a literal translation of 0000-00-00 00:00:00 with a valid date/time (e.g. 1970-01-01 00:00:00)

 

Cheers,

André

 

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
Contributor

I Still get the same error & my SQl.args.21.value has multiple wrong timeStamp values (eg: 2000-00-17)
I can avoid or remove that column from the flowfile

J0sh_0-1650643789246.png

 

avatar
Contributor