BizTalk Server Applications Integration - conditional mapping, extra element

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > December 2005 > conditional mapping, extra element





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 conditional mapping, extra element
tnu@nic.fi

2005-12-29, 7:49 am

Hi,

I'm trying to create following map:

<PaymentTerms>
<invoiceDueDate>"invoiceduedate"</invoiceDueDate>
<cashdiscountdate>"cashdiscountdate"</cashdiscountdate>
<Cashdiscountamount>"cahsdiscountamount"</Cashdiscountamount>
</PaymentTerms>

===>

<PAT-LOOP>
<PAT>1</PAT>
<DTM>"invoiceduedate"</DTM>
</PAT-LOOP>
<PAT-LOOP>
<PAT>1</PAT>
<DTM>"cashdiscountdate"</DTM>
<MOA>"cashdiscountamount"</MOA>
</PAT-LOOP>

Problem is that the actual result is like this:

<PAT-LOOP>
<PAT>1</PAT>
<DTM>"invoiceduedate"</DTM>
<MOA>"cashdiscountamount"</MOA> <== EXTRA MOA ELEMENT
</PAT-LOOP>
<PAT-LOOP>
<PAT>1</PAT>
<DTM>"cashdiscountdate"</DTM>
<MOA>"cashdiscountamount"</MOA>
</PAT-LOOP>

How can I get rid of this extra MOA-element? MOA is not mandatory in
result schema.

I have tried to use Logical Existence, Loop, Value mapping... etc.

Is this kind of conditional mapping at all possible in Biztalk?

/Tero

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com