Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Unable to open Alerts in SQL Server Agent / Cannot view properties Expand / Collapse
Author
Message
Posted Friday, November 16, 2012 1:53 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, October 13, 2014 4:38 AM
Points: 65, Visits: 524
I am unable to open Alerts in SQL Server Agent and Cannot view the properties using GUI.
Although I am able to create and modify alerts via Script
It gives me this exception.
Anybody has any idea ?


===================================

Cannot show requested dialog.

===================================

Cannot show requested dialog. (SqlMgmt)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.AllocateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider, CDataContainer dc)
at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.Microsoft.SqlServer.Management.SqlMgmt.ILaunchFormHostedControlAllocator.CreateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider)
at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm.InitializeForm(XmlDocument doc, IServiceProvider provider, ISqlControlCollection control)
at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm..ctor(XmlDocument doc, IServiceProvider provider)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolMenuItemHelper.OnCreateAndShowForm(IServiceProvider sp, XmlDocument doc)
at Microsoft.SqlServer.Management.SqlMgmt.RunningFormsTable.RunningFormsTableImpl.ThreadStarter.StartThread()

===================================

Failed to create/initialize Agent Alert dialog. (SqlManagerUI)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert..ctor(CDataContainer dataContainer)

===================================

Cannot create/initialize Response page. (SqlManagerUI)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert.AddResponsePage()
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert..ctor(CDataContainer dataContainer)

===================================

Object reference not set to an instance of an object. (SqlManagerUI)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse.RefreshJobComboBoxAndSelectJob(Job currentJob)
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse.RefreshJobComboBox()
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse..ctor(CDataContainer dataContainer, String agentAlertName)
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert.AddResponsePage()


Musab
http://www.sqlhelpline.com
Post #1385540
Posted Tuesday, January 29, 2013 11:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 17, 2013 7:58 AM
Points: 1, Visits: 124
I had the same problem and found the page below. I had two SSRS Jobs show up with the same name.

select name from msdb.dbo.sysjobs group by name having count(*) >1

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=172364
Post #1413208
Posted Wednesday, July 10, 2013 4:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 18, 2014 11:54 AM
Points: 2, Visits: 10
Hi there

Also get the same error, but when running select name from msdb.dbo.sysjobs group by name having count(*) >1 to see if there is any duplicate jobs it shows none.

Is there any other solution to try?

Thanks
T

TITLE: Microsoft SQL Server Management Studio
------------------------------

Cannot show requested dialog.

------------------------------
ADDITIONAL INFORMATION:

Cannot show requested dialog. (SqlMgmt)

------------------------------

Failed to create/initialize Agent Alert dialog. (SqlManagerUI)

------------------------------

Cannot create/initialize Response page. (SqlManagerUI)

------------------------------

Object reference not set to an instance of an object. (SqlManagerUI)

------------------------------
BUTTONS:

OK
------------------------------
===================================

Cannot show requested dialog.

===================================

Cannot show requested dialog. (SqlMgmt)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.AllocateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider, CDataContainer dc)
at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.Microsoft.SqlServer.Management.SqlMgmt.ILaunchFormHostedControlAllocator.CreateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider)
at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm.InitializeForm(XmlDocument doc, IServiceProvider provider, ISqlControlCollection control)
at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm..ctor(XmlDocument doc, IServiceProvider provider)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolMenuItemHelper.OnCreateAndShowForm(IServiceProvider sp, XmlDocument doc)
at Microsoft.SqlServer.Management.SqlMgmt.RunningFormsTable.RunningFormsTableImpl.ThreadStarter.StartThread()

===================================

Failed to create/initialize Agent Alert dialog. (SqlManagerUI)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert..ctor(CDataContainer dataContainer)

===================================

Cannot create/initialize Response page. (SqlManagerUI)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert.AddResponsePage()
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert..ctor(CDataContainer dataContainer)

===================================

Object reference not set to an instance of an object. (SqlManagerUI)

------------------------------
Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse.RefreshJobComboBoxAndSelectJob(Job currentJob)
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse.RefreshJobComboBox()
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse..ctor(CDataContainer dataContainer, String agentAlertName)
at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert.AddResponsePage()


Post #1472040
Posted Wednesday, July 10, 2013 6:26 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, October 13, 2014 4:38 AM
Points: 65, Visits: 524
Got the solution which might work for you as well.
In my case there were few job categories (specified in the jobs ) but missing in msdb..syscategories tables.
Either you can add the missing category to the table or change the job category.

This is not the only solution for that problem but it is one of the solutions.


Musab
http://www.sqlhelpline.com
Post #1472079
Posted Wednesday, July 10, 2013 7:46 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 18, 2014 11:54 AM
Points: 2, Visits: 10
Thanks Musab - your suggestion lead me to a change that I made a few months ago.

I added this in msdb..sp_help_category stored proc to not show all our ReportServer subscriptions in SQL Server Agent - as there is a lot.

--Start Of SSRS Subscriptions

SET @where_clause += N'
AND
CASE
WHEN
name = ''Report Server''
AND (
SELECT program_name
FROM sys.sysprocesses
where spid = @@spid) = ''Microsoft SQL Server Management Studio'' THEN 0
ELSE 1
END = 1 '

--End Of SSRS Subscriptions

-- Execute the query EXECUTE (@cmd + @where_clause + N'ORDER BY category_type, name')

I comment it and I was able to access the Alerts again.

Is there maybe an alternative to not show the SSRS subscriptions in SQL Server Agent? What i am doing now is just to comment that part to create a few alerts and then uncomment it again to not show all the subscriptions.
Post #1472139
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse