Hello,
I have a "complex" question and since I am new to AETL, I would like to get some help to see if what I am trying to do is possible.
1. I am trying to load very scrambled data and fix this data by doing multiple transformations and validations
2. The first step is load an excel file into AETL with over 11.000 records. The excel-file contains a column called LANDV and this has a lot of bad data (wrong spelled countries, dots, various combinations of city and country etc).
3. I was able to first make a transformation with the lookup-transformation and with this, I am cleaning up this column and the end-result is having these records with bad data updated with new better data
4. The result is that i then have 11.000 records with multiple countries in there, of one being the value Duitsland (=Germany).
5. Now, as a second step, I want to do a validation on the postcode of these specific german records
6. However, I don't know how I can only take the records where column LANDV="Duitsland" and then check the other column POSTKV (being the postcode) to see if for these records, the values are valid German postcodes. The rest of the records should not be validated and passed through
7. The next step is some additioanl transformations
8. Then last write the result to a SQL Server table
9. ALSO, I would like to have output (to a table or log file) of the rejected records, so the users could use this as input to update the source excel-sheet
Could somebody guide me specifically to point 6, because I don't know how to evaluate only the records where LANDV="Duitsland" and ignore the other recortds, but pass these other records on the the next step anyway. So only records for germany with an invalid postcode should be skipped.
Any potential help on this?
regards,
Norman