0

我的控制流中有一个 Web 服务任务。

实际的 Web 服务类型是无效的。出于测试目的,Web 服务只是抛出一个带有消息的新异常。

我已将任务输出到变量 User::ServiceResponse

失败路径转到发送邮件任务,该任务使用变量 User::ServiceResponse... 但是,收到的电子邮件不包含任何文本。

当包执行时,即时窗口确实显示了一个很长的错误,其中部分包含我的异常消息。“亚当斯错误信息”接近尾声。

SSIS package "....\WebProfile.dtsx" starting.
Error: 0xC002F304 at SVC, Web Service Task: An error occurred with the following error message:
"Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException:
The Web Service threw an error during method execution.
The error is: System.Web.Services.Protocols.SoapException:
Server was unable to process request. --->
System.Exception: Adams Error Message
   --- End of inner exception stack trace ---.

无需编写大量自定义脚本...如何将 Web 服务任务中的异常放入发送邮件任务中?

4

0 回答 0