Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
AlanTHarris
New Member

Only copy when all files have arrived

I have a situation where a source database is sending Parquet files. The number of files varies between 200-800. They need to be copied into a target database using Datafactory. 

 

The problem is I don't know how many files have been sent, and I don't know if the transfer was successful. I can get the sender of the files to send me a manifest file with details of the number of files, checksum etc.

 

Is it possible to use Lookup or similar to verify the number of files available against the expected number of files? For instance, if the manifest says 346 files and 346 files have arrived I'll begin the copy operation in the Pipeline? But if only 345 files have arrived I will do nothing.

 

Is there a way to solve this?

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @AlanTHarris ,

 

There is an activity called Get Metadata that might help you:

tackytechtom_0-1713284371802.png

 

I would do it the exact same way as you suggested:

1. Read the manifest file

2. save the "supposed" number of files from that manifest in a variable

3. check the "current" number of files in that folder with the Get Metadata activity

4. if 2. <> 3., wait for x minutes and do 3. and 4. again otherwise move onto 5.
5. start copy activity

 

Let me know if this works for you 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

1 REPLY 1
tackytechtom
Super User
Super User

Hi @AlanTHarris ,

 

There is an activity called Get Metadata that might help you:

tackytechtom_0-1713284371802.png

 

I would do it the exact same way as you suggested:

1. Read the manifest file

2. save the "supposed" number of files from that manifest in a variable

3. check the "current" number of files in that folder with the Get Metadata activity

4. if 2. <> 3., wait for x minutes and do 3. and 4. again otherwise move onto 5.
5. start copy activity

 

Let me know if this works for you 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.