Azure SSIS IR - 使用 IR 节点的临时文件夹中的文件

Azure SSIS IR - working with files in the temp folder of the IR node

我已经设置了自定义 SSIS IR,但是我在从 IR 节点上的当前工作目录或临时文件夹读取文件时遇到问题

https://docs.microsoft.com/en-us/sql/integration-services/lift-shift/ssis-azure-files-file-shares?view=sql-server-2017

我的测试包的工作流程是

最后一步是我遇到问题的地方,我收到以下错误消息。可能看起来与安全有关,但不知道如何访问 SSIS IR 节点来检查它。

Execute SQL Task:Error: Executing the query "DECLARE @request VARCHAR(MAX) SELECT @request =..." failed with the following error: "Cannot bulk load because the file ".\testfile.json" could not be opened. Operating system error code (null).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

我该如何解决这个问题?

从错误消息来看,您似乎在执行 SQL 任务中使用 BULK INSERT 将数据加载到 Azure SQL 数据库中。 BULK INSERT into Azure SQL DB 只能从 Azure 存储 Blob 工作,但不能从文件 systems/SSIS IR 节点工作。要将数据从 SSIS IR 节点的当前工作目录加载到 Azure SQL 数据库中,您可以使用具有平面文件源和 ADO.NET 目标的数据流。