ErrorCode=UserErrorInvalidColumnMappingColumnNotFound

DPotts 5 Reputation points
2024-07-08T13:46:54.3366667+00:00

I have a staging table and target table with exactly the same schemas, only different data types e.g. nvarchar(max) / nvarchar(50).

I'm attempting to insert the data from the staging to the target using a Copy Activity.

I have removed parameterised aspects of the pipeline and hardcoded the table names and explicitly imported schema mapping.:

User's image

The error I get is:

Failure happened on 'Sink' side. ErrorCode=UserErrorInvalidColumnMappingColumnNotFound,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column name 'FECode' cannot be found in either source data or column mapping.,Source=Microsoft.DataTransfer.DataContracts,'

Clearly, it is in both the source and sink destinations. Please could someone advise?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,895 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.