Ranadheer Thouti

Hi all,

I am getting a strange error.

I have to Custom pipeline components to split the XML file based up on the record count at Disassemble level .When i test it by having a send port with filter criteria on receive port name and MessageType i am able to get the spitted Xml file successfully , but if i directly bind the output of my pipeline to an Orchestration ie., to a receive port based on the Receive port name has filter criteria in the receive shape properties i am getting the following error The published message could not be routed because no subscribers were found. I am promoting the receive port name and the message type in the Disassemble level component , i am getting the valied Xml has output but still i am getting the subscribers error Below is the method which i used to promote an create the out message at Disassemble level.

private void CreateOutgoingMessage(IPipelineContext pContext, String messageString, string fileName,string messageType)

{

IBaseMessage outMessage;

string systemPropertiesNamespace = "http://schemas.microsoft.com/BizTalk/2003/system-properties";

try

{

//create outgoing message

string ReceivePortName = _messageContext.Read("ReceivePortName", systemPropertiesNamespace).ToString();

outMessage = pContext.GetMessageFactory().CreateMessage();

outMessage.AddPart("Body", pContext.GetMessageFactory().CreateMessagePart(), true);

outMessage.Context.Promote("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties",(object)fileName);

outMessage.Context.Promote("ReceivePortName", systemPropertiesNamespace, ReceivePortName);

outMessage.Context.Promote("MessageType", systemPropertiesNamespace,messageType);

byte[] bufferOutgoingMessage = System.Text.Encoding.UTF8.GetBytes(messageString);

outMessage.BodyPart.Data = new MemoryStream(bufferOutgoingMessage);

_qOutputMsgs.Enqueue(outMessage);

outMessage = null;

obj = null;

bufferOutgoingMessage = null;

}

Can any one tell me what could be the reason for that error

Thanks,

Ranadheer




Re: BizTalk R2 General Orchestration unable to subscribe to the message

Leonid Ganeline

When you look at the suspended message do you realy have all these properties promoted
For me it is suspicious:

outMessage = null;

obj = null;

bufferOutgoingMessage = null;






Re: BizTalk R2 General Orchestration unable to subscribe to the message

Ranadheer Thouti

Hi Leonid ,

Even it is suspicious for us .

but the

outMessage = null;

obj = null;

bufferOutgoingMessage = null;

are not promted
these are the context properties of the suspended message .
ReceivedFileName OMSIntfile12657.zip_1 Promoted
FailedMessageID {58457D81-C5E2-4CD4-9C22-67529BB526D4} Not Promoted
PartNames System.String[] Not Promoted
InterchangeSequenceNumber 1 Not Promoted
MessageType xxxxxxxxxxxxxxxxxx Promoted
ReceivePortName dheer Promoted
Regards,
Ranadheer





Re: BizTalk R2 General Orchestration unable to subscribe to the message

Leonid Ganeline

Ranadheer,
Could you, please, save the suspended message and make sure you created the body of it





Re: BizTalk R2 General Orchestration unable to subscribe to the message

Leonid Ganeline

I'm not sure that it's permitted to change the system properties at all (as you did with the systemPropertiesNamespace).