I think Set Variable 2 (i.e PreviousModifiedDate) should have been inside If condition. Current file modified time should always compared with the highest modified time among previous files.
@sayonbhattacharjee74703 жыл бұрын
Amazing Video... Just wanted to cross check that I think set var (last mod date) should also come under IF activity. Then only it is working correctly in my case.
Hi Sir, I am really liking your series of videos & learning from it. I believe there is one issue in above implementation as the setVariable2 should also come under if true condition only along with setting variable 1. It's working in your case since your latest file is the last file that runs in foreach loop but if It won't be last then it will not copy that file. pls check.
@sourabhgupta14283 жыл бұрын
Thanks for highlighting this issue, even I noticed while implementing the same that it wont work if your first file is latest file. @ Bandhu Gupta : Can you please suggest where we need to correct to implement the logic correctly?
@shalakapowar07072 жыл бұрын
@@sourabhgupta1428 you can put both variables PreviousModifiedDate and LatestFileName inside If-> true activity. Outside If activity you can add new variable and assign it to @variables('LatestFileName') - this will give u latest file name
@venkatasatishnamana4681 Жыл бұрын
Just move the 2nd set variable activity to IF - >TRUE activity before or after the 1st set variable activity and join them. No need to modify other things
@SathishKotte-p3z Жыл бұрын
Hi Maheer, I'm learning ADF watching your videos, it's amazing series, I just want to cross check, I think we need to use 2 set variables in true condition only, need to put previous modified date first then latest file name variable, then only it's working fine in my case, Thanks
@MaheshReddyPeddaggari3 жыл бұрын
I am very much waiting for these kind of scenarios Thanks Maheer
@WafaStudies3 жыл бұрын
Welcome 🤗
@ranganathmaimal2 ай бұрын
Super Informative 👌
@varung29113 жыл бұрын
Hi Maheer, Cant we have both the 'Set variables activity' inside the 'if condition' true activity?
@vigneshr89562 жыл бұрын
It should be
@abbasfatehm7149 Жыл бұрын
Thank You So Much Sir always helping.
@WafaStudies Жыл бұрын
Welcome 😊
@aishwaryam85202 жыл бұрын
Hello sir, Can you please tell me what if we are getting two files with same last modified date and time? What can be done for this
@abhishekrana56263 жыл бұрын
hi sir thanks for such simple n very informative videos , Can you make one video on how we can resume failed copy activity from where it is failed not from the starting how we can achieve it ?
@WafaStudies3 жыл бұрын
Sure. I will plan
@multipleaccounts920710 ай бұрын
@wafastudies thanks for your explanation. But this solution is not scalable right with the increase in number of files the for loop has to check all the files everyday to get the last file everyday. Any scalable solution would you suggest?
@MoHz-rx5my11 ай бұрын
I think solution would be to use notebook PySpark or python? Am i right?
@roshankumargupta463 жыл бұрын
Thanks for this video! Can you also create a video to explain how can we verify sources and target tables? Like how can we verify all the rows and columns value got copied correctly using data factory
@ronaldorn842 жыл бұрын
Wonderful tips! TKS you help a lot
@WafaStudies2 жыл бұрын
Thank you ☺️
@gopalammanikantarao5932 жыл бұрын
HI Sir, could you please help me out this requirement. how to get oldest file from folder and process it in azure data factory
@shubhamsingh-j5q10 ай бұрын
How fetch files from more than one folder and trigger respective pipeline or databricks notebook
@annukumari96293 жыл бұрын
Very informative 😊 Thanks for sharing
@WafaStudies3 жыл бұрын
Thank you Madam 😊
@tusharchirame820 Жыл бұрын
@@WafaStudies could you please share Your email id. I have some doubt.
@gautampoddar33927 ай бұрын
It is asking to provide FileName in 1st Get Metadata activity, what to give there can someone help please
@prathaps419 Жыл бұрын
Hi Maheer, Thaks for your efforts on doing this video's.its really very helpful.I am looking for similar scenario but instead of file need to get latest table records from SQL server..can you pls explain it how to get them.. Thanks
@mabunnicherukuri6751 Жыл бұрын
Thanks for this video, can you please share we have input is excel daily basis files, we want latest file name with last modified date, how to implement ADF pipeline
@Imrannaseem8183 жыл бұрын
Thanks Maheeer I was looking for this video cheers!
@WafaStudies3 жыл бұрын
Welcome 🤗
@vru56967 ай бұрын
@@WafaStudies Thank you for your videos. Can you please create video on extract the file from Sharepoint location and load into sql table. Thanks
@govardhanbola11952 жыл бұрын
We are processing files from SFTP location. but the issue is each time we upload a new file in sftp location and run the pipeline, it's processing already processed files along with the new file. As the number of files keep growing, it is becoming a problem. instead what we want is, once the file processed, we want that to move to an archive folder in SFTP location so thatonly latest file will be processedin next run. how to do this
@HnkBnnndk2 жыл бұрын
Nice and clear explenation. But when i try this on files in different subfolders, the mechanisme doesn't work with wildcards for subdirectories. Do you have a solution for that?
@anmolganju18642 жыл бұрын
What if I have a date level hirearchy in a data lake gen 2 where I have folder strutcure for each table as /table1/2022/01/03.. /table1/2022/01/10 and files are present there, now how should I pick latest file in this case?
@joyyoung32883 жыл бұрын
what file for the data set from very beginning? is it static csv contains all file name? cannot follow.
@Kirbys911Heaven3 жыл бұрын
Super helpful. Thank you very much.
@WafaStudies3 жыл бұрын
Welcome 😀
@dineshdeshpande61972 жыл бұрын
Sir , can we sort the list that we got in JSON of the file son lastmodified date in DESC order and get latest modified file.
@sriramch31282 жыл бұрын
Is this like incremental loading
@rajabhakshi33332 жыл бұрын
Thanks for this video
@abhishekmehta51932 жыл бұрын
Hi Everyone, Quick Question: When I am uploading 2 files (A & B) at the same time, then it only copies file A but it does not copy file B. So can you please help me with logic on what to do if we upload 2 files at the same time?
@abdullahmukminahmad44792 жыл бұрын
Hi Wafa how to extract file from folder partition by date
@birendrasinghrawat96143 жыл бұрын
Thank you Maheer, the video is really very good. But this will not work in all the scenario to get the latest file from the folder. If there are 4 files in the folder and in that the first file is the latest file and the last file is the second latest file then it will pick the second latest file because of updating the Previous_Modified_Date variable with Last_modified_date in all the scenarios inside for for each loop.
@sourabhgupta14283 жыл бұрын
Thanks for highlighting this issue, even I noticed while implementing the same that it wont work if your first file is latest file. @ birendra singh rawat : Can you please suggest where we need to correct to implement the logic correctly?
@anmolganju18642 жыл бұрын
@@sourabhgupta1428 Try to run the for each loop without sequence it should give the correct output
@sfn1231 Жыл бұрын
@@sourabhgupta1428 store the previous date only if the condition is true, like storing file name, that way you will always have latest date in the previous date variable, this should work
@datatuber3 жыл бұрын
Thanks for sharing 👍
@WafaStudies3 жыл бұрын
Welcome 😁
@shivag77772 жыл бұрын
Hi Maheer , This is not working when you have 2 or more files modified and it is considering the date of last file in your input folder but not based on last modified date, looks some logic is wrong in this video. I would please keep 7 to 8 files with different date values and the file should be having random date. Kindly have a look again and let me know if you want to share more details.
@tarakakrishnavemula3949 Жыл бұрын
This is what my doubt is , hi broo plzz give solution
@gowthamprasad7182 Жыл бұрын
Instead of PreviousModifiedDate we have to store PreviousMaxModifiedDate using set variable in the if condition along with LatestFileName set variable.
@bhagyashree4744 Жыл бұрын
Hi did you got to know how to store multiple files using last modified date ?
@papachoudhary54823 жыл бұрын
Thanks
@WafaStudies3 жыл бұрын
Welcome 🤗
@papachoudhary54823 жыл бұрын
@@WafaStudies Eid mubarak Sir
@WafaStudies3 жыл бұрын
@@papachoudhary5482 Thank you 😊 Wish you same 😊
@sravankumar17672 жыл бұрын
superb.........
@kausarnafisa58042 жыл бұрын
This logic is good thanks for it but this isn't working, we need to set previous modified date inside if condition activity then only it will work.
@chaitanyapanchal1312 Жыл бұрын
Hi Maheer, I think this is not feasible solution because as the number of files will increase count for comparison will also increase. Suppose we have 50,000 Files then there will be 50,000 comparisons which will decrease the performance.
@MoHz-rx5my11 ай бұрын
Yes..i think better use notebook PySpark or python
@CitizenIndia1433 жыл бұрын
Hi @WafaStudies, can’t we get modified date in metadata1 itself??
@WafaStudies3 жыл бұрын
No bcs your first getmetadata dataset is pointing to folder and if u try to get lastmodified then it will give u folder lastmodified info
@thendralponnusamy79733 жыл бұрын
@WafaStudies what if we have files in multiple sub folders, from the root folder?
@rohitsethi5696 Жыл бұрын
this is wrong i have test there are 4 files dates are below in the first iteration it make (previous date=last modified date) previous 01/01/199 10/2/2023 last modified date 2/2/2023 1/2/2023 5/2/2023 18/2/2023 in the first iteration 10/02/2023 is greater it do not go to second iteration bsc condition is not satisfied but actually latest file is 18/02/2023
@sriramch31282 жыл бұрын
If it is sql
@bhawnabedi96273 жыл бұрын
👍🏻👍🏻
@WafaStudies3 жыл бұрын
😁👍
@Mylittleprincessvenna2 жыл бұрын
it shouldn't be working as we expected if you had files like below File1 8/10/2022 10:53:00:00 File2 8/10/2022 10:51:00:00 File3 8/10/2022 10:52:00:00
@neerajnaik51613 жыл бұрын
this is not the correct way. check incremental data load using data factory in Microsoft documentation.
@Discodave6762 жыл бұрын
Nice video, but you need to speak slower.
@WafaStudies2 жыл бұрын
Thank you. Sure. Thanks for feedback. I will work on it.
@rohitsethi5696 Жыл бұрын
she has used assign value of previous value to latmodfied inside the if condition kzbin.info/www/bejne/qYqwZ56MpdOaaJo which is best approach
@suryaa302 жыл бұрын
Hi How to pick if we have a list of files with a date suffix like FIle_YYYYMMDD.csv