Customer Portal

Batch Mode setting for database writer

Comments 6

  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hi !

    You may combine batch mode with max-errors. Also, if you connect your DBOutputTable to any writer/component, those rows which were rejected by DB are sent to output port 0 - if it is connected. This way, you can capture error rows and process them further.

    David
  • Avatar
    elouan
    0
    Comment actions Permalink
    Hello,
    is there a method to put in a file all the errors from the database with a dboutput ?
  • Avatar
    avackova
    0
    Comment actions Permalink
    As written above connect writer node to 0 (zero) output port of DBOutputTable and set maxErros = -1
  • Avatar
    avackova
    0
    Comment actions Permalink
    I'm sorry, I've written wrong answer above: when maxErrors is set -1 errors are completely ignores, even not logged. To send error records to output, maxErrors has to be greater then 0. If you want only to log errors, set maxErrors greater then expected number of errors.
  • Avatar
    elouan
    0
    Comment actions Permalink
    Thank you for your answer, do you know if one of the new version implement the infinite number of rows ?
    Because I saw that it can't be over 1 000 000 000 ? (it's not a problem for me but maybe for others it will be)
  • Avatar
    avackova
    0
    Comment actions Permalink
    I don't thing that infinite number of errors could be useful, because, usually, only small per cent or records are wrong and not loaded to database. Another case is when all records are wrong and then, probably, user would like to stop after first error to correct query.

Please sign in to leave a comment.