SSIS 组件故障不起作用
SSIS component failure does not work
我正在使用 Visual Studio 2017 和 SQL Server 2016。
我有一个 SSIS 包,在那个包中我有一个 SQL 脚本任务,它调用一个简单的脚本,其中有一个错误。
我不知道为什么当有错误时,流程不去 throw Failure
path.
这是我的包的一部分,我有失败路径。
这是我的 sql 代码:
SELECT CONVERT(BIGINT, N'aa1') AS Status
这是我的错误:
[Execute SQL Task] Error:
Executing the query "SELECT CONVERT(BIGINT, N'aa1') AS Status
..." failed with the following error:
"Error converting data type nvarchar to bigint.".
Possible failure reasons: Problems with the query,
"ResultSet" property not set correctly,
parameters not set correctly,
or connection not established correctly.
为什么我的任务失败与我的失败路径有争议?
根据您在任务之间所做的link,纯线表示AND
。
所以 move_file_to_fatal_error 无法执行,因为它正在等待成功和错误路径来实现。
您应该编辑任务与 FST_Move 和 select 之间的两个 link Logical OR
我正在使用 Visual Studio 2017 和 SQL Server 2016。
我有一个 SSIS 包,在那个包中我有一个 SQL 脚本任务,它调用一个简单的脚本,其中有一个错误。
我不知道为什么当有错误时,流程不去 throw Failure
path.
这是我的包的一部分,我有失败路径。
这是我的 sql 代码:
SELECT CONVERT(BIGINT, N'aa1') AS Status
这是我的错误:
[Execute SQL Task] Error:
Executing the query "SELECT CONVERT(BIGINT, N'aa1') AS Status
..." failed with the following error:
"Error converting data type nvarchar to bigint.".
Possible failure reasons: Problems with the query,
"ResultSet" property not set correctly,
parameters not set correctly,
or connection not established correctly.
为什么我的任务失败与我的失败路径有争议?
根据您在任务之间所做的link,纯线表示AND
。
所以 move_file_to_fatal_error 无法执行,因为它正在等待成功和错误路径来实现。
您应该编辑任务与 FST_Move 和 select 之间的两个 link Logical OR