Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud

Scenario

I came across a nice little one with multi-part maps the other day. I had an orchestration where I needed to combine 4 input messages into one output message like in the below table:

 

Input Messages Output Messages

Company Details

Member Details

Event Message

Member Search

Member Import

 

I thought my orchestration was working fine but for some reason when I was trying to send my message it had no content under the root node like below

<ns0:ImportMemberChange xmlns:ns0="http://---------------/"></ns0:ImportMemberChange>

 

My map is displayed in the below picture.

clip_image001

I knew that the member search message may not have any elements under it but its root element would always exist. The rest of the messages were expected to be fully populated.

I tried a number of different things and testing my map outside of the orchestration it always worked fine.

The Eureka Moment

The eureka moment came when I was looking at the xslt produced by the map. Even though I'd tried swapping the order of the messages in the input of the map you can see in the below picture that the first part of the processing of the message (with the red circle around it) is doing a for-each over the GetCompanyDetailsResult element within the GetCompanyDetailsResponse message.

clip_image002

This is because the processing is driven by the output message format and the first element to output is the OrganisationID which comes from the GetCompanyDetailsResponse message.

At this point I could focus my attention on this message as the xslt shows that if this xpath statement doesn’t return the an element from the GetCompanyDetailsResponse message then the whole body of the output message will not be produced and the output from the map would look like the message I was getting.

<ns0:ImportMemberChange xmlns:ns0="http://---------------/"></ns0:ImportMemberChange>

I was quickly able to prove this in my map test which proved this was a likely candidate for the problem.

I revisited the orchestration focusing on the creation of the GetCompanyDetailsResponse message and there was actually a bug in the orchestration which resulted in the message being incorrectly created, once this was fixed everything worked as expected.

Conclusion

Originally I thought it was a problem with the map itself, and looking online there wasn’t really much in the way of content around troubleshooting for multi-part map problems so I thought I'd write this up.

I guess technically it isn't a multi-part map problem, but I spend a good couple of hours the other day thinking it was.

Posted on Saturday, May 22, 2010 3:53 AM BizTalk | Back to top


Comments on this post: Multi-Part Map Troubleshooting

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
Did you experience any problems using schemas with multiple nested schema imports in a multipart map ?

I'm working on a system right now where a 2 part map is required. One of the schemas is simple with no imported schemas, where the other has multiple nested schema imports.

When you drill down into the more complex schemas, some of the nodes derived from imported schemas don't appear, i.e., the nodes that should appear underneath these nodes simply aren't there.

The only way to deal with this problem has been to write XSL templates etc to access the hidden nodes.


Left by Rob H on Mar 10, 2011 1:45 AM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
INTERESTING PIECE..
Left by Claire on Mar 20, 2017 12:52 AM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
The eureka minute came when pro essays was taking a gander at the xslt delivered by the guide. Despite the fact that I'd had a go at swapping the request of the messages in the contribution of the guide you can find in the beneath picture that the initial segment of the preparing of the message (with the red hover around it) is doing a for-each over the GetCompanyDetailsResult component
Left by Joshua on May 30, 2017 7:58 PM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
where can i watch game of thrones season 7 online stream full episodes
watch game of thrones season 7
Left by anabel dewitte on Jul 11, 2017 4:33 AM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
You should try atleast once gta v online money for you gta game and trust me it is a fun.
Left by Sameer sharma on Sep 05, 2017 8:00 PM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
Mother's day comes only one time in a yr where children's want to talk about their thoughts and also recognize her for the hardships she's taken to increase them throughout her life.
Mother's day comes only one time in a yr where children's want to talk about their thoughts and also recognize her for the hardships she's taken to increase them throughout her life.
Left by mothers day on Feb 23, 2018 12:25 AM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
Mother's Day is celebrated all over the world. It appears to be a widespread thing that cultures put each day aside every year to remember the take action of motherhood. To pay tribute both to the wonder of birth and the special girl who performed that wonder: your mom. However not all over celebrates Mother's Day on a single 'Mothering Weekend' as the united kingdom.
happy mothers day quotes images wishes 2018
Left by mothers day on Feb 23, 2018 12:26 AM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
hello friends roblox robux now with unlimited resources try this
Left by roblox robux on Feb 25, 2018 10:02 PM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
Thanks to the author for the article! Very pleased!color switch
Left by color switch on Apr 16, 2018 8:34 PM

# re: Multi-Part Map Troubleshooting
Requesting Gravatar...
This is good piece of information what you have shared in this post. I would like to say thank you for this work you have done. I do generally search in www.ninjaessay.com/ blogs to get this kind of article. But, I got it in your blog the way you have explained each and every module in this topic is really awesome thing.
Left by AndresHeidt on May 30, 2018 4:09 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net