A few of our analysts are having issues with creating views. We are able to create them in the SCSM console, but when we try to promote some of them, we get the following error.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Cireson.ServiceManager.Console.Console.PromoteViewHelper.ExecutePromoteView(ManagementPackViewNode managementPackViewNode, NavigationModelNodeBase navigationNode, PromoteViewNavigationModel navModel, String webserviceURL, Byte iconSelected, Boolean isPublic, IDataItem user)
at Cireson.ServiceManager.Console.UI.NavigationSelectionForm.btnPromote_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
We recently upgraded to the latest version of the Portal and made sure to upgrade the ViewBuilder app as suggested by Cireson, but we're still getting this error. I'm at a loss of where to start. Has anyone else seen this issue or have a suggestion to resolve?
Can you confirm that the views you have built are not one of the following:
The error thrown is saying it cannot find something in particular so if it isn't one of these I would verify the URL you have specified for this is correct.
Does it work for some views?
Thank you for the response. We are able to promote most views we create, it just seems this particular one throws that error. I've gone through it and it appears to not fall under the 'views that cannot be promoted' criteria you've listed. I'll see if the analyst can create it as a saved search instead.
Okay could you let me know the class it is pointing to and the criteria etc so I can test it in my lab?
Sorry for the delay....things get put on the back burner when we're short staffed.
Looks like the analyst is using the 'Incident (typical)' class and trying to select ID, Title, Display Name, Status, Support Group, Category, Classification, Created Date.
I have just done this in my lab and confirmed it is working so the view looks like it is valid, do you have any criteria set?
Can you confirm the version of your View Builder Management pack? And can you confirm it is licensed?
Is it on everyone's console that tries to use it or just a certain machine?
The view is using a single criteria of 'Category'. If we remove that it will promote, but, it kind of defeats the purpose of the view the analyst is creating. Know any ways around this? :)
We're using a licensed View Builder 220.127.116.116, and it's happening on any machine we try to create from.
Could you send me screenshots either on here or privately of your entire configuration for this view so I can try it in my lab?
Then I can try work on a way around it for you 😀