Hi Magarde, A (Ankit) ,
Welcome to Microsoft Q&A platform and thanks for posting your query here.
It seems like you are encountering an error when using Azure Data Factory to copy SQL tables from an on-premises SQL Server to Azure Blob Storage. The error code "AdlsGen2OperationFailedConcurrentWrite" indicates that there is a problem with concurrent writes to the same file in Azure Blob Storage.
The error you are encountering occurs when multiple concurrent activities attempt to write to the same file in Azure Data Lake Storage Gen2 (ADLS Gen2). Even though you've set the max concurrent connections to 1, the issue can still arise due to:
- Multiple copy activities targeting the same file path concurrently.
- Overlapping pipeline executions (manual or by trigger run)
- Ensure Unique File Names for Each Copy Activity . You can include
timestamps
orGUIDs
in the file name to ensure uniqueness . Example:table_name_@{formatDateTime(utcnow(),'yyyyMMddHHmmss')}.parquet
- Disable Parallel Execution by setting Sequential option to
True
within ForEach activity. - Check if there is any overlapping pipeline runs/trigger runs.
Hope it helps. Kindly let us know how it goes. Thankyou.