Customer Portal

Errors and rejected records

Comments 2

  • Avatar
    oldforum
    0
    Comment actions Permalink
    Thank you, I was talking about maxErrors parameter of DB_OUTPUT_TABLE component but your message helped me a lot ! now, I'm abble to:

    1) "catch" rejected records by using output port of DB_OUTPUT_TABLE component;
    2) "catch" logging messages by using my own logger (and its appender) to create a report;

    In that case, with any logging level, errors were never logged. So I added some simple logging message in catch block following "preparedStatement.executeUpdate/Batch()" in DBOutputTable.java so that it could report errors and records number.

    So I have new question(s): Is it a good approach? Do you think it could be interesting to add this few lines of logging code in a future release? (I know its time consumer cause a lot of records may be rejected but it can help users to correct theirs ETL jobs quickly)

    Thanks

    PS: Now we are logging something like this:
    [WARN ] rec#23 - ERROR: value too long for type character varying(20)
    [WARN ] rec#35 - ERROR: value too long for type character varying(20)
    ...
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hello. I am not sure which parameter "max errors" do you mean? I predict you use Universal data reader and its attribute maxErrorCount. By these circumstances the described behaviour sounds correct. Found errors should be logged in info level (that could be little bit misleading and now already fixed) of log4j output.

    OtaSanek

Please sign in to leave a comment.