Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

Explorer

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

Explorer
3 REPLIES 3

Master Collaborator

@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.

Explorer

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

 

Explorer
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.