0015 Skip duplicated values

A practical Advanced ETL Processor example for building, testing, and adapting one automation workflow.

Advanced ETL Processor
4.9 ★★★★★ Based on 16 reviews on Capterra See all reviews on Capterra →

Use this example to build one working automation package, test it safely, and then adapt it to your own files, folders, or data rules. Start small. Automation is helpful; automated mistakes are just faster mistakes.

Skip duplicate values during transformation

This example shows how to skip repeated values while processing a file. It is useful when the source keeps sending repeated rows or grouped records, and the target only needs the first occurrence. Duplicates are not always a disaster, but they are rarely invited.

Data example

The sample data contains repeated values. The transformation compares the current value with the previous value and skips the duplicate when the value has already been processed.

Duplicate value data example

Run the example

  • Download and install Advanced ETL Processor [Link]
  • Download and unzip the example [Link]
  • Create a new transformation and open the .ats file.

Skip duplicated values workflow

  • Double-click the Reader object and amend the source file path.
  • Double-click the Writer object and amend the target file path.
  • Run the transformation by pressing the green arrow.

Transformation logic

The transformation uses previous-value logic to decide whether the current record should continue to the target or be skipped.

Skip duplicated values transformation

Previous Value transformation function

There are several ways to remove duplicates. In this example, the Previous Value transformation function is used because it can compare the current row against the row processed immediately before it.

Previous Value transformation function

When this method fits

This approach works best when duplicate values arrive next to each other or after the data has been sorted. If duplicates can appear anywhere in the file, sort the data first or use a lookup-style check instead.

Related Advanced ETL Processor resources

For more automation examples, review the Advanced ETL Processor tutorials, read the WIKI, or download the Advanced ETL Processor Enterprise trial.