Originally posted by: SystemAdmin
Hello Steve! The Reject function returns the whole record if an invalid field is found.
Have done a lot of extensive validation maps and reporting here and use component rules in the type tree with the Onerror function to write a custom error text to the audit log. Maps can also be used to check for invalid fields but the Onerror function is not available, you have to write your specific rules and send the output to a reject report file.
Not sure why it is an issue to turn on the audit logs for your maps as they do not take up a lot of space, especially if you have only the summary option on for a map.
However, for your particular instance, a possible solution is to create a file of the records that rejected in the first map, run that output in your second map which will have a tree defined with component rules and then you can validate individual fields and write error text to the audit log, turned on in the second map, with the Onerror function.
Possibly another solution is to have a second map read in your file of reject records from the first then put validation rules in the output card and write your error text to some type of reject report file and this would not need the audit log.
Key point if using the audit log and the Onerror function is to use the Data Audit Settings tab in the Organizer to track a record level so that the audit log will give you all the information necessary.
Have used a Perl script process here to parse out the E09 errors from the log and create a nice error report but have finally figured out the audit type tree and will be using that to parse the E09 errors and create a report directly with a TX map.
More ways to do validation probably exist but in working with Professional Services and using TX to its fullest, even with it not being built for easy validation reporting, it gets the job done now.
The Professional Services consultants that have come here to help with other issues have indicated that they have not found any other organizations using the extensive validations coded here, but the available validation features and functions in TX have been used to their fullest and the applications work fine.
Now Ascential also has a Profile Stage tool to profile your data which is being looked at here too and that is supposed to make it easier to validate data up front.
For now the TX tool is doing the work and the way you choose to validate is personal preference given the current functions available in the tool.
Hope this helps.
Thanks!
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange