Reputation: 5
My requirement in Azure data factory is to load multiple excel files which contains multiple excel sheets.
Like Excel workbook1 contains sheet1, sheet2, sheet3, sheet4...and excel workbook2 contains sheet1, sheet2 and so on. Like that I have around 50 excel workbooks.Is there a way, I can get all the excel workbook into adf.
Upvotes: -2
Views: 4042
Reputation: 5074
Currently, there is no direct way to pull the sheet names dynamically from excel files using Azure Data Factory.
As a workaround, you can implement using one of the below methods.
Method 1:
ForEach
activity and pass the current item to the copy data
activity dataset properties.Method 2:
If you have different sheet names in each excel file, you can create a file to add the file names and sheet names to it.
Using the lookup
activity, you can pull the data from the file and pass the file name and sheet name to the ForEach
activity by parameterizing the sheet name in the dataset.
You can raise a feature suggestion from the azure data factory home page under feedback.
Upvotes: 2