Date Format / Reformat to SQL ?

More
6 years 4 weeks ago #17082 by DeanCovey
I am trying to transform a date from JSON to SQL Date. Am I supposed to use date format or date reformat? No matter what I seem to do, the result gets set to null.
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 4 weeks ago #17083 by admin
Both of then should work

From the screenshot provided we cannot see the values passed into date format or date reformat functions.
It is difficult to understand what is going on:(

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
6 years 4 weeks ago #17084 by DeanCovey
I even tried taking the date parts and sending them along.




Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 4 weeks ago #17085 by admin
For loading data into the database you have to make sure that it is on YYYY-MM-DD HH:MM.SS.FFF format (without leading or trailing spaces)
Your transformation is far too complicated you can Just use After and Before transformations to get the data you need
After => Before=>Date format

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago - 6 years 3 weeks ago #17091 by DeanCovey
I started create a second transformation as you suggested. I noticed the values from the Json pairs don't go to the next transformation (transformation 4)









Last edit: 6 years 3 weeks ago by DeanCovey.

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago #17092 by DeanCovey
I even tried stripping away any formatting or lookups. Just passing the Json pieces to the next transformation. No luck.

Attachments:

Please Log in or Create an account to join the conversation.