search cancel

A failed attempt was made to run the DataSource: 'Windows Compliance by Bulletin Query'

book

Article ID: 214849

calendar_today

Updated On:

Products

Patch Management Solution

Issue/Introduction

The customer started noticing after his upgrade an issue when he went to SMP Console > Home > Compliance by Bulletin. An error appeared on the top of this page.

The following error was logged in the NS logs:

 

Failed to refresh the LinkRegion: ViewPanel

An unexpected SQL error occurred when running the RawSqlDataSource: 'Windows Compliance by Bulletin Query' (cf1fc48d-0c61-4f69-8ffb-bfbdc0843135)
   [Altiris.DataSource.Exceptions.DataSourceRunException @ Altiris.Reporting.DataSource]
   at Altiris.Reporting.DataSource.RawSqlDataSource.RunTry(IDatabaseContext ctx, String name, String sql)
   at Altiris.Database.DatabaseContext`1.RetryActionRequest.Perform(Boolean throwIfRetriedOut)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetryHelper(Int32 retries, Int32 retryDelay, Boolean outerTransaction, Getter`1 getContext, Action`1 action, Action`1 retry, Boolean selfTransaction, String deadlockMessage, String category)
   at Altiris.Reporting.DataSource.RawSqlDataSource.Run()
   at Altiris.Reporting.Report.Run()
   at Altiris.Reporting.UI.ReportViewControl.DataBind(Boolean raiseOnDataBinding, DataBindMode mode)
   at Altiris.Reporting.Controls.StandardReportViewControl.DataBind(Boolean raiseOnDataBinding, DataBindMode mode)
   at Altiris.Reporting.UI.ReportViewControl.reportViewPanel_Refresh(Object sender, LinkRegionRefreshArgs e)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkRegion.OnRefresh(LinkRegionRefreshArgs args)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkRegion.RaiseCallbackEvent(String eventArgument)

Error converting data type varchar to uniqueidentifier.
   [System.Data.SqlClient.SqlException @ .Net SqlClient Data Provider]
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)
   at Altiris.Reporting.DataSource.RawSqlDataSource.RunTry(IDatabaseContext ctx, String name, String sql)

SQL Exception details: code=8114, procedure=spPMWindows_ComplianceByBulletin

Exception logged from: 
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkRegion.RaiseCallbackEvent(String)
   at System.Web.UI.Page.RenderCallback()
   at System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisPage.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

HTTP [POST]: http://altiris-SMP.domain.com/Altiris/Reporting/Report.aspx?Guid=6cc399cf-414a-4cc9-a180-d9ff2bfead35&ItemGuid=6cc399cf-414a-4cc9-a180-d9ff2bfead35&Parameters=Vendor:[9D5F6BB8-8ADF-49D1-9D84-2932CA46CE1E]&CallbackPageId=7ff79c71e0614409adecece60ed5b882&ReportContext=2f52e49d-e277-404b-8a9d-434ee18e0728
 ip: [172.26.54.100]; languages: [es-ES,es;q=0.9]; content-length: [18767];
 timings: [[R] 00:00:01.1520672(W: 00:00:00.0019977)];
 response: [200 OK]; x-smp-nsversion: [8.6.1119.0];

-----------------------------------------------------------------------------------------------------
Date: 11-05-2021 12:26:06, Tick Count: 942233156 (10.21:43:53.1560000), Size: 5,95 KB
Process: w3wp (11096), Thread ID: 113, Module: Altiris.Reporting.Common.dll
Priority: 1, Source: Altiris.Reporting.Common.ControlLinking.Controls.LinkRegion.RaiseCallbackEvent

Cause

The "Query Parameters" entries for these reports were missing.

Environment

ITMS 8.6

Resolution

Run a repair on Patch Management Solution using SIM (Symantec Installation Manager).

OR

Export the Reports > Software > Patch Management folder from another working server with the same version and import it to the affected server.