I am new to SDXchange and Ascential. I need to validate certain data coming in from an outside client an place it in an output file:
My validations looks like this:
If [field 4] > 0, [field 5] should have a date, if not reject the record
If [field 5] has a date, [field 4] should have an amount grater than 0, if not reject the row.
Also,
If [field 6] > 0, [field 7] should have a date if not reject the record
If [field 7] has a date, [field 6] should have an amount grater than 0, if not reject the row.
I tried messing around with constraints and thought I would write if statments but realized that the constraints accepts expressions only . Am I correct about this?
I tried also to have two different transformers and one reject link with each transformer having one validation but that did not work well either.
Any suggestions will be much appreciated.
Emilio
![Smile :)](./images/smilies/icon_smile.gif)