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
tan_thiamhuat
Helper V
Helper V

Copy Data in Fabric

I tested with it, whether there is data from the Source or not, it still goes to "On Success".

What I need is when there is no data from the Source, it should go to "On fail".

 

Can anyone quickly confirm this?

Thanks.

2 REPLIES 2
v-prasare
Community Support
Community Support

Hi @tan_thiamhuat,

 

No, Copy Activity does not fail by default on no data. This is by design Copy Activity does not fail when it copies zero rows. to make it as you intended, you use a pre-check with a Lookup activity to detect empty source and an If Condition to either proceed or fail. This ensures the Copy Activity only runs when there is data, and you explicitly route the pipeline to fail when the source is empty.

 

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this my response resolves your issue, please mark it as "Accept as solution" and give kudos if you found it helpful.

are you able to do some printscreen to illustrate? How do we detect if there is a file in the SFTP Server?

tan_thiamhuat_0-1750744363928.png

 

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 2025 community update carousel

Fabric Community Update - June 2025

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