10-08-04 10:48 PM
Hi Sandeep,
By my understanding, using the header option in the flat file parsing
is for stripping the header from the body the file you want to
further process. You can promote properties on this header for use
later in an orchestration / filtering, but once it has been stripped
from the document it is no longer a document in its own right.
It sounds like you should rather be creating one document schema that
contains a header record (occurs once) and a detail record (occurs
many times). In your mapper you would then have the header record
and detail record(s) available in the mapping process.
I am not sure if this will satisfy your particular requirements?
Kind Regards,
Nabeel Prior
2004/10/07 00:39:04
Sandeep Nair <"Sandeep Nair"@discussions.microsoft.com> wrote in
message
<82946F0C-4250-46AF-BF27-85088D865A41@microsoft.com>
> Hi,
>
> I have the following requirement -
>
> I have a positional text file that looks like this -
>
> HI001AddressName - { Header }
> DDate00100020007 - {Detail Record for the Header above}
>
> I have defined a schema for the header and another schema for the
detail in
> Biztalk 2004.
> What i need to do is this - i have to map the data from the source
file to a
> destination schema. The destination schema requires data from both
the header
> as well as the detail.
> I have also defined the destination schema. I have defined 2 maps -
one for
> the header and one for the detail (so that i can map the respective
fields to
> the destination)
> In my receive pipeline, i specify the document schema = Detail
schema and
> Header Schema = Header schema.
> I also have a receive and send port. In the send port, under the
'Filters &
> Maps' i am able to specify both my header and detail map. But when
the
> destination XML file is created, i am seeing that only data from
the Detail
> part of the source file is being used. The interface is completely
ignoring
> the data from the header.
>
> Any idea why this could be happening?
>
> Thanks and regards,
>
> Sandeep.
[ Post a follow-up to this message ]
|