VinsData

Deep-dive technical essays & reference architecture on data mesh, Microsoft Fabric, Azure Synapse, and distributed computing architectures.

  • LinkedIn
contact@vinsdata.in

Curated Taxonomies

Microsoft FabricAzure SynapseETL & PipelinesData MeshReal-Time StreamingCost Optimization

Stay Connected

Get architectural summaries and high-speed notifications directly in your inbox every Tuesday.

Strictly technical content. We respect your privacy. No spam ever.

© 2026 VinsData Engineering & Architecture Journal. Written by Vinodh Kumar.

Privacy PolicyTerms of Service
Back to All Publications
ETL & Pipelines3 MIN READ

Configure ADF Pipeline Output to a File

Vinodh Kumar
Vinodh Kumar

Principal Data Architect · Oct 7, 2022

At an enterprise level, every project schedules and runs multiple Azure Data Factory pipelines but tracking their outcomes in ADF studio is a cumbersome process. There are companies who after for every failed pipeline activity with some error, they must track them down by drilling down each activity until they find the failed one and click on its output button to description of the error. So in todays article we will see an practical approach to save the output of a pipeline activity to a file in Azure blob storage which can be accessed later for analytics purposes.

Steps:

Open azure data factory studio from azure portal and create a demo pipeline. Once created drag an ‘Execute Pipeline’ activity onto the canvas inside which we are going to configure the main activity.

I have created a new pipeline with failed activity just for this demo, which would be invoked inside our first pipeline.

After this I must capture the error message that gets thrown in the ‘fail activity’ that into a variable, hence I will pull the ‘set variable’ activity to the canvas. After this connect both the activities but from “On failed” action from the Exec pipeline1.

For the set variable activity add a new variable name and type as string.

In the value parameter is where we will capture the output of the error that we are going to receive from the pipeline. Initially I added the last part of the below dynamic content as output.error.Message which was causing me error. I have provided the exact query which you can use and save time from fixing the error and code correction.

@activity(‘Execute Pipeline1’).error.Message

Now when I run the pipeline it captures the error output message in the variable that we have created.

Now all set, now let’s move the error messages onto the text file in adls as per the intention of this article. For this I am going to add one more activity, the Copy activity at the end of our pipeline.

This will copy the variable that is held in the set variable activity which will run prior to this into a text file in adls storage. In the source, I have pointed to a dummy csv file with only column headers so that I can pass the variable along in the csv file to the text file but filter only the variable column in it. The next steps will explain how this can be achieved.

In the source just add a additional column(which is going to be written in the destination text file) and add the variable name that we set in the previous step.

Sink will be the location where you want the output to be stored.

Now in the mapping tab click on import schemas and import all the columns, you will see the columns from source file including the additional column which you have set in source tab. Now go ahead and delete all the columns from source and keep only the variable column which is going to write the output on to the text file.

Once you have deleted, it will look like below

This pipeline is all set to be run, lets go ahead and trigger it.

We could see the first step shows failed which is an expected behaviour as we have set up a failure activity inside it. Let’s check the destination adls storage for the file that has been created and the contents.

The file has successfully written to as txt file as BusinessData.txt in my destination folder with the right error message.

Article Topics & Tags

#Microsoft Fabric#Data Engineering
0 responses
Vinodh Kumar

Written by

Vinodh Kumar

Principal Data Architect · Author of VinsData

Hands-on enterprise architectural advice, bench-marked patterns, and field notes on Microsoft Fabric, Synapse, Databricks, and modern data platforms.

Published in VinsData JournalView Full Profile

Subscribe to Architectural Insights

Get field essays on Fabric, Synapse, and data architectures directly in your inbox every Tuesday.

Responses (0)

Community discussion

No responses yet

Be the first to share your perspective or ask a question about this architecture.

Recommended Reading

More From VinsData

View all publications
Microsoft Fabric

Your pipeline is green and your data might be wrong

How 'Semantic Drift' turns successful pipelines into misleading business numbers, and what it takes to catch it.

Oct 26, 20266 min read
Lakehouse Architecture

Rethinking Modern Data Architecture: How to Design Data Systems That Actually Matter

An inquiry into over-engineered pipelines, real-time obsessions, and how simplicity in Microsoft Fabric and Lakehouses beats high-power compute every single time.

Jul 27, 20265 min read
Practical Guide

Fabric as an App Platform: Evaluating the Rayfin Shift

Microsoft introduced Rayfin at Build 2026, positioning it as a way to build and run application backends directly inside Microsoft Fabric. I...

Jun 8, 20264 min read