Reputation: 149
I get a weekly file in which has up to 34 columns but sometimes the first line of the file only has 29 columns. I have imported a schema with 34 columns but when I preview the data, data factory, just ignores the schema I've made for the file and shows the first 29 fields.
Apparently we cant ask for headers to be added to file. How do I force data factory to just read the file as having 34 columns because I've given it the schema. Adding the missing 5 pipes which are the delimiter fixes the issue but I don't want to have to do that every week.
Kind Regards.
Upvotes: 0
Views: 679
Reputation: 5074
I have repro’d with some sample data using data flow.
|
and the second row has 5 columns when delimited with |
.|
.ex: split(Column_1, '|')[1]
Upvotes: 1