简体   繁体   English

Biztalk 编排端口问题

[英]Biztalk Orchestration Port Problem

I have a biztalk orchestration which which job is to catch all errors that happen on the sevrer.我有一个 biztalk 编排,它的工作是捕获服务器上发生的所有错误。

I assign this is listen on the message box using a filter on error.我指定这是使用错误过滤器在消息框上侦听。 this works fine.这很好用。

My problem is that is i need to set a message type.我的问题是我需要设置消息类型。 if i choose xml it works fine but is a receieve port crashes with a CSV files the message is wrong and i cant read from it.如果我选择 xml 它可以正常工作,但是接收端口与 CSV 文件崩溃,消息是错误的,我无法从中读取。

Any one got any ideas?有人有任何想法吗?

If you are handling any failed message at all with the orchestration then you will need to accept that this can happen.如果您正在使用编排处理任何失败的消息,那么您将需要接受这种情况可能发生。

If the message is already xml when it fails in the pipeline you can always cast it to XmlDocument.如果消息在管道中失败时已经是 xml,您始终可以将其强制转换为 XmlDocument。

However if the message is a flatfile then there is no orchestration message type you can cast it to.但是,如果消息是平面文件,则没有可以将其转换为的编排消息类型。

The best thing to do is rather than process these with an orchestration have a send port subscribe to the failed messages and route them somewhere else for manual fixing/resubmission.最好的办法是不要使用编排处理这些,而是让发送端口订阅失败的消息并将它们路由到其他地方以进行手动修复/重新提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM