How To Successfully Fail a Data Pipeline in ADF

Tech Zero
4 min readNov 15, 2021

This article demonstrates how to use the Fail activity in Azure Data Factory to intentionally fail a data pipeline.

In this article, we will build a data pipeline that uses fail activity in ADF to terminate a data pipeline and log a custom error message.

Use Case:
To be able to identify whether an excel file exists in storage container or not. If the file doesn’t exist, fail the data pipeline with an error message.

Requirement:
As a Data engineer, I need to build a data pipeline that checks whether

--

--

Tech Zero

Data Engineering Manager | Azure, Databricks and Snowflake stack | Here to share my knowledge with everyone