Conversion error
Posted: Mon Jul 23, 2007 11:51 am
Hi All,
I am getting the following error while converting the date
Transformer,0: Conversion error calling conversion routine date_from_string data may have been lost.
The input date column is char(10) and the format is dd/mm/yyyy.
In the transformer I am validating the input date and converting the date into yyyymmdd .the output date datatype is integer.
In transformer iam using
sv1:IsValid("Date", StringToDate(OutDate.DATE,"%dd/%mm/%yyyy"))
sv2:If (sv1 = @FALSE Or IsNull(OutDate.DATE) )Then -1 Else DateToString(StringToDate(OutDate.DATE,"%dd/%mm/%yyyy"),"%yyyy%mm%dd").
This variable sv2 is mapped to output Date column.
I am unable to find out the error.Please suggest me to resolve the warnings.
I am getting the following error while converting the date
Transformer,0: Conversion error calling conversion routine date_from_string data may have been lost.
The input date column is char(10) and the format is dd/mm/yyyy.
In the transformer I am validating the input date and converting the date into yyyymmdd .the output date datatype is integer.
In transformer iam using
sv1:IsValid("Date", StringToDate(OutDate.DATE,"%dd/%mm/%yyyy"))
sv2:If (sv1 = @FALSE Or IsNull(OutDate.DATE) )Then -1 Else DateToString(StringToDate(OutDate.DATE,"%dd/%mm/%yyyy"),"%yyyy%mm%dd").
This variable sv2 is mapped to output Date column.
I am unable to find out the error.Please suggest me to resolve the warnings.