I have a transformation class that throws a TransformException. My REFORMAT_0 node uses this transformation class.
When my class throws an exception, looks like the Record number reported by WatchDog is incorrect… it always show Record number 0, although it is not the first record in my data that is causing the exception to be thrown.
this is an example of my TransformException message:
ERROR [WatchDog] - Node REFORMAT_0 finished with status: Error occurred in nested transformation: ERROR caused by: Record number: 0, field number: 0. Message: Delimited input data parses into 15 fields, but FMT has 16 fields…
Please verify and let me know if I have a way to overwrite the Record number counter so that the correct Record number is reported.
Hello,
this message is probably generated by your data parser. Data parser has to set error record and field numbers. Could you show your transformation code?
throw new TransformException(new StringBuffer(" Delimited input data parses into “).append(parseStr.size()).append(” fields, but FMT “).append(target.getMetadata().getName()).append(” has “).append(target.getNumFields()).append(” fields.").toString());