Hi Readers,
I am
writing this blog to document a workaround for a connectivity issue I was
facing in my Replication monitor (in SSMS).I am hoping those who are facing
this issue, would be benefited from this blog.
I was configuring MI-MI replication with T-SQL scripts and at the end
when I was trying to launch Replication monitor by right clicking on the
publication , I have encountered the below error, which was basically telling
me that the replication monitor is unable to connect to distributor or cannot
retrieve the publisher information from the distributor.
Error message:
Clicking on
the show details button above got me the below text
Message details:
===================================
Replication Monitor could not
retrieve Publisher information from Distributor 'tcp:xxxxxx.xxxxxxxx.database.windows.net,1433'.
(Replication Monitor)
------------------------------
===================================
Could not refresh properties of
this object from server. Check if this object still exists on the server.
(Microsoft.SqlServer.Rmo)
------------------------------
Program Location:
at
Microsoft.SqlServer.Replication.ReplicationObject.Refresh()
at
Microsoft.SqlServer.Management.UI.ReplMonitorMenu.Invoke()
<End of the error message>
Looking at the error message, I
thought this must have something to do with the publisher details maintained in
the distributor. I went and right-clicked on the Replicationàselected Distributor propertiesàWent further for the ‘publishers’ page in that window and
could see everything was perfect there. And moreover I could successfully test
the data inserted at the publication DB being sent successfully to the
subscriber too. This cannot be anything to do with the permissions, as I have
used SQL accounts with sysadmin access everywhere.
After browsing through some
online forums and having found no solutions, I opened a case with Microsoft as
I felt that the replication monitor is important for us if we are ever going to
use replication in the Prod setup and we didn’t have the luxury of time to keep
exploring solutions online.
The gentle man from azure team
tried a few options like downloading the latest SSMS and trying to remove the
publisher from the replication monitor and adding it back. Unlucky for both of
us, nothing really worked.
On the very next day, I stumbled
upon a workaround that saved time for both of us which was removing publisher
from the replication monitor and adding it back using the third option.
The option that I used was the
one in the screenshot
I have supplied the distributor
server name and could successfully use the replication monitor to insert tracer
tokens, check latency data, look at the agent profiles etc with no issue
whatsoever.
I am hoping you would find this
blog content useful or Microsoft fixing this issue in their next SSMS release. Thanks
for visiting my blog.
Thank you! This worked. I've been looking at this all day.
ReplyDeleteVery useful information.
ReplyDeleteThis helped me. Thanks very much.
ReplyDeleteJust wanted to say thanks and keep up the great work. I'm building some replication with Containers with AKS, and got the EXACT SAME error. When I googled it, there were only 3 links. Never a good sign. Fortunately, this solved it - was afraid it was RMO, but nope! (now to go figure out a workaround for my snapshot issue - memory mapped file issues) Have a great weekend!
ReplyDeleteExcellent Brother. this helped me today.
ReplyDeleteExcellent and simple solution. This worked for me.
ReplyDelete