Hello @hemanth Kumar loka ,
Thanks for the question and using MS Q&A platform.
As we understand the ask here is how to copy a file from SFTP to ADLS GEN2 and checking the filename to be todays date , please do let us know if its not accurate.
This is what I suggest .
- Create a variable and contruct the file name so that ADF can dynamically create the filename everyday . You will have to use Dynamic expression .
- Please use the Metadat data actvity to check if the file exists . https://learn.microsoft.com/en-us/azure/data-factory/control-flow-get-metadata-activity
- Use a IF statemnt to read if the file exists ( from the output of metadat actvity ) and if it does , inside the IF statemnt add add the copy activity ( I think you already should have one )
- At this time ADF does not an email activity , but i think you can always use logic apps and call that from ADF . The other route could to enable monitoring on ADF and enable email alerts . In the event there is NO file you can fail a child pipeline which will generate a email .
Please do let me if you have any queries.
Thanks
Himanshu
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators