Thursday, 18 October 2012

BizTalk Error : Exception occurred when persisting state to the database

BizTalk error : Exception occurred when persisting state to the database

Cause :

This error comes when there is no one subscribing for a message published into MessageBox Database.

OR

If  there are multiple publisher of same context messge  is tried. Multiple publisher trying to publish the message into MessaegBox database.

Solution:

When  you get this error please check your orchestration flow and make sure you have only one Publisher for same context message.

BizTalk Error Failed to initialize the correlation property

BizTalk Error :
Failed to initialize the correlation property name: Field1 namespace: http://TestData.Service from message: Message_Req.

Cause :

The error message says the property name Field1 is not found in the message sent (Message_Req) and hence gave Correlation error.

Solution:

 If the field(Field1 ) is not present in sent message (Message_Req), Please add the field to message using Cosntruct shape --> Message Assignment Shape.

Write Following line of code to Add field1 to message Message_Req

Message_Req(TestData.Service.Field1) = var_Field1;