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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
P_work
Helper I
Helper I

Understanding pipeline failure

I have a get metadata activity. The directory may or may not exist. If it exists, pipeline gets the list of child items and then proceeds to a for-each on success. If the directory does not exist, the get metadata activity will fail. When the get metadata activity fails, the pipeline fails. How could the pipeline succeed if the directory does not exist ? An if activity is not possible(desirable) as have for-each.

1 ACCEPTED SOLUTION
P_work
Helper I
Helper I

From what I understand, the get metadata activity on completion needs to point to a wait AND all skipped activities must also point to this wait. Now the pipeline succeeds.

View solution in original post

5 REPLIES 5
v-tejrama
Community Support
Community Support

Hi @P_work ,

 

Thank you @wardy912 for the response provided!

Has your issue been resolved? If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.

Thank you for your understanding!

Hi @P_work ,

 

I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.

Thank you.

Hi @P_work ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Thank you,

Tejaswi.

 

wardy912
Solution Sage
Solution Sage

Hi @P_work 

 

 Starting with an IF statement will resolve your issue

wardy912_3-1754988586033.png

 

 

Set your 'Get Metadata' to show if the directory exists

wardy912_1-1754988295571.png

 

Then your IF statement to use the output

 

wardy912_2-1754988371573.png

If true, complete your pipeline activities (in my example I have a set variable tasks to test). If false, do nothing. The pipeline will still succeed. See below the result when I removed the file from my directory, giving the output 'False'

 

wardy912_4-1754988773697.png

I hope this helps, please give a thumbs up and mark as solved if it does, thanks!

 

P_work
Helper I
Helper I

From what I understand, the get metadata activity on completion needs to point to a wait AND all skipped activities must also point to this wait. Now the pipeline succeeds.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.