Reputation: 153
Failure happened on 'Sink' side. ErrorCode=UserErrorInvalidColumnName,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The column Prop_0 is not found in target side,Source=Microsoft.DataTransfer.ClientLibrary.
All the part files in the ADLS GEN2 have 8 columns and the sink table also has 8 columns and there is no such column called Prop_0 in part files.
Inputs are part files saved in ADLS GEN2 -
Content of one of the part file -
Mapping on ADF -
Output of sql query executed on Azure query editor -
Upvotes: 3
Views: 10283
Reputation: 6104
You get this error when your source files don’t have a header (or consider first row as header when you have a header for source files) and you have not enabled the column mapping option. Prop_0
, Prop_1
etc., will act as column names when the source file does not have a header (or not enabled).
In this case, when you disable the column mapping option (cleared or skipped), the copy activity will try to insert columns from source using the name, only when they match your sink (table). In the following image, I have not imported the schema (skipped) and it throws the same error when I run the pipeline.
Since your destination does not have Prop_0
column, it throws the following error:
Follow the steps specified below to rectify this error:
import schemas
(Clear and import again if required). Make changes in the mapping if necessary, according to your requirements.Upvotes: 6