Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
472 views
in Technique[技术] by (71.8m points)

azure data factory 2 - Load multiple xlsx from Blob to ADF

I created a dataset containing all xlsx files (file per country) from Blob.

enter image description here To validate if all countries are loaded to the data flow, I created a sink after loading source data.

In the data preview, there is only one country (I set up debug settings to make sure all data come to be checked by statistics function); From the output (format txt), I view one country, then Blanks which are separated by comma, then some countries, then blanks.

I reviewed the blogs, and set up a wildcard path which is the same as File Path. The problem is still unsolved.

I appreciate someone providing any insights and comments to fix it.

question from:https://stackoverflow.com/questions/65906594/load-multiple-xlsx-from-blob-to-adf

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Make sure these .xlsx files have the same schema and sheet name, that's the key. I test and it works. All the files will be loaded.

Here are my example excel files A.xlsx and B.xlsx, I put them in the one container: enter image description here enter image description here

With Copy data tool, set the container as path and all the files are loaded correctly: enter image description here

Sink settings: enter image description here

And here's the copy active overview: enter image description here

Please note:

  1. use Merge files in Sink Copy behavior.
  2. set the delimiter which data not contains.

Output file AB.txt: enter image description here

HTH.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...