Apply buissness rule on incoming data-Check length and precision of columns
Hi,
I have a reqirement to apply buissness rules on incomind data,firstly i have to perform a null check which i have done using a conditional split.Secondly i have to check lenth and precision of some columns,if they exceed some specified limit reject them.I
need help to perform the second operation,Please advice
Thank you in advance
July 12th, 2012 2:46am
you can do this using the same conditional split.--------------------------------------------------------
Surender Singh Bhadauria
My Blog
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2012 2:49am
Can you please eloberate on this
July 12th, 2012 2:50am
Cast the numeric value to String then split the string on the basis of the location of decimal point and then check if it fits your requirement or not.
It will be a complex expression. another option is use a staging table and set it as the destination. in this staging table keep the constraints on your columns as per the business need. so now the records that dont meet your requirement will cause an error.
redirect these records through the error data row path.
refer my blog for redirecting error rows.
http://bimoron.blogspot.com --------------------------------------------------------
Surender Singh Bhadauria
My Blog
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2012 2:57am
Thank you so much Surender for the blog reference ... I think this is gonna work am working on it
July 12th, 2012 3:26am