- Posts: 568
- Thank you received: 72
Date Format
- bruce.gibbins
- Topic Author
- Offline
- Platinum Member
-
Less
More
5 years 3 months ago #18206
by bruce.gibbins
Date Format was created by bruce.gibbins
Can someone please help with this?
I have a standard CSV file with a column that contains a DATE formatted as YYYYMMDD
I have a transformation with a READER to the CSV file and a TRANSFORMER which is basically a 1:1 mapping of fields to a SQL Server table
The DATE column has been defined as 'date' and I have a REFORMAT action to use a format of YYYYMMDD
But during transformation I get the following error for each row. It is like the REFORMAT Action is not being called
I have a standard CSV file with a column that contains a DATE formatted as YYYYMMDD
I have a transformation with a READER to the CSV file and a TRANSFORMER which is basically a 1:1 mapping of fields to a SQL Server table
The DATE column has been defined as 'date' and I have a REFORMAT action to use a format of YYYYMMDD
But during transformation I get the following error for each row. It is like the REFORMAT Action is not being called
Code:
Record rejected Can't apply format YYYY-MM-DD HH:NN:SS.FFF for field Date(DATE) value 20101014
Please Log in or Create an account to join the conversation.
5 years 3 months ago #18208
by admin
Mike
ETL Architect
Replied by admin on topic Date Format
In order to load data into "DATE" field, it must be converted into YYYY-MM-DD HH:NN:SS.FFF format.
Although it can be done using Reformat Date Function the prefered way of doing it is to use "Date Format" transformation function.
www.etl-tools.com/wiki/aetle/transformation_functions/date?s []=date&s[]=fields
Same apply to time fields
Although it can be done using Reformat Date Function the prefered way of doing it is to use "Date Format" transformation function.
www.etl-tools.com/wiki/aetle/transformation_functions/date?s []=date&s[]=fields
Same apply to time fields
Mike
ETL Architect
Please Log in or Create an account to join the conversation.