Friday, June 03, 2005

BizTalk Server Orchestration - message has not been initialized in construct statement

BizTalk Server Orchestration - message has not been initialized in construct statement

This may sound very basic...but...

When using the MessageAssignment orchestration shape, if the message you are using has not been instantiated by a map or a port then you must manually instantiate the message:

Message_Type = new System.Xml.XmlDocument();
//Now that the message has been instantiated it can be used.
Message_Type.[PropertyName] = "Property Value";

3 comments:

Macganzyver said...

goddam you are a savior :)

Genious said...

Hi John,

i was trying to slove that issue from last 2 days. no one, even microsoft on their so called knowledge base web site, did not gave solution.

i will simply say, you are Amazing! yes.

thanks
Genious
www.worldwebdirectory.co.uk

Jr. Tech said...

yah funny it's so simple that no one really mentions it. thanks for the simplicity and the info!