Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Biztalk
acce.forsuppliers
acce.hipaa
acce.hl7
acce.rosettanet
accelerator.finserv
admin
appintegration
framework
general
library
nonxml
orchestration
sdk
server
setup
tools
xlangs
xsharp
  
 
date: Mon, 17 Mar 2008 20:01:31 GMT,    group: microsoft.public.biztalk.library        back       


RE: Flat file disassembler   
> Hi, I am getting below error while trying to process a flat file
> ==================================================
> There was a failure executing the receive pipeline: 
> "CAPS.IN.SCHEMAS.RECEIVECAPS01IN_FF" Source: "Flat file disassembler"
> Receive Location: "c:\test\*.arc" Reason: Document type 
> "http://caps.in.caps_appreceived#appreceived" does not match any of the given 
> schemas.
> ==================================================
> 
> Schema which I am using in the Flat file disassembler is a Document Envelope 
> schema. Location in the error message is one of the documents which I 
> imported into the envelope schemas. As a note I am using a separate project 
> for schemas and the custom pipeline which I am calling with in my 
> orchestration project. I tried moving the custom pipeline into my 
> orchestration project but still I am getting the same error. Any help is much 
> appreciated.
> 
> Regards,
> Suresh
> 

I think you're relying upon your past experience with the Xml Disassembler, and the Flat File Disassembler has different behavior.  All of the steps you've gone thru work when dealing with Xml Files in an envelope pattern and the Xml Disassembler.  However, since the Flat File Disassembler has no property for the Envelope Schema, just a Document Schema property, it inherently understands Enveloping and Debatching. All it requires is a Document schema that is annotated with the correct Child Delimiter (Hex, CRLF, Postfix in our case) and it will debatch a flat file into Child Records without needing to know anything about the Envelope.  Additionally, this same Document Schema will fail when you try to test it against a batch flat file containing multiple records when you try to unit test it in Visual Studio using the Validate Instance tool.  The appropriate testing tool to use is FFDasm.exe, which is one of the Pipeline tools; read about them here: http://msdn2.microsoft.com/en-us/library/aa547988.aspx

There’s a BizTalk Sample for Debatching Flat Files, you can find it here:
C:\Program Files\Microsoft BizTalk Server 2006\SDK\Samples\Pipelines\AssemblerDisassembler\EnvelopeProcessing


BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
date: Mon, 17 Mar 2008 20:01:31 GMT   author:   Daniel Hester

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us