I am trying to create a dependency pipeline for files before executing my model refresh (web activity) I want to make sure all the related files are there in their respective folders and all files are latest.
Suppose, my model refreshes uses the following file present in adls-
- myadls/raw/master/file1.csv
- myadls/raw/dim/file2.csv
- myadls/raw/dim/file3.csv
- myadls/master/reporting/file4.csv
We need to compare the files last modified with today's date. If both are equal then files are the latest. If any of the files is not the latest then I need an email with the file name that is not the latest and I shouldn't trigger my web activity which usually does model refresh.
I have created this pipeline using get metadata, for each activity, If-condition, web activity, and Set variable activity. But the problem is I am not able to get an email for the file which is not the latest. Can anyone help me to re-design my below pipeline so that I can get an email for the file which is not the latest file?
Please find my current design for the dependency pipeline. In the last, If condition in a true activity I am running a web activity that does model refresh and In false activity, I have created another web activity that says one of the files is not the lastest so model refresh can't be done. But It's not able to tell which file it is.