How to load or skip locked files loading through datafactory?

Prashanth T 26 Reputation points Microsoft Employee

I have to load gatewaylog files from VM to Datalake through ADF. Some files will get locked while loading.

  1. How to load or skip them in Azure data factory?
  2. How can I load skipping files after lock get removed?
  3. Is there any option to check file is locked or not in ADF?
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,127 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChiragMishra-MSFT 956 Reputation points

    HI @PrashanthT-2849,

    Sorry for the delayed response. Yes, you can use the getMetadata activity to get the lastModified dates for each file in a folder/container. You can then use a Filter activity to filter files based on the lastModified date. Alternatively you can use an If condition activity to do the filtering for you.

    Hope this helps.