on 08-24-2009 11:34 AM
Hi,
I need to check for the data length of the below fields in mapping. And if any of the field lengh does not match with the given length then I discard the data and trigger a mail
X1_LENGTH = 9
EMail_LENGTH = 100
PrjDesc_LENGTH = 50
Regards,
Varun
I had created a UDF to check the Length of the fields
int fieldlen = Integer.parseInt(fieldlength);
if ( field.length() > fieldlen )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can anyone please provide a UDF to Check the Length of the particular field. For eg: for field ABC the max length should be 10. otherwise discard
Regards,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
don't check it in a mapping - check it in an adapter module (or enhanced receiver determination)
and then you can easily route it to a mail receiver if not ok
if you do it in a mapping you cannot change the receiver without a BPM
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use following approach:
- Create UDF for length analysis and raise exception if length is not accurate Use lenght() method of string.
CheckLength(Field, Length)
{
If Field.lenght() >= Length then raise mapping exception
}
Use Alert to capture this and send mail.
- Use Enum while defining datatype to reject data at source (in adapter engine). Again use Alerts to send mail.
Regards,
Gourav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.