Microsoft KB Archive/840303

= Flat file validation fails if the HIPAA Accelerator is installed and the first node of the schema is &quot;X12_EnvelopeHeader&quot; =

Article ID: 840303

Article Last Modified on 4/7/2004

-

APPLIES TO


 * Microsoft BizTalk Server 2002 Standard Edition
 * Microsoft BizTalk Accelerator for HIPAA 2.0 Standard Edition

-



SYMPTOMS
If you try to validate a flat file document with a schema when the first node is named X12_EnvelopeHeader, you may receive an error message that is similar to the following:

The required &quot;TS834A1__BGN_BeginningSegment&quot; record was not found in the inbound document. The parser failed to convert the document due to processing errors. See the following messages for details.

A dialog box with an error message that is similar to the following is generated in the Microsoft BizTalk Mapper when you try to use the Test Map command with a flat file document and when the first node of the inbound schema is named X12_EnvelopeHeader:

Unable to import native file  because the data is corrupt. Choose another file or fix the data in the native file.

Note  is a placeholder for the actual flat file document that you are testing with.

The Test Map command is available on the Tools menu in the BizTalk Mapper.



CAUSE
This behavior occurs when the BizTalk Server Accelerator for HIPAA 2.0 is installed on your computer that is running Microsoft BizTalk Server 2002. The BizTalk Server Accelerator for HIPAA 2.0 installs an updated version of the Microsoft BizTalk Server Validate Document Instance Library file (Validatedoc.dll). When you install the BizTalk Server Accelerator for HIPAA 2.0, the existing Validatedoc.dll file is replaced by a new file that is named Hipaavalidatedoc.dll. The new file interprets a schema with the first node named X12_EnvelopeHeader as a HIPAA compliant document. If you validate a non-HIPAA file against a schema with a first node named X12_EnvelopeHeader, the BizTalk Server Validate Document Instance Library file generates the error that is mentioned in the &quot;Symptoms&quot; section.



RESOLUTION
Do not use a schema with a first node that is named X12_EnvelopeHeader to validate flat files that are not HIPAA compliant on a computer that is running the BizTalk Server Accelerator for HIPAA 2.0. If you use flat file schemas with a first node that is named X12_EnvelopeHeader to validate non-HIPAA compliant flat file documents, you must rename this node to avoid the error that is described in the &quot;Symptoms&quot; section. Alternatively, you can validate non-HIPAA compliant flat file documents against a schema with a first node that is named X12_EnvelopeHeader on a computer that is running BizTalk Server 2002 that does not have the BizTalk Server Accelerator for HIPAA 2.0 installed.



STATUS
This behavior is by design.

