Copy Activity Not Recognizing an Existing Column in a CSV File

Matt Tkachev 20 Reputation points
2025-10-28T16:16:15.7866667+00:00

Hello,

We have a simple Azure Data Factory pipeline that takes a CSV file as input and copies its contents to a Snowflake table. This setup had been working reliably for several months. However, starting last week, the Copy activity has begun failing.

The failure occurs when the Copy activity attempts to map the CSV columns to the Snowflake table. The error message (included below) indicates that one of the columns (Adjustment Note) cannot be found in the source file — even though the column still exists in the CSV.

If we remove the Adjustment Note column from the mapping, the pipeline still fails, this time not finding the next column in sequence. We’ve also tested the pipeline with older CSV files that previously loaded successfully, but the same error occurs.

I’ve attached a screenshot showing that the column does exist in the CSV file, as well as the full error message below.

Error details (Azure Data Factory):

ErrorCode=UserErrorInvalidColumnMappingColumnNotFound, 
Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,
Message=Invalid column mapping provided to copy activity: '{...,"Adjustment Note":"ADJUSTMENT_NOTE", ...}', 
Detailed message: Column 'Adjustment Note' defined in column mapping cannot be found in Source structure. 
Check column mapping in table definition.
Source=Microsoft.DataTransfer.Common

It appears that the Copy activity is no longer recognizing the source schema correctly. Could this be related to a recent ADF update?

Please advise on possible causes or next troubleshooting steps. Let me know if any other details are needed.

Thank you! CSV_Column

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

Answer accepted by question author
  1. Amira Bedhiafi 40,576 Reputation points Volunteer Moderator
    2025-10-28T18:16:18.84+00:00

    Hello Matt !

    Thank you for posting on Microsoft Learn Q&A.

    ADF isn’t seeing the header value exactly as you expect and a small change in the CSV can make the source schema different, so the name in your mapping no longer matches.

    I can see that the header looks like Adjustment Note but the actual bytes are something like \ufeffAdjustment⍽Note (BOM with non breaking space) or have trailing spaces so try to go to source dataset then preview data and expand column list to see exact detected column names. If you see weird characters that’s it.

    Try to export CSV again as UTF-8 without BOM and edit the header to plain ASCII and set first row as header to false, skip header line count to 1, and define the columns explicitly and then map by ordinal position instead of by name.


0 additional answers

Sort by: Most helpful

Your answer

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