Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community
OpsMgr event ID 26319 and p_GetDatawarehouseVersion on SCOM 1801 - RESOLVED !!!
Published Jan 22 2019 08:06 AM 4,991 Views

First published on TECHNET on Jun 25, 2018

Hi SCOM folk

Today I am going to blog how to resolve event ID 26319 on System Center Operations Manager (SCOM) 1801 related to the p_GetDatawarehouseVersion stored procedure from getting generated.

The topic:

Looking at the Operations Manager event log on Management Server(s) from time to time, as any good SCOM Administrator should do, you will find some instances of the event ID 26319 (yeah, the well-known generic 26319 ).

What will surprise you is that among all these instances, there are some of them which have an interesting description. They report about the lack of permissions to execute a given stored procedure or that a stored procedure is missing. These instances of event 26319 get generated *only* on SCOM 1801 installations, every time the Operations Console is opened.

The issue:

As anticipated above, opening the Operations console will cause the generation of event ID 26319.

This event is generated with 2 different descriptions, depending on what type of installation has been carried out. That means that:

  1. On new installations, the event is generated with this string in the description: The EXECUTE permission was denied on the object ' p_GetDatawarehouseVersion ', database 'OperationsManagerDW', schema 'sdk'.).

  2. On upgraded installations (from SCOM 2016), the event is generated with this string in the description: Reason. (Fault Detail is equal to Could not find stored procedure 'sdk.p_GetDatawarehouseVersion'.) .

The reason behind is that during the installation, the setup procedure for some unknown and strange reasons:

  1. Did not correctly set the permission for the sdk database schema on new installations
  2. Did not create the stored procedure, and of course did not set the permission, on upgraded installations

The solution:

Luckily, there is a solution for this mess. To resolve the issue and to stop the event ID 26319 from getting generated in both cases, follow the steps below:

  1. Logon to the SQL Server host where the SQL Instance hosting the OperationsManagerDW is running
  2. Open SQL Server Management Studio and connect to it

  3. Expand Databases
    Stored Procedures

  4. Scroll down, and search for the p_GetDatawarehouseVersion stored procedure
  5. If the stored procedure is already there, meaning that this is a new installation, jump to step 13 ; otherwise continue to step 6 .
  6. Download the file attached to this post (taken from a new SCOM 1801 Installation) and save it locally on the SQL Server (i.e. in the C:\Temp folder or on the desktop). The file contains the following code:

  7. In SQL Server Management Studio, click on File
    Open à File

  8. On the Open File windows, select the file downloaded in step 6 and click Open

  9. Should you get the following message, click No

  10. Once the file content is loaded, click Execute

  11. Make sure the result pane is showing a success message

  12. After the stored procedure is created, scroll up; right-click on Stored Procedures and click Refresh

  13. From the stored procedures list, find and select the p_GetDatawarehouseVersion ; right-click on it and select Properties.

  14. In the Properties screen, select the Permission page

  15. Click on the Search button and in the Select Users or Roles type the OpsMgrReader role name

  16. Click on Check Names and then click OK
  17. In the bottom part of the Permission page, check the box corresponding to Execute in the Grant column and click OK


The procedure above will fix the issue with the p_GetDatawarehouseVersion stored procedure and will stop the generation of event ID 26319 related to it … and will save you from headache

Thank you all and enjoy problem solving

Version history
Last update:
‎Dec 11 2019 07:44 AM
Updated by: