问题描述
HI,
我们收到MIME格式的电子邮件,因为在解码邮件之前我们需要在编排中使用原始副本。
We receive the email in MIME format, as the requirement we need the original copy in orchestration before we could decode the message.
因此,我们调用Orchestration中的MIME管道来解码文件。
Hence to do that, we call the MIME pipeline in Orchestration to decode the file.
现在的问题是,当我们在电子邮件中得到一个0字节的附件时(在MIME中)业务流程被暂停,错误" 消息'receivedEmail'的部分'{B1BA60CF-1F80-438A-B495-AC404D021F98}'包含零字节数据。"
Now the issue is , When ever we get a 0 byte attachment in the email (IN MIME) the orchestration gets suspended with the error " The part '{B1BA60CF-1F80-438A-B495-AC404D021F98}' of message 'receivedEmail' contains zero bytes of data."
此外它不会在异常中捕获,我使用以下异常( Microsoft.XLANGs.Pipeline.XLANGPipelineManagerException和system.general异常),
Also the it wont get catch in exception, i am using the below exception ( Microsoft.XLANGs.Pipeline.XLANGPipelineManagerException and system.general exception ) ,
有没有办法捕获此错误并忽略此要处理的附件?
问候
Nadeem
推荐答案
如果你的范围是"system.Exception"(不是系统)如你提到的.general exception,那么它会捕获范围内发生的所有未处理的异常。
If you a scope with "system.Exception" (not system.general exception as you mentioned), then it would capture all unhandled exception occurred within the scope.
如果你无法捕获异常处理程序中的失败,请检查暂停消息(您收到错误
消息'receivedEmail'的部分'{B1BA60CF-1F80-438A-B495-AC404D021F98}'包含零字节数据)以查看类型它的异常并创建一个类似类型的异常对象来捕获异常。
If you're not able to capture the failure in you exception handler, check the suspended message (where you got the errorThe part '{B1BA60CF-1F80-438A-B495-AC404D021F98}' of message 'receivedEmail' contains zero bytes of data) to see the type of its exception and create a exception object of similar type to capture the exception.
这篇关于对于零字节文件,Orchestration的管道执行失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!