I'm using ADF v2 to import data from CSV source on Blob Storage to Azure SQL Dat Warehouse. My first Activity in the Pipeline is Copy activity from CSV (on hot blob storage) to Azure SQL DWH. If this activity finish successfully the next one is again Copy activity but now from CSV (on hot blob storage) to CSV (on cool blob storage), move process for history and storage pricing optimization. Filename of the CSV file is sent to Pipeline as Pipeline-Parameter.
What I noticed is that if I start the Pipeline with Filename parameter of the csv that does not exists on the blob storage, first Copy activity (CSV -> DWH) finish without error. It does not import any data to DWH, which is normal, but raise no error of missing file. Next Copy activity (CSV hot storage -> CSV cool storage) raise Failed error -> blob is missing.
I would like also Copy to DWH to raise Error, because that way I can add other activity in the pipeline that will handle this situation. Log error somewhere, mark file as missing, etc.
What is specific in Copy activity from Storage to DWH that is finishing successfully without source blob existence? I use polybase checkbox in the Sink part of the activity if that counts for something.
Does anyone knows how to set this Copy activity (Storage CSV -> SQL DWH) to Fail if source blob does not exists?
Thanks