How to Use Filter Activity Output as a Source in Copy Activity in Azure Data Factory Pipeline

Tarun Manoj Kumar Sahu 20 Reputation points
2025-06-05T09:47:30.13+00:00

I'm fairly new to Azure Data Factory and need help with a pipeline I'm building. My goal is to read data from a CSV file stored in an Amazon S3 bucket, filter out records where the Status column is 'active', and then copy the filtered data into a SQL Server sink. I’m using a Lookup activity to fetch the data and passing its output (@activity('Lookup1').output.value) to a Filter activity. The filter condition I’ve set is @equals(toLower(item().Status), 'active'). This gives me the filtered records, but I’m unsure how to pass this filtered output into the Copy activity so that only the active records are written to the SQL Server. Any guidance on how to achieve this would be greatly appreciated.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Accepted answer
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2025-06-05T10:36:55.4133333+00:00
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.