Click here to Skip to main content
15,888,113 members
Articles / All Topics

Message Debatching – Values not being mapped in a Transformation – Null Values in Destination Schema

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
30 May 2009CPOL 11.5K   3  
Message Debatching – Values not being mapped in a Transformation – Null Values in Destination Schema

Last week I was getting a response from a service which returned a record. I was simply using xpath function and assigning each record into a destination message. Then I used a transformation shape to map 3 source messages to the response message. One of the messages was assigned a record from the response and the message was being constructed successfully as I was logging the message and saw it in the Orchestration Debugger. But after the Transformation, the values were NULL.

map_problem

All that was missing was the namespace in the message and my message type wasn't correct. If the message types are not correct, you will get the following exceptions if you are sending a message to a port. But in my case, I wasn't.  :)

Inner exception: Received unexpected message type does not match expected type http://Namespace#RootNode. Exception type: UnexpectedMessageTypeException

Well just give your message the appropriate type and you are done. Well it was simple and it wasted 2 hours of mine. :(


technorati tags:
Posted in Tips & Tricks Tagged: Message Debatching - Values not being mapped in a Transformation - Null Values in Destination Schema
This article was originally posted at http://abdulrafaysbiztalk.wordpress.com?p=155

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Qatar Qatar
I am a BizTalk Server MVP for 2010 and an active blogger and a participant on the MSDN BizTalk Server Forums. I am currently working as a BizTalk Architect at a Bank in Qatar. Before this position I worked as a Sharepoint Consultant in UAE , BizTalk Architect in Bank Saudi Fransi in Saudi Arabia and United Bank Ltd in Pakistan.

I also achieved MCTS certification in BizTalk Application development in June 2008.

Click here to check out my Blog.

SQL Server Query Notification with BizTalk Server 2009 WCF SQL Adapter.

Envelope Wrapper.

Aggregator (Sequential Convoy)

Splitter (Debatching multiple records)
Resequencer
Recipient List
Scatter and Gather using Self Correlating Port

Comments and Discussions

 
-- There are no messages in this forum --