BizTalk Server General - Mass Copy Functoid Issue (BTS04)

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > September 2004 > Mass Copy Functoid Issue (BTS04)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mass Copy Functoid Issue (BTS04)
GAT

2004-09-24, 5:49 pm

Hi,

I'm trying to use the Mass Copy Functoid to map a message substructure to an
<any> element within the destination schema. However, when I test the
mapping, error messages are returned. Even if I reproduce the example given
in BTS2004 Documentation article "Mass Copy Functoid" and test the mapping
(within orchestration designer), it fails with errors similar to "Could not
find schema information for element 'Element1'....", "The element
'CustomerOrder' has invalid content" and "The 'Element2' element is not
declared". It's simple to reproduce the problem. My input schema looks like
this:

<Root>
<CustomerOrder>
<Element1>Hello</Element1>
<Element2>HelloAgain</Element2>
..... zero or more subsequent elements
</CustomerOrder>
</Root>

and my output schema is:

<Root>
<CustomerOrder>
<any>
</CustomerOrder>
</Root>

Within BizTalk mapper, I map the CustomerOrder node of the input schema to
the CustomerOrder node of the output schema via the Mass Copy Functoid. But I
can't seem to avoid errors, even if I reproduce the example mapping in Help.

Can anyone suggest what the problem might be? Are there any rules or gotchas
with mapping to an <any> element which are not mentioned in the Documentation?

Many thanks!

GAT



Tatyana Yakushev [MSFT]

2004-09-24, 5:49 pm

Set "Process Content" to Skip on the <Any> node. (This is covered in documentation).

Tatyana
--------------------
>Thread-Topic: Mass Copy Functoid Issue (BTS04)
>thread-index: AcSiSG90ARPL1BaKQY2hwiHAL0xwZA==
>X-WBNR-Posting-Host: 217.140.1.140
>From: =?Utf-8?B?R0FU?= <GAT@discussions.microsoft.com>
>Subject: Mass Copy Functoid Issue (BTS04)
>Date: Fri, 24 Sep 2004 08:09:06 -0700
>Lines: 41
>Message-ID: <2552FAAA-C570-42B6-996E-99DC91B417F5@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.biztalk.general
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.general:19843
>X-Tomcat-NG: microsoft.public.biztalk.general
>
>Hi,
>
>I'm trying to use the Mass Copy Functoid to map a message substructure to an
><any> element within the destination schema. However, when I test the
>mapping, error messages are returned. Even if I reproduce the example given
>in BTS2004 Documentation article "Mass Copy Functoid" and test the mapping
>(within orchestration designer), it fails with errors similar to "Could not
>find schema information for element 'Element1'....", "The element
>'CustomerOrder' has invalid content" and "The 'Element2' element is not
>declared". It's simple to reproduce the problem. My input schema looks like
>this:
>
><Root>
> <CustomerOrder>
> <Element1>Hello</Element1>
> <Element2>HelloAgain</Element2>
> ..... zero or more subsequent elements
> </CustomerOrder>
></Root>
>
>and my output schema is:
>
><Root>
> <CustomerOrder>
> <any>
> </CustomerOrder>
></Root>
>
>Within BizTalk mapper, I map the CustomerOrder node of the input schema to
>the CustomerOrder node of the output schema via the Mass Copy Functoid. But I
>can't seem to avoid errors, even if I reproduce the example mapping in Help.
>
>Can anyone suggest what the problem might be? Are there any rules or gotchas
>with mapping to an <any> element which are not mentioned in the Documentation?
>
>Many thanks!
>
>GAT
>
>
>
>



--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

GAT

2004-09-25, 7:46 am

Thanks Tatyana. I'd already set the Process Content to Skip, but upon
double-checking, realised that the Max Occurs property of the <any> element
needed to be set to Unbounded. Nice 'n easy solution... for once. Thanks
again for your help!
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com