Data factory copy operation in immutable storage fails

Akshay Vithalkar 1 Reputation point
2025-01-29T13:02:41.8833333+00:00

I have data factory with one pipeline which do copy operation from one container to another within same storage account. I have two containers "daily" and "weekly" and my pipeline copy files from daily to weekly.

When new files are coming into daily container, I need those files copied over to weekly. When I am running pipeline it is successfully copying files but it returing error

ErrorCode=UserErrorWriteFailedFileOperation,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The file operation is failed, upload file failed at path: 'weekly/2912025.txt'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Microsoft.WindowsAzure.Storage.StorageException,Message=The remote server returned an error: (409) Conflict.,Source=Microsoft.WindowsAzure.Storage,StorageExtendedMessage=This operation is not permitted as the blob is immutable due to a policy. Daily has retention policy to 1 and weekly has 7. What could be the issue.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,405 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,323 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amrinder Singh 5,715 Reputation points Microsoft Employee
    2025-03-05T16:50:24.32+00:00

    Hi Akshay Vithalkar,

    Thanks for reaching out over Q&A Forum.

    When is comes to immutability, this is like a WORM state and there are certain operations that are restricted, It is quite possible that the pipeline is copying the file for the ver first time, which is succesful an immediately, it might be trying to set some kind of properties and that's where will be erroring out.

    My recommendations is to enable diagnostic logging which shall help in identifying for which operation are you actuallly getting the error and if it is after blob gets copied.

    https://learn.microsoft.com/en-us/azure/storage/blobs/monitor-blob-storage?tabs=azure-portal

    Hope this helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 

    0 comments No comments

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.