I'm working on creating a small project to track ETL logs. I've created a stored procedure with parameters and a custom SQL table to load the ETL logs.
Inside the ADF I have multiple activities. At the end I'm using stored procedure activity with parameters mapped to ADF system variables like pipeline name, error details etc to log in the SQL table.
Issue: whenever there's an error on an activity in middle, the pipeline fails and not touching the stored procedure activity. Like, say I have Copy1, Copy2, Copy3 and at last ETLLog_StoredProcedure
. If Copy2 fails, the pipeline run stops there at Copy2 and stored procedure activity is not run.
I have connected all the Copy activities to ETLLog_StoredProcedure
using Activity-On-Completion connections. Take a look at the picture below.
Expectation: I need to call the stored procedure activity even if the pipeline fails/succeeds so that I can log the status of the pipeline.