简体   繁体   English

从 Azure 数据工厂中的 FTP 服务器中删除 CSV 文件

[英]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.

相关问题 来自FTP的Azure数据工厂二进制副本 - Azure data factory binary copy from FTP Azure 数据工厂从 csv 文件的列名中删除空格 - Azure Data Factory removing spaces from column names of csv file Azure数据工厂 - 从FTP服务器复制多个父文件夹中的特定文件 - Azure Data Factory- Copy specific files from multiple Parent folders from FTP Server Azure 数据工厂创建一个空的 csv 文件 - Azure Data Factory to create an empty csv file 从另一个 CSV 文件(Azure 数据工厂)向 CSV 文件添加列 - Add column to CSV File from another CSV File (Azure Data Factory) 如何在没有 Azure 数据工厂的情况下将 csv 文件从 blob 存储加载到 azure sql 数据库 - How to load csv file from blob storage to azure sql database without Azure Data Factory 使用 Azure 数据工厂从 SFTP 获取 ZIP 文件到 Azure Datalake 并将其存储为 ZCC8D68D68C551C4ADEAFDE6 格式 - Get ZIP file from SFTP to Azure Datalake using Azure data factory and store it into CSV format 使用Azure Data Factory从Excel或CSV文件复制数据并在输入文件上执行转换 - Copy data with Azure Data Factory from Excel or CSV File and perform transformation on the input file Azure 数据工厂将一个 CSV 文件拆分为多个 CSV 文件? - Azure data factory to split a CSV file into multiple CSV files? Azure 数据工厂:通过管道从 csv 导入到 sql 服务器期间出现错误和意外的数据类型转换错误 - Azure Data Factory: Wrong and unexpected Datatype conversion error during import from csv to sql server via pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM