I ran into weird issue in BizTalk 2004 mapper when I am trying to implement nested looping using loop functoids, but at the end I got single ‘for-each’ xslt output instead of nested ‘for-each’ for 3 functoids which used. This is what I did.
1. I got to loop 3 elements which nested inside.
2. I drag and dropped 3 functoid to designer surface.
3. Connected top most parent element to first functoid and then connected corresponding destination element.
4. Repeated step 3 for next child element and then inner most child element.
5. When I validated the Map i got only one for each xslt output for the top most parent element. This depicted in the following map picture.
What is going wrong in this? I believe there is bug (or may be it suppose to work this way, which don’t know) the order in which you connect elements source node -> looping functoid -> destination nodes.
If you follow the steps as shown above you may not get nested loop (which is expected result). So follow the following steps.
1. Drag and drop all functoids to the designer surface.
2. Start connecting innermost element from source schema to functoid and then to destination node.
3. Repeat the step 2 for element or node which need to be loop(ed) above the innermost element as shown below
So, moral of the story is, start your looping functoid connection from innermost node and repeat the step for upper nodes.


Recent Comments