I have a BizTalk orchestration with an expression. The expression has the following:
construct msg_mymessage { msg_mymessage = msgInputXML; }
msgInputXML and msg_mymessage use the same schema, same message type and both show up under the Messages in Orchestration view.
After the expression I have a Construct Message and in the Construct message I have a Transform that uses msg_mymessage as a source and some other message as a destination.
I’m getting the errors:
use of unconstructed message ‘msg_mymessage’
‘msg_mymessage’:message has not been initialized in construct statement
I’m not sure why I get this error. What should I be looking for?
Make sure that you use an assignment shape (inside a construct message wrapper) when you create msg_mymessage. Then just copy the code in the expression shape (msg_mymessage = msgInputXML;)
http://msdn.microsoft.com/en-us/library/ee253499(v=bts.10).aspx