The following error is returned during SEP Agent Behavior Event cube processing:
Errors in the back-end database access module. The read operation was cancelled due to an earlier error. Errors in the OLAP storage engine: An error occurred while the 'Agent Behavior Event - Description' attribute of the 'EP Agent Behavior Event Description' dimension from the 'ITAnalytics' database was being processed.
These additional messages are returned under Errors and Warnings from Response in the Process Progress window in SQL Server Management Studio (SSMS):
Errors in the OLAP storage engine: An error occurred while the 'Agent Behavior Event - Description' attribute of the 'EP Agent Behavior Event Description' dimension from the 'ITAnalytics' database was being processed.
Errors in the back-end database access module. The read operation was cancelled due to an earlier error.
Errors in the OLAP storage engine: An error occurred while the 'Agent Behavior Event - Description' attribute of the 'EP Agent Behavior Event Description' dimension from the 'ITAnalytics' database was being processed.
Server: The current operation was cancelled because another operation in the transaction failed.
Errors in the back-end database access module. The size specified for a binding was too small, resulting in one or more column values being truncated.
IT Analytics for SEP (all versions)
This error is caused by the string length of a description value for an endpoint in the Symantec Endpoint Protection (SEP) data source exceeding 256 characters. The dimension expects a string value of 256 characters or less.
To verify this is the cause of the error, the following query will return any records from the SEP data source with a description value that exceeds the 256 character limit (Note: the SEP linked server hostname specified in the OPENQUERY statement will be unique to your environment):
SELECT DISTINCT [DESCRIPTION]
FROM OPENQUERY
(
[<SEPM_hostname>],
'
SELECT *
FROM [dbo].[V_AGENT_BEHAVIOR_LOG] (NOLOCK)
'
)
WHERE LEN([DESCRIPTION]) > 256;
This issue is resolved by altering the IT Analytics database view vITAnalytics_SEP_AgentBehaviorEventDescriptionDim to truncate description values that exceed 256 characters in length.
To make this change, follow this procedure:
DISTINCT [DESCRIPTION]
DISTINCT CAST([DESCRIPTION] AS NVARCHAR(256)) AS [DESCRIPTION]
Unmodified, the view vITAnalytics_SEP_AgentBehaviorEventDescriptionDim is defined as follows (Note: the SEP linked server hostname specified in the OPENQUERY statement will be unique to your environment):
SELECT [DESCRIPTION]
FROM (SELECT [DESCRIPTION] COLLATE DATABASE_DEFAULT AS [DESCRIPTION]
FROM OPENQUERY([<SEPM_hostname>],
'SELECT
DISTINCT [DESCRIPTION]
FROM
[dbo].[V_AGENT_BEHAVIOR_LOG] (NOLOCK) ')
) as AgentBehaviorEventDescriptionDim
GO
The following is the view definition with an additional CAST function added to the first SELECT statement to truncate the description field as it is queried from the SEP data source:
SELECT [DESCRIPTION]
FROM (SELECT [DESCRIPTION] COLLATE DATABASE_DEFAULT AS [DESCRIPTION]
FROM OPENQUERY([<SEPM_hostname>],
'SELECT
DISTINCT CAST([DESCRIPTION] AS NVARCHAR(256)) AS [DESCRIPTION]
FROM
[dbo].[V_AGENT_BEHAVIOR_LOG] (NOLOCK) ')
) as AgentBehaviorEventDescriptionDim