简体   繁体   中英

How to parse each row of an excel using Azure Data Factory

here is my requirement:

  1. I have an excel with few columns in it and few rows with data
  2. I have uploaded this excel in Azure blob storage
  3. Using ADF I need to read this excel and parse the records in it one by one and perform an action of creating dynamic folders in Azure blob.
  4. This needs to be done for each and every record present in the excel.
  5. Each record in the excel has some information that is going to help me create the folders dynamically.

Could someone help me in choosing the right set of activities or data flow in ADF to do this work?

Thanks in advance!

This is my Excel file as a Source.

在此处输入图像描述

I have created folders in Blob storage based on Country column. I have selected DataFlow activity.

在此处输入图像描述

As shown in below screenshot, Go to Optimize tab of Sink configuration .

Now select Partition option as Set Partition .

Partition type as Key .

And Unique value per partition as Country column.

Now run Pipeline.

在此处输入图像描述

Expected Output:-

在此处输入图像描述

Inside these folders you will get files with corresponding data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM