数据工厂 - 将多张工作表放入 CSV 文件
Data Factory - Multiple sheets into CSV file
我正在尝试在多个 excel 工作表上创建一些派生列和展平转换。我的文件大约有 20 张,我需要处理其中的大约 15 张。
这是我当前的数据流:
有没有办法创建一个循环,这样我就可以 select 我想要的工作表,然后 运行 它们通过该数据流,然后最后将它们全部加入一个数据集并保存它们作为 CSV 文件返回到 Blob 存储?
不幸的是,Azure 数据工厂无法在 运行 时间内知道 excel 中的 sheet 个名称。
Best way is you can save your sheet names in some file or table and
then use lookup activity to get that sheet names.
Once you get sheet names use foreach activity
to pass that sheet names
and loop through each sheet to implement your logic.
注意:您的 excel 应该有一个数据 sheet,参数化 sheet 个名称。
您也可以对数据流进行参数化,并将 sheet 名称从循环传递到数据流中。
我正在尝试在多个 excel 工作表上创建一些派生列和展平转换。我的文件大约有 20 张,我需要处理其中的大约 15 张。
这是我当前的数据流:
有没有办法创建一个循环,这样我就可以 select 我想要的工作表,然后 运行 它们通过该数据流,然后最后将它们全部加入一个数据集并保存它们作为 CSV 文件返回到 Blob 存储?
不幸的是,Azure 数据工厂无法在 运行 时间内知道 excel 中的 sheet 个名称。
Best way is you can save your sheet names in some file or table and then use lookup activity to get that sheet names.
Once you get sheet names use
foreach activity
to pass that sheet names and loop through each sheet to implement your logic.
注意:您的 excel 应该有一个数据 sheet,参数化 sheet 个名称。
您也可以对数据流进行参数化,并将 sheet 名称从循环传递到数据流中。