Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I use this job to import data from a csv file into a bulk mssql component, I got an error on a date field in the table because the date is less than 1-1-1753, so I used an output file to catch the rejected lines but it doesn't catch any erroneous date.
any solution?
Hi,
Please use the below filter expression in tmap to filter older dates.
TalendDate.compareDate(row1.data,TalendDate.parseDate("dd-MM-yyyy","01-01-1753")) == 1
I was able to segregate the data using this condition.
If the update has helped you, could you please mark the topic as solution provided?
Warm Regards,
Nikhil Thampi
THANK YOU SO MUCH FOR YOUR ANSWER,
but actually I want to reject dates before 1-1-1753,I don t want to keep them so I used the output file to reject them.
but I got error and the file doesn t catch errorenous rows.
even I use Tfilter it generates errors.
Hi,
Please use the below filter expression in tmap to filter older dates.
TalendDate.compareDate(row1.data,TalendDate.parseDate("dd-MM-yyyy","01-01-1753")) == 1
I was able to segregate the data using this condition.
If the update has helped you, could you please mark the topic as solution provided?
Warm Regards,
Nikhil Thampi
Happy to help you.
Enjoy programming in Talend 🙂
Warm Regards,
Nikhil Thampi