BizTalk Tip : Flat File Error ‘Unexpected data found while looking for: \r\n’

If you using a positional flat file and getting an error similar to this when attempting to validate an instance try turning on early termination by setting the allow_early_termination attribute to true in your flat file schema.

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://SampleCompany.Integration.BreakFileImport.BreakImportFile" xmlns:b="" targetNamespace="http://SampleCompany.Integration.BreakFileImport.BreakImportFile" xmlns:xs="">
      <b:schemaInfo standard="Flat File" root_reference="BreakImportRecord" default_pad_char=" " pad_char_type="char" count_positions_by_byte="false" parser_optimization="speed" lookahead_depth="3" suppress_empty_nodes="false" generate_empty_nodes="true" allow_early_termination="true"
This entry was posted in BizTalk Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s