BizTalk平面文件问题 [英] BizTalk Flat File Question

查看:67
本文介绍了BizTalk平面文件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个BizTalk应用程序,它接受一个平面文件并通过映射运行它以生成下游应用程序使用的输出文件。

I have a BizTalk application that takes a flat file and runs it through a map to produce an output file that is consumed by a downstream application.

我遇到的问题是当平面文件在文件中间有一些错误的字符时,BizTalk应用程序只处理它遇到的点不良字符和 在应用
地图后生成部分文件。这会导致下游进程出错,因为文件缺少所有信息,并且只包含遇到错误字符的记录。

The problem I am running in to is when the flat file has some bad characters in the middle of the file, BizTalk application only processes upto the point where it encounters the bad characters and produces a partial file after applying the map. This is causing errors on the downstream processes as the file is missing all the information and only contains records up to where the bad characters was encountered.

我的问题是,当存在错误的字符并且甚至没有部分处理文件时,如何使整个文件失败。

My question is, how would I fail the entire file when there are bad charaters and not process the file even partially.

推荐答案

当遇到错误的字符时,BizTalk不会生成部分文件。 

BizTalk would not generate a partial file when bad character is encountered. 

您面临的情景与"可恢复的交换处理"选项,但这仅适用于
交换/批处理。如果您在平面文件中有一批记录,并且如果交换中的任何消息损坏,而不是暂停整个交换/批处理,则此选项只会暂停消息中的已损坏消息以及
的其余部分消息被反汇编。但正如我所说,即使这个选项也不会创建部分文件。 

The scenario which you face closely matches to "Recoverable interchange processing" option, but this works only in interchange/batch. if you have batch of records in flat-file and if any of the message within the interchange is corrupt, instead of suspending the whole interchange/batch, this option would only suspend the corrupted message out of the message and rest of the message is disassembled. But as I said, even this option would not create partial file. 

可以检查接收管道的反汇编阶段属性中是否启用了此选项。如果是这样,禁用它。如果您所指的部分文件是批处理文件的其余部分,则禁用此选项将暂停整个批处理/交换/文件
(如果任何记录已损坏)。试试这个。

May be check if this option is enabled in your receive pipeline's disassemble stage property. If so disable it. If the partial file you mean is the rest of the file from the batch, then disabling this option would suspend the whole batch/interchange/file if any of the record is corrupt. Try this.

如果您的案例不是批处理,那么此属性对您没有帮助。如上所述,当遇到错误的字符时,BizTalk不会生成部分文件。它会暂停整个文件。可能是这样生成平面文件架构
的方式,因此这可能是生成平面文件架构的方式。除非我们知道您的平面文件架构,否则我们可能无法帮助您。

If your case is not the batch processing then this property will not be helpful to you. And as said, BizTalk would not generate a partial file when bad character is encountered. It would suspend the whole file. May be this how your flat-file schema is generated, so this may be how your flat-file schema is generated. And we may not help you unless we know your flat-file schema.


这篇关于BizTalk平面文件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆