Microsoft KB Archive/884622

= Parsing a complex flat file may fail in BizTalk Server 2006 and in BizTalk Server 2004 =

Article ID: 884622

Article Last Modified on 6/16/2006

-

APPLIES TO


 * Microsoft BizTalk Server 2006 Standard Edition
 * Microsoft BizTalk Server 2006 Enterprise Edition
 * Microsoft BizTalk Server 2006 Developer Edition
 * Microsoft BizTalk Server 2004 Enterprise Edition
 * Microsoft BizTalk Server 2004 Developer Edition
 * Microsoft BizTalk Server 2004 Partner Edition
 * Microsoft BizTalk Server 2004 Standard Edition

-





SYMPTOMS
When you try to parse a complex flat file in Microsoft BizTalk Server 2006 or in Microsoft BizTalk Server 2004, the parser may fail, and you may receive an error message that is similar to one of the following error messages:

Error message 1

Unexpected Data Found while looking for

Error message 2

Unable to match the data in the input stream



CAUSE
This problem may occur when the parser_optimization property is set to the default value of &quot;speed&quot; in the schema. Additionally, if you have many optional nodes in the same group or record, the lookahead_depth property may not be set correctly.



RESOLUTION
To resolve this problem, set the parser_optimization property to &quot;complexity&quot; and the lookahead_depth property to &quot;0&quot; (zero) in the schema. The parser_optimization property and the lookahead_depth property are not present in the user interface. You must manually change the properties in the schemaInfo element, as in the following example: 



MORE INFORMATION
BizTalk Server has the following two modes for the algorithm to parse a flat file into XML:
 * &quot;speed&quot;
 * &quot;complexity&quot;

By default, the setting for the parser_optimization property is &quot;speed.&quot; This setting is optimized to decrease parsing time. The &quot;speed&quot; setting can handle most flat files but cannot deal with all the ambiguities that the &quot;complexity&quot; setting can. The &quot;complexity&quot; mode is not quick but can handle a wider range of ambiguities.

There are five properties that cannot be changed in the BizTalk Server 2004 user interface. The following table lists the flat file node properties:

Note If you set the allow_early_termination property to true, early termination of a positional record is permitted in cases where the right-most or outermost field is less than its defined length.

Additional query words: validate parse EDI BTS

Keywords: kbbiztalk2004-2006swept kbtshoot kbprb KB884622

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.