0

Currently, I have an Excel file that I'm processing using a mapping data flow to remove some null values.

This is my input file: enter image description here

and after remove the null values I have:

enter image description here

I'm sinking my data into a Cosmos DB but I need to change the names of the columns and set my first row as headers...

I need to do this (First row as a header) in the previous step before Sink and y Can't use the mapping option a set manually the names of the columns because maybe some of these position of columns can change

Any idea to do this?

Thanks

1 Answer 1

0

First row as a header can only check in dataset connection.

As a work around, you can save your excel to blob(csv format) after removing null value.

Then create a copy data activity or data flow, use this csv file as source(check first row as header), Cosmos DB as sink.


Update

Setting of sink in data flow:

enter image description here

enter image description here

enter image description here

Data preview of sink:

enter image description here

Result:

enter image description here

1
  • Hi Steve, I tried to do that but when the csv is saved, this CSV includes the names of the columns like: col1, col2, etc Oct 1, 2020 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.