I'm trying to do an ADF file consolidator pipeline with dynamic column headers

James Southall 0 Reputation points
2025-05-02T12:40:42.5366667+00:00

I am trying to merge multiple files but lets just say its 2.

File A with 5 columns (Address Line 1, 2, 3, 4, 5)
File B with 7 columns (Address Line 1, 2, 3, 4, 5, Telephone Number, Mobile Number)

I expect the output file to have all 7 columns but those Number fields would be blank for rows that come in from File A.

My current solution I have a schema where I read source files with allow schema drift on, if I only get files that are like File B then all the data is there as expected but if any of the files are like File B the Telephone Number and Mobile Number fields are ALL empty/null even for the rows that had those populated in their initial file.

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

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.