Rejected / Error Record in Reformat

Reformat component is failing on a particular record and the graph fails. Is there a way to capture the bad record in Reformat ? Console error msg is not useful - states Record 0 and field name 0 is failing in the transformation due to ArrayOutOfBounds error. It does not show the correct record # or actual bad data to locate it. Thanks…

Hello,
if you don’t know what is causing the problem, it is not possible to capture bad data. Try to print out (print_err or print_log ctl functions) record counter and incoming data. Then you will be able to detect where there is the problem.
Or, if your transformation function is written in java, you can surround the body of the function with the try-catch clause. Then, in catch part, you can return an error code and set message to the message from error. Thees messages can be sent to error log (see errorActions and errorLog attributes of Reformat).