For the complete documentation index, see llms.txt. This page is also available as Markdown.

Error Handling

Handling errors in a transformation ..

Workshop - Error Handling


Error handling

Workshop files

Download the following files.

Keep the filenames unchanged.

Save them in your workshop folder.

Create a new transformation

Use any of these options to open a new transformation tab:

  • Select File > New > Transformation

  • Use Ctrl+N (Windows/Linux) or Cmd+N (macOS)

CSV file input

The CSV File Input step reads data from delimited text files into a PDI transformation. While this step is called CSV File Input, you can also use CSV File Input with many other separator types, such as pipes, tabs, and semicolons.

Note: The semicolon (;) is set as the default separator type for this step.

  1. Double-click to edit the CSV file input step.

CSV file input
  1. Set the following metadata properties for: birthdate

Fieldname
Type
Format

birthdate

date

yyyy/MM/dd

Error hop

An error hop routes rows that fail in a step to a separate target step. This lets you keep processing valid rows. You also get extra error fields in the error stream.

  1. Double-click the white diagonal cross on the red error hop.

Hop - Error handling
  1. Set the error field names (you can pick your own).

  • Nr of errors fieldname: Number of errors for the row.

  • Error descriptions fieldname: Human-readable error message.

  • Error field fieldname: The field that caused the error.

  • Error codes fieldname: A code you can filter or group by.

Run the transformation

Preview both streams. One contains valid rows. One contains error rows plus error metadata.

  1. Select Run in the canvas toolbar.

  2. Preview the Dummy step:

Correct birthdate format
  1. Preview the Dummy - Errors step:

Errors for incorrectly formatted birthdates
  1. Scroll to the end of the Execution results pane.

Use errorCodes to route errors into targeted cleanup logic.


Fix the format and verify

  1. Open CSV file input again.

  2. Update the Format value for birthdate to match your CSV.

Example: if your data looks like 2026-02-17, use yyyy-MM-dd.

  1. Run the transformation again.

  2. Preview Dummy - Errors. You should see fewer rows, or none.


Last updated

Was this helpful?