Reputation: 59
New to ADF, came across this issue the other day. Is there way to deal with mapping a CSV file that come in from the blob without any headers and load them into the AzureDB?
Anyone else came across such thing? Any tips/advance greatly appreciated!
Regards, Ryoss
Upvotes: 0
Views: 1814
Reputation: 7738
Yes, the Mapping feature in Copy activity will map the column ordinals to the SQL schema.
First create a Dataset for the CSV file and uncheck "First row as header":
On the "Schema" tab, it will show the number of columns but no names:
Second create a Dataset for the SQL Table with the schema:
Finally on the Copy activity "Mapping" tab, press "Import schemas" to reveal the ordinal mapping:
Aside: If you need something more robust, you can do this in a Data Flow, where the Source columns will have actual names:
Upvotes: 1