Remove Duplicate Columns in Azure Data Factory

Dinesh Prajapati 1 Reputation point

In Azure ADF, if there are two duplicate columns. lets says address & address , what ADF does is it make first "address" as address 1 and second "address " as "address some suffix". This causes issue when the data goes to sink, because it does not recognise address1. In the database, the column name is "address".
This is the issue.

Could you please let me know when we can handle this in Azure Data factory.

The second duplicate column is getting removed, but since the first columnname "address" gets changed to "address1", it causes issue.

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
215 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,208 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 19,116 Reputation points Microsoft Employee

    Hi @Dinesh Prajapati ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your question here.

    As I understand your query, you are trying to handle duplicate column names from dataset using Azure data factory pipelines. Kindly check if the below steps help resolving your issue:

    1. Ignore the column headers in the source dataset.


    1. Update the mappings


    1. Skip line count in the source so that headers are ignored while copying the data


    Hope this will help. Please let us know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators