Topic:   Flat file content validations for handling special characters ?
Jan 18, 2014 03:11 3 Replies 983 Views Nancy
Prev Next
Topic Replies (3)
  1. 1
    idnkx user

    Nancy

    Hi Xperts,

    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 ?

    Thanks

    1
    idnkx user

    Akash

    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".

    1
    idnkx user

    Vikram

    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.

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect