SSIS 2012 - Web服务任务 - 输出异常

时间:2013-10-16 13:31:06

标签: web-services visual-studio-2012 ssis sendmail ssis-2012

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

实际的Web服务类型无效。出于测试目的,Web Service只会抛出一个新的Exception,并带有一条消息。

我已将任务输出到变量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服务任务中的异常导入发送邮件任务?

0 个答案:

没有答案