Not so long ago, there was a thread about this issue on TechNet Forums – long story short, in some cases (if you didn’t do a clean installation of System Center 2016 – Operations Manager, for example), the shiny, new feature called Updates and Recommendations didn’t work.
Even better – there was a rather cryptic error saying “An error occurred while displaying the Updates and Recommendations view. This might be because the database query has encountered an error…”.
So… it looks that maybe the database query has indeed “encountered an error”.
What can we do to make sure and resolve this?
As the user Chandra Bose suggested, we can look for duplicates in our imported management packs… and maybe we will be smarter then.
PowerShell command we can use:
1 |
Get-SCManagementPack | sort -Property Name | ft Name,Version -AutoSize |
This will list our imported management packs and their versions, and we can start looking for duplicate(s).
In my case, there were some – some of them were the two management packs called Microsoft.SystemCenter.WebApplicationSolutions.Library.Resources.*.
To get a better look on those two, we can use the following command:
1 |
Get-SCManagementPack | where {$_.Name -like "Microsoft.SystemCenter.WebApplicationSolutions.Library.Resources.*"} |
And the output looks like this:
This shows that we really have two “duplicate” management packs in our SCOM database, one installed in 2013, and another in 2014 (why? and how? don’t really matter ). We need to remove one, obviously.
For that, we can use the following command (by using the Id property from previous command):
1 |
Get-SCManagementPack -Id "09988ce5-edea-8ed2-868a-0ecc1193338b" | Remove-SCManagementPack |
And, if there are no more duplicates, our Updates and Recommendations view should work now:
Hope this helps.
Cheers!