Hello Jake Atkins,
Thank you for posting your question in the Microsoft Q&A forum.
The "Conflict" (HTTP 409) error in your ADF pipeline occurs when the Delete activity fails to remove folders from Azure Data Lake Storage (ADLS) Gen2. This must be happening due to one of the following reasons:
- Folder Not Empty & Recursive Delete Not Working
- The "Conflict" error usually means ADLS Gen2 cannot delete a non-empty folder unless Recursive = true is explicitly set.
Even if you enabled Recursive Delete, there might be:
- Open file handles (leases) are preventing deletion.
- Permission issues (RBAC or ACLs blocking deletion).
- Concurrent modifications (another process modifying files while deletion is attempted).
2. Incorrect Path Resolution in Delete Activity
If the dataset path and item().name are not correctly combined, ADF may attempt to delete an invalid path.
Example Issue:
- Dataset path: container/folder/
- item().name: subfolder/
- Expected path: container/folder/subfolder/
- Incorrect path: container/folder/subfolder (missing trailing / for folders).
3. Time-Based Filtering Race Condition
- Your filter uses @addminutes (pipeline().TriggerTime, -10), which may exclude recently modified folders that are still being written to.
- If another process (e.g., Synapse, Databricks) is actively writing files, ADLS may block deletion.
You may need to verify the below configurations to resolve the issue:
- Ensure Recursive Delete is Properly Configured (test manually first)
- Correct Path Format for Folders (trailing / for folders)
- Add Error Handling & Retry Logic
- Check Permissions - ADF Managed Identity must have Storage Blob Data Owner (RBAC) or Execute + Write + Delete (ACLs) on the folder
- Test with a Simpler Pipeline - Try to delete one known empty folder first
Some Microsoft documentation may help to learn more about the above pointers:
https://learn.microsoft.com/en-us/azure/data-factory/delete-activity
https://learn.microsoft.com/en-us/azure/data-factory/data-factory-troubleshoot-guide
If the above answer helped, please do not forget to "Accept Answer," as this may help other community members refer to the information if they face a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated. Thank you for posting your question in the Microsoft Q&A forum.