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="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://SampleCompany.Integration.BreakFileImport.BreakImportFile" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:appinfo>
      <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"
Advertisements
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:

WordPress.com Logo

You are commenting using your WordPress.com 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