Skip to main content

OnError Source Files

Determines if the source files are copied to the defined error container on error, once processing is completed, or with Use Sub Folder enabled to a subfolder named after the Error Container value, under the same container name and folder path as the source files. With Delete Source Files enabled, each copied file is then deleted from the source location.

The file move applies to files read from a source connection that is cloud enabled with the Azure Blob Storage, Data Lake Gen 2, Data Lake Gen 1, Azure File Storage or File System Linked Service Type or, outside a Fabric project, with the Fabric Lakehouse Linked Service Type and a file format System Type, and in a Fabric project also to files read from a source connection of the Azure Blob Storage, Azure Data Lake Store or Azure File Server Connection Type with Cloud off or with no Linked Service Type. Here the landing connection is the Landing Connection of the project or, in a project without one, a Target Connection with the Landing Area Integration Stage. The Data Factory pipeline that loads the object from such a source connection writes the move when the landing connection has the Binary Format System Type or the project uses Pushdown Extraction, and the Persistent Landing Connection or, without one, the landing connection is of the Azure Blob Storage, Azure Data Lake Store or Azure File Server Connection Type or, outside a Fabric project, is cloud enabled with the Fabric Lakehouse Linked Service Type and a file format System Type. An Archive Source Files extension point that applies to the object takes the place of the move. A Databricks project with Pushdown Processing generates no file move for this setting.

When to Change This Setting​

Keep the default Y so source files from failed loads are kept separate in the error location described above for inspection and reprocessing. Disable it when failed source files should stay where they are instead.

SettingInteraction
Error ContainerThe container the failed files are copied to, or the name of their subfolder with Use Sub Folder enabled
Archive Source FilesThe success-path move for the same source files
OnError Landing FilesThe equivalent error handling for landed files

Notes​

  • This setting is part of the Azure settings category.
  • The default value for this setting is Y.