在 ADF 中同时将多个固定宽度文件转换为 CSV

huangapple go评论49阅读模式
英文:

Converting Multiple Fixed Width Files to CSV at a time in ADF

问题

我有一个容器中的三个(.txt)文件。我需要一次将这三个文件全部转换成CSV。

我已经将固定宽度的文件转换为CSV,但每次只转换一个文件。
但我的要求是一次转换多个文件,这些文件都在一个容器中。
有人能帮我找到解决方案吗?需求是,每天我们会收到多个固定宽度文本文件,我们需要将它们转换为CSV并加载到表中

英文:

I have three (.txt) files in a container. I need to convert all these three files at a time to CSV.

在 ADF 中同时将多个固定宽度文件转换为 CSV

I have converted Fixed Width to CSV only one file at a time.
在 ADF 中同时将多个固定宽度文件转换为 CSV
But my requirement is to convert multiple files at a time which are available inside a container.
Could anyone please helps me with a solution.Requirement is, daily we get multiple fixed width text files and we need to convert them to CSV and load them in Tables

答案1

得分: 1

在管道中,使用元数据活动来获取文件夹中的文件列表。
将该列表传递给一个循环。
在循环内部,运行上面显示的数据流,并将文件源和目的地的参数传递给它。

英文:

In a pipeline, use a metadata activity to get a list of files in the folder.
Pass that list to a foreach loop.
Inside the loop, run the dataflow you show above, and pass to it the parameters of file source and destination.

huangapple
  • 本文由 发表于 2023年2月19日 14:01:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/75498296.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定