Yesterday we upgraded SolarWinds to Orion Platform 2013.1.0, SAM 5.5.0, IPAM 4.0, NPM 10.5, NTA 3.11.0, IVIM 1.6.0. Today, I noticed a report (that works find in the Orion Report Writer) is now failing on the console. The report was added to the page using the resource 'Report from Orion'. The report shows the Unmanaged Applications. The sql is:
SELECT
apm.ID
,apm.Name
,apm.NodeID
, Nodes.Caption
,DATEADD(hh, DATEDIFF(hh, GETUTCDATE(), GETDATE()), apm.UnmanageFrom) as UnmanageFromLocalTime
,apm.UnmanageFrom AS UnmanageFromUtcTime
,DATEADD(hh, DATEDIFF(hh, GETUTCDATE(), GETDATE()), apm.UnmanageUntil) as UnmanageUntilLocalTime
,apm.UnmanageUntil AS UnmanageUntilUtcTime
,apm.UnManaged
,ard.ComponentName as 'Component Name'
-- ,ard.ProcessName
-- , ard.DisplayType
FROM
APM_Application apm
LEFT JOIN Nodes on apm.NodeId = Nodes.NodeId
LEFT JOIN APM_AlertsAndReportsData ard on apm.NodeId = ard.NodeId and apm.ID = ard.ApplicationId
WHERE
apm.Unmanaged = 1 OR apm.unmanagefrom >= GetUtcDate()
ORDER BY
1 ASC
,2 DESC
The error we're getting is:
System.Data.SqlClient.SqlException (0x80131904): The multi-part identifier "apm.ID" could not be bound. The multi-part identifier "apm.Name" could not be bound. The multi-part identifier "apm.NodeID" could not be bound. The multi-part identifier "Nodes.Caption" could not be bound. The multi-part identifier "apm.UnmanageFrom" could not be bound. The multi-part identifier "apm.UnmanageFrom" could not be bound. The multi-part identifier "apm.UnmanageUntil" could not be bound. The multi-part identifier "apm.UnmanageUntil" could not be bound. The multi-part identifier "apm.UnManaged" could not be bound. The multi-part identifier "ard.ComponentName" could not be bound. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) 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.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at SolarWinds.Orion.Common.SqlHelper.ExecuteReader(SqlCommand command, SqlConnection connection, SqlTransaction transaction, CommandBehavior behavior) at SolarWinds.Orion.Web.Reporting.OrionReport.QueryData(String query, String orderBy, String grouping, String filter, Dictionary`2 macroContext) at SolarWinds.Orion.Web.Reporting.ReportRunner.WorkerProc()