Search code examples
xmlpentahokettle

In pentaho how can I ignore a not well formed XML file and continue with the rest


In pentaho, is there a way to ignore a not well formed XML file and continue the transformation on the rest of the well formed (valid) XML files.

I tried the define error handling but this didn't seem to work.


Solution

  • You can use the following Check if XML file is well formed step. Actually that step is available in a job. So what you have to do is add the transformation to a job and use the following step as necessary in the job.

    enter image description here

    In the advanced tab of the step includes an option Result file name You can select Add only well formed file names