“Pre Screen” a csv file to check for compatibility with API and current Data Migration tools.
- Read in params
- Read in Data file and template
- Run Validation 3.a. compare headers 3.b. run rules
- Rule
-- Header_name
-- Format (string/date/number)
-- allowed values/ comparator operation name
-- tempate, if required (need to see if same header_name is used in multiple templates)
csv_validator dataFile.csv template.csv rules.csv account
rules.csv
Header_name, Format, vales/function, template
Account ID, String, validateLength(String str), account