Derive Column - Truncation
Hi All, I am trying to use this expression in a derive column but its erroring out with truncation error. Any thoughts on this? Thanks in advance! @[User::FolderPath] + [Column 0] + (DT_STR,1,1252)MONTH(GETDATE()) + (DT_STR,1,1252)YEAR(GETDATE())
September 30th, 2011 11:19am

I think it's the (dt_str,1,1252) the month/year has a length greater than 1. If you only need the first char, the you need to add a substring. Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2011 11:23am

I think it's the (dt_str,1,1252) the month/year has a length greater than 1 Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com yes as Joost indicated increase the length from 1 when you are casting to string .Shailesh, Please mark the post as answered if it answers your question.
September 30th, 2011 11:28am

Try this: @[User::FolderPath] + [Column 0] + (DT_STR,2,1252)MONTH(GETDATE()) + (DT_STR,4,1252)YEAR(GETDATE())
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2011 11:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics