metricsign
Start free
Medium severityconfigurationMicrosoft Fabric

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

  1. 1Step 1: Open the copy activity in your Fabric Data Factory pipeline editor and identify the connector being used as the source.
  2. 2Step 2: Consult the Microsoft Fabric connector documentation to confirm whether 'deleteFilesAfterCompletion' is supported for that specific connector.
  3. 3Step 3: If the connector does not support 'deleteFilesAfterCompletion', remove the setting from the copy activity's advanced configuration or JSON payload.
  4. 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.
  5. 5Step 5: Save, republish, and re-run the pipeline to verify the error no longer occurs.

Frequently asked questions

How do I know which connectors support 'deleteFilesAfterCompletion'?

Support for 'deleteFilesAfterCompletion' is documented per connector in the Microsoft Fabric Data Factory connector reference. As a general rule, it is supported only for file-based storage connectors operating in direct binary copy mode. Always check the specific connector's documentation before using this setting.

What is the difference between error 20771 and error 20772?

Error 20771 indicates that 'deleteFilesAfterCompletion' is unsupported because the copy activity is not in direct binary copy mode — the fix is to switch modes or remove the setting. Error 20772 indicates the connector itself does not support the setting at all, regardless of copy mode — the fix is to remove the setting and use a Delete activity instead.

Other configuration errors