Passing the output of copy activity to a parameter in Azure Data Factory

Madhan 1 Reputation point
2022-01-20T09:25:01.777+00:00

Hi, I'm using Copy Activity to call a HTTP server for fetching the data from a URL and storing the data in SQL database. At the same time I must also use this fetched data to perform further operations in same pipeline.

So right now I'm storing data in SQL database using copy activity and again fetching the data from SQL database using lookup activity and then using it in pipeline. So I'm connecting to SQL database two times which reduces performance.

So is there a way to store the fetched data from copy activity to a parameter and then use this parameter to do further operations in pipeline?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,443 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,690 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. svijay-MSFT 5,211 Reputation points Microsoft Employee
    2022-01-20T16:32:49.077+00:00

    Hello @Madhan ,

    Thanks for the question and using MS Q&A platform.

    In Mapping Data Flow , you have cache sink that can meet your requirement.

    Reference : https://www.youtube.com/watch?v=9d39Bw2uFLw

    However, this feature is available inside the data flow. If you are looking outside - Copy activity - this may not be feasible out of box. I would suggest you to stage the data temporarily in a blob storage.

    This blob data can be written to SQL. The same can be utilized accross the pipeline.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators