[英]Delete CSV File from FTP server in Azure Data Factory
I can't seem to figure out how to do this.我似乎无法弄清楚如何做到这一点。
I'm trying to use the delete activity to remove the CSV file I just processed in a pipeline.我正在尝试使用删除活动来删除我刚刚在管道中处理的 CSV 文件。
After setting up the delete activity, I see nothing that indicates that it'll delete the file from my FTP server.设置删除活动后,我看不到任何迹象表明它将从我的 FTP 服务器中删除文件。 After I debug/run the pipeline, I get an error.调试/运行管道后,出现错误。 Everything I've seen related to using this activity is in regard to some other storage type.我所看到的与使用此活动相关的所有内容都与其他一些存储类型有关。
Here's the actual error:这是实际的错误:
{
"errorCode": "3703",
"message": "Invalid delete activity payload with 'folderPath' that is required and cannot be empty.",
"failureType": "UserError",
"target": "DeleteCSVFromFTPServer"
}
But there's nowhere on the activity to specify the folder path.但是活动中没有指定文件夹路径的地方。
Can anyone point me to and FTP specific example of how to use the delete activity?谁能指出我和 FTP 如何使用删除活动的具体示例?
I figured I'd answer my own question since I figured this out about 5 minutes after I posted the question.我想我会回答我自己的问题,因为我在发布问题大约 5 分钟后发现了这一点。
Hopefully this will help someone else out down the road.希望这会帮助其他人。
The issue was that in the Dataset I had not supplied a value for the folder path.问题是在数据集中我没有为文件夹路径提供值。 Leaving it empty worked on import, but would not work for the delete.将其留空适用于导入,但不适用于删除。
I supplied a .
我提供了一个.
in the dataset's file path
field as shown below.在数据集的file path
字段中,如下所示。
Now the pipeline will run completely as I expect.现在管道将按照我的预期完全运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.