High severityexecution
Power BI Refresh Error:
DELTA_CONCURRENT_DELETE_DELETE
What does this error mean?
A Delta Lake DELETE or MERGE operation failed because a concurrent operation already deleted one or more of the same files that the current operation was attempting to delete, creating an unresolvable conflict.
Common causes
- 1Two concurrent compaction or OPTIMIZE operations attempted to rewrite the same underlying Parquet files at the same time
- 2A concurrent DELETE statement and a VACUUM operation both tried to remove overlapping file sets from the same Delta table
- 3Two concurrent MERGE operations with DELETE clauses both targeted the same rows and their file rewrites conflicted
How to fix it
- 1Step 1: Retry the failed operation — Delta Lake's optimistic concurrency will resolve the conflict on retry once the first delete completes.
- 2Step 2: Avoid running simultaneous OPTIMIZE or compaction jobs on the same table; serialize compaction or schedule it during low-write windows.
- 3Step 3: Set delta.isolationLevel = Serializable on the table if write-write conflicts are frequent, though this will reduce write concurrency.
- 4Step 4: Review the table's concurrent writer pattern and partition the table to give each writer exclusive ownership of distinct partition ranges.