Sivanesan
Sivanesan

Reputation: 3

Columns gets removed while loading an excel file to cosmos dB in ADF using data flow

I am new to ADF and cosmos db. I am trying to load an excel which has 34 columns from a blob to a cosmos db container using a mapping data flow . While debugging the data flow I could preview all the columns in the source and its data available in both source as well as sink. But after running the pipeline(using trigger/debug) when I check the items/documents in the cosmos db container certain columns are missing. When I do the same data load using copy activity all the columns are getting inserted and this seems to be weird. I need to change the data types of few columns before loading into the database and that's the reason I am trying to load the data using data flow activity. I have been stuck at this for so long and wasn't able to proceed further. Any help would be appreciated.

Upvotes: 0

Views: 156

Answers (1)

NiharikaMoola
NiharikaMoola

Reputation: 5074

I had repro’d and was able to load all (34) columns into cosmos db successfully using data flow.

  1. Source projection

enter image description here

  1. Source data preview: Here C1 column is of string type.

enter image description here

  1. Changed the datatype of the C1 column from string to an integer.

enter image description here

  1. Sink transformation: Make sure you have included all source columns in sink mappings.

enter image description here

  1. Cosmosdb Output: It includes all 34 columns from the source and C1 as integer type.

enter image description here

Upvotes: 0

Related Questions