Azure ADF copy activity - Copy file from local file system to ADLS

Raghavendra 25 Reputation points
2025-05-15T21:32:43.9+00:00

Hello, I am trying to copy a bunch of files from my local machine to ADLS2.0 using copy activity. Though this functionality works as expected, the original file timestamp from source (local file) is not retained. Post file copy, the timestamp is overwritten with the time file is uploaded. How can I retain the file timestamps even after the copy data activity?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,582 questions
{count} votes

Accepted answer
  1. Nandan Hegde 35,831 Reputation points MVP Volunteer Moderator
    2025-05-16T05:07:14.5566667+00:00

    Unfortunately based on my understanding, it is not possible to preserve the lastmodifiedtime for files during file movements from file systems to Azure blob storage.

    And once the file is uploaded in ADLS/Blob, that property is read only and cannot be updated/modified.

    So in case if you do need the original value, you can use get meta data activity initially before copy activity and capture the original timestamp and then while copying the file, append that timestamp to the file name at the need.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.