Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Service Broker (2005)
 Service Broker Woes...

Author  Topic 

Todd Carrier
Starting Member

4 Posts

Posted - 2007-11-09 : 13:20:02
We lost our Datawarehouse developer that set up this application for us, so I am now in charge... ick, and don't know what I'm doing really.

Lately no messages leaving sys.transmission_queue... all have transmission_status of: "One or more messages could not be delivered to the local service targeted by this dialog."

Setup looks like this:

CREATE MESSAGE TYPE XmlSubmission VALIDATION = WELL_FORMED_XML;
CREATE CONTRACT XmlContract (XmlSubmission SENT BY INITIATOR);
CREATE QUEUE ReceiverXmlQueue WITH STATUS = ON, ACTIVATION (PROCEDURE_NAME = MMRS.MMRS.WrapXmlProcessor, MAX_QUEUE_READERS = 1, EXECUTE AS SELF );
CREATE QUEUE SenderXmlQueue;
CREATE SERVICE Sender ON QUEUE SenderXmlQueue;
CREATE SERVICE Receiver ON QUEUE ReceiverXmlQueue(XmlContract);

ALTER QUEUE ReceiverXmlQueue WITH STATUS = on

Service Broker is enabled on database, and I've tried dropping and recreating these objects to no avail.

When functioning, these messages get recieved and procecessed into a staging SQL table, storing the XML to be loaded up into the relational tables.

Any ideas or clues for troubleshooting would be greatly appreciated!

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2007-11-09 : 13:59:07
checked that the messages contained well formed xml? anything in your error logs?
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-09 : 14:03:13
http://www.sqlteam.com/article/how-to-troubleshoot-service-broker-problems

also check if you service is enabled.
it gets disabled if you get message poisoning:
http://weblogs.sqlteam.com/mladenp/archive/2007/07/25/60269.aspx

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page
   

- Advertisement -