title: The element 'Send' in namespace '*' has invalid child element 'Add_Records' in namespace '*'. Test Map failure for map file
body: <p>I have the following input file:</p>
  
  <pre><code>H|3      |20110607235508
  V|M065      |3077999   |NH|PAS|20110608|213400|M| |   
  V|M006      |EUR8944   |NY|PAS|20110608|213547|M| |   
  V|M057      |UNV39S    |NJ|PAS|20110608|213908|M| |  
  T|3      |20110607235508
  </code></pre>
  
  <p>And I have this schema</p>
  
  <pre><code>&lt;xs:schema xmlns="http://BizTalkNyCase.Schemas.CaseFileSchema" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://BizTalkNyCase.Schemas.CaseFileSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;schemaEditorExtension:schemaInfo namespaceAlias="b" extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension" standardName="Flat File" xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" /&gt; 
    &lt;b:schemaInfo standard="Flat File" codepage="65001" 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="false" early_terminate_optional_fields="false" allow_message_breakup_of_infix_root="false" compile_parse_tables="false" root_reference="CaseFileSchema" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:element name="CaseFileSchema"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:recordInfo structure="delimited" child_delimiter_type="hex" child_delimiter="0xD 0xA" child_order="infix" sequence_number="1" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;groupInfo sequence_number="0" xmlns="http://schemas.microsoft.com/BizTalk/2003" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:element name="CaseHeader" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="1" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element minOccurs="3" maxOccurs="3" name="CaseRecords"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:recordInfo structure="delimited" child_delimiter_type="char" child_delimiter="|" child_order="infix" sequence_number="2" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;groupInfo sequence_number="0" xmlns="http://schemas.microsoft.com/BizTalk/2003" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:element name="Vehicle" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="1" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="Officer_Id" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="2" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="Vehicle_Tag" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="3" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="State" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="4" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="Vehicle_Type" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="5" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="TowDate" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="6" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="TowTime" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="7" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="TowType" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="8" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="TowIndicator" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="9" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="Precinct" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="10" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="CaseTrailer" type="xs:string"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;b:fieldInfo justification="left" sequence_number="3" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;
    &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;/xs:schema&gt;
  </code></pre>
  
  <p>and this is the output schema</p>
  
  <pre><code>&lt;xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://SqlAdapterCase" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:annotation&gt;
    &lt;xs:appinfo&gt;
    &lt;msbtssql:sqlScript value="exec [Add_Records] @OfficerId=" ", @Precinct=" ", @State=" ", @TowDate=" ", @TowIndicator=" ", @TowTime=" ", @TowType=" ", @Vehicle=" ", @VehicleTag=" ", @VehicleType=" "" xmlns:msbtssql="http://schemas.microsoft.com/BizTalk/2003" /&gt; 
    &lt;/xs:appinfo&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:element name="Send"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:element name="Add_Records"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:attribute name="OfficerId" type="xs:string" /&gt; 
    &lt;xs:attribute name="Precinct" type="xs:string" /&gt; 
    &lt;xs:attribute name="State" type="xs:string" /&gt; 
    &lt;xs:attribute name="TowDate" type="xs:string" /&gt; 
    &lt;xs:attribute name="TowIndicator" type="xs:string" /&gt; 
    &lt;xs:attribute name="TowTime" type="xs:string" /&gt; 
    &lt;xs:attribute name="TowType" type="xs:string" /&gt; 
    &lt;xs:attribute name="Vehicle" type="xs:string" /&gt; 
    &lt;xs:attribute name="VehicleTag" type="xs:string" /&gt; 
    &lt;xs:attribute name="VehicleType" type="xs:string" /&gt; 
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;xs:element name="Recive"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:element name="Success" type="xs:anyType" /&gt; 
    &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;/xs:schema&gt;
  </code></pre>
  
  <p>However when I test the map I get this error</p>
  
  <blockquote>
    <p> as
    input to the map. C:\Users\Administrator\Desktop\error.xml: error
    btm1046: Output validation error: The element 'Send' in namespace
    '<a href="http://SqlAdapterCase" rel="nofollow">http://SqlAdapterCase</a>' has invalid child element 'Add_Records' in
    namespace '<a href="http://SqlAdapterCase" rel="nofollow">http://SqlAdapterCase</a>'. Test Map failure for map file</p>
  </blockquote>