When right-clicking a resource: An error occurred on the page. Please check the log for more details.

Article:TECH44385  |  Created: 2009-08-31  |  Updated: 2009-08-31  |  Article URL http://www.symantec.com/docs/TECH44385
Article Type
Technical Solution


Issue



When attempting to access the right-click menu on a resource an error appears in the console:

An error occurred on the page. Please check the log for more details.

The following error is logged in the SMP/NS logs;

Source: Altiris.Reporting.Common.ControlLinking.Controls.LinkModeratorControl.RaiseCallbackEvent
Description: Failed to activate the Link 'ShowContextMenuLink'.

( Exception Details: Altiris.Parameters.Exceptions.TransformationException: Selected column ID '_ItemGuid' could not be found in the underlying data structure.
   at Altiris.Reporting.Common.DataSelection.GetCurrentSelectionAsValue(Int32 filterByRowIndex, String filterByColumnName)
   at Altiris.Reporting.Common.DataSelection.GetCurrentSelectionAsValue(String filterByColumnName)
   at Altiris.Reporting.Parameters.ParameterTypeTransformations.DataSelectionParameterTypeTransformationsItem.DoTransform(Object fromParameterTypeValue)
   at Altiris.Parameters.ParameterTypeTransformations.ParameterTypeTransformationItem.TransformFromTo(Object fromParameterTypeValue)
   at Altiris.Parameters.ParameterValue.TransformValueFromTo(Object value, IParameterTypeItem fromParameterType, IParameterTypeItem toParameterType)
   at Altiris.Parameters.ParameterValue.TransformValueFromTo(Object value, String fromParameterTypeAlias, String toParameterTypeAlias)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkModeratorControl.ProcessParameters(ILink link, Hashtable parameterValues)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkModeratorControl.OnLinkEvent(String linkID, String activateActionValue, String activateValue, Hashtable parameterValues)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkModeratorControl.RaiseCallbackEvent(String eventArgument) )
( Exception logged from:
   at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.Diagnostics.Logging.EventLog.ReportException(String strMessage, String category, Exception exception)
   at Altiris.NS.Logging.EventLog.ReportException(String strMessage, Exception exception)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkModeratorControl.RaiseCallbackEvent(String eventArgument)
   at Altiris.Reporting.Common.ControlLinking.Controls.LinkModeratorControl.System.Web.UI.ICallbackEventHandler.GetCallbackResult()
   at System.Web.UI.Page.RenderCallback()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.report_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
   at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
   at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
   at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
 )
( Extra Details:  Type=Altiris.Parameters.Exceptions.TransformationException Src=Altiris.Reporting.Common )


Environment



Notification Server 7.0 - observed on SP2 HF1, but should be present across 7.x


Cause



The description in the error described the actual cause as follows;

Details: Altiris.Parameters.Exceptions.TransformationException: Selected column ID '_ItemGuid' could not be found in the underlying data structure

The essential part is the "..column ID '_ItemGuid' could not be found..."
The _ItemGuid identifier is used as the unique key for each resource in reports for the right click menu to be displayed, as the menu is pulled real time based on the resource, available solutions, etc. the _ItemGuid has to be present.

For many reports either a Guid has not been included, and even then many reports might use the Guid in the format Guid or ResoureGuid, where the right click menu (Drilldown) option per default is set to use the _ItemGuid reference.

For custom settings on this, access the Drilldown tab on the report builder page.


Solution



The simple solution, is to make sure you have an alias for _ItemGuid set.

In SQL this could look like the following snippet;

SELECT * from
  vComputer.[Guid] as _ItemGuid,
  vComputer.[Name],
.
.
.

See the highlighted section for the SQL change needed.

This change can also be made from within the report builder by selecting the 'Fields' tab selecting or adding a Guid field and select the 'Edit' pencil for the guid field.
On the Edit dialog type/add in an Alias for the Guid field as _ItemGuid.

NOTE; If no right-click context menu appears after the error has been resolved, see the Related Articles section for information on addressing this issue.


Legacy ID



48844


Article URL http://www.symantec.com/docs/TECH44385


Terms of use for this information are found in Legal Notices