Problem Statement
Is it possible to remove the duplicate within an Array in Azure Data Factory?
Prerequisites
- Azure Data Factory
Solution
- The “union()” function in ADF returns a collection that has all the items from the specified collections. So one can leverage this function to get the unique list from an Array.
- Let’s say we have a list of values in an Array variable

- Using Set Variable activity, we can get the unique list from the Array.
@union(variables('DuplicateArray'),variables('DuplicateArray'))


Join the conversation! Your thoughts help the community grow.