Register or Login to Your Account
Does anyone here worked on flat file validations?
My requirement is to validate incoming Flat file and check for any special characters, the names in file should only be in alphanumeric, email id's should have @ etc..
Really appreciate if anyone can provide use cases or examples for code line validator ?
You can validate the incoming flat files.
Parse the flat file and convert to document type by using pub.flatFile:convertToValues.
And then after use regular expressions to validate the fields like email (should have correct formate)in your flat file.
Use Exit step to through an error like "Invalid email".
Apart from Heartlockers specifications you can also try using custom transformers i.e write your seperate service for validations with helpers from Java or wMFlatFile package for the field called Emailid..then you can use the custom transformer and within the custom transformer you can throw an error if the validation fails.