Power BI Refresh Error:
Fabric Copy Activity Error 20772
What does this error mean?
The 'deleteFilesAfterCompletion' setting is not supported for the specified connector in the current copy activity configuration. The setting must be removed or an alternative deletion approach must be used.
Common causes
- 1The 'deleteFilesAfterCompletion' option was configured for a connector that does not support it regardless of copy mode
- 2A pipeline was built using a connector that was later found to be incompatible with the deleteFilesAfterCompletion feature
- 3The connector type was changed after initial pipeline setup without revisiting the deleteFilesAfterCompletion setting
How to fix it
- 1Step 1: Open the copy activity in your Fabric Data Factory pipeline editor and identify the connector being used as the source.
- 2Step 2: Consult the Microsoft Fabric connector documentation to confirm whether 'deleteFilesAfterCompletion' is supported for that specific connector.
- 3Step 3: If the connector does not support 'deleteFilesAfterCompletion', remove the setting from the copy activity's advanced configuration or JSON payload.
- 4Step 4: To achieve post-copy file deletion, add a separate Delete activity after the copy activity in your pipeline, targeting the source dataset or folder path.
- 5Step 5: Save, republish, and re-run the pipeline to verify the error no longer occurs.