Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I’m trying to get a better understanding of the Pre-Copy Script option in Microsoft Fabric's Copy Activity. Given that we already have the option to use a query to pull data from the source, I’m curious about the specific situations where the Pre-Copy Script comes in handy. Is it generally an either/or choice between using a query and a pre-copy script, or are there scenarios where it makes sense to use both within the same activity?
If anyone here actively uses the Pre-Copy Script, I’d love to hear about your experiences and the types of use cases where it’s proven helpful.
Thanks in advance!
Solved! Go to Solution.
The difference between the query and the pre-copy script is that the query is performed on the source, while the pre-copy script is performed on the destination. You can use both within the same activity. You could for example delete all the records from the destination before you write new rows from the source to the destination that you've selected with your query.
Hi @HamidBee
The Pre-Copy Script in Microsoft Fabric’s Copy Activity is useful for tasks like cleaning up old data, making schema adjustments, preparing data, or implementing conditional logic before copying new data. It can be used alongside a query to ensure both the source data and destination environment are properly managed.
with regards
Monica CVL
The difference between the query and the pre-copy script is that the query is performed on the source, while the pre-copy script is performed on the destination. You can use both within the same activity. You could for example delete all the records from the destination before you write new rows from the source to the destination that you've selected with your query.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |